cURL
curl --request POST \ --url https://cite.petal.org/api/ai/session/create \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "document_ids": [ 123 ], "is_multidoc": true, "meta": {}, "organization_id": 123, "user_id": 123, "visibility": "shared" }'
{ "created_at": "<string>", "document_ids": [ 123 ], "id": 123, "is_multidoc": true, "meta": {}, "organization_id": 123, "user_id": 123, "visibility": "shared" }
Create an AI Chat session
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK
The response is of type object.
object