GET
/
api
/
ai
/
session
/
list
curl --request GET \
  --url https://cite.petal.org/api/ai/session/list \
  --header 'Authorization: Bearer <token>'
[
  {
    "created_at": "<string>",
    "document_ids": [
      123
    ],
    "id": 123,
    "is_multidoc": true,
    "meta": {},
    "organization_id": 123,
    "user_id": 123,
    "visibility": "shared"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

organization_id
integer
required

The unique ID of the Organization

document_id
integer

The unique ID of the Document, if desired

Response

200
application/json
OK
created_at
string
required

Creation time, by UTC

id
integer
required

Unique ID of this Session

is_multidoc
boolean
required

Whether this is a multi-doc chat session

meta
object
required

Session metadata, for internal use

organization_id
integer
required

Unique ID of Organization

user_id
integer
required

Unique ID of user

visibility
enum<string>
default:
shared
required

Whether this session can only be seen by its creator, or by the whole Workspace

Available options:
shared,
private
document_ids
integer[]

List of Document IDs in this Session