AI Chat
List AI Chat Sessions
List Sessions based on Document (single-doc) or Organization (multi-doc). Provide both Organization and Document IDs to fetch all single-doc Sessions for that particular Document, and provide only the Organization ID for all multi-doc Sessions in the Organization
GET
/
api
/
ai
/
session
/
list
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
organization_id
integer
requiredThe unique ID of the Organization
document_id
integer
The unique ID of the Document, if desired
Response
200 - application/json
created_at
string
requiredCreation time, by UTC
document_ids
integer[]
List of Document IDs in this Session
id
integer
requiredUnique ID of this Session
is_multidoc
boolean
requiredWhether this is a multi-doc chat session
meta
object
requiredSession metadata, for internal use
organization_id
integer
requiredUnique ID of Organization
user_id
integer
requiredUnique ID of user
visibility
enum<string>
default: sharedrequiredWhether this session can only be seen by its creator, or by the whole Workspace
Available options:
shared
, private