Overview
Document
AI Chat
AI Table
- POSTCreate an AI Table
- GETList AI Tables
- GETGet an AI Table
- POSTUpdate an AI Table
- DELDelete an AI Table
- POSTCreate an AI Table column
- GETList all columns in an AI Table
- GETGet an AI Table column
- POSTUpdate an AI Table column
- POSTRun AI on all cells in a column
- DELDelete an AI Table column
- GETList all cells in a row
- POSTRun AI on all cells in a row
- POSTCreate cells and run AI
- POSTCreate cell without AI
- POSTUpdate cell without AI
- GETList all cells in an AI Table
AI Chat
Create an AI chat Session
Create an AI Chat session
POST
/
api
/
ai
/
session
/
create
Copy
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"
}'
Copy
{
"created_at": "<string>",
"document_ids": [
123
],
"id": 123,
"is_multidoc": true,
"meta": {},
"organization_id": 123,
"user_id": 123,
"visibility": "shared"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
OK
The response is of type object
.
Copy
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"
}'
Copy
{
"created_at": "<string>",
"document_ids": [
123
],
"id": 123,
"is_multidoc": true,
"meta": {},
"organization_id": 123,
"user_id": 123,
"visibility": "shared"
}
Assistant
Responses are generated using AI and may contain mistakes.