curl --request GET \
--url https://api.getcargo.io/v1/ai/chats/list \
--header 'Authorization: Bearer <token>'{
"chats": [
{
"uuid": "<string>",
"slug": "<string>",
"workspaceUuid": "<string>",
"userUuid": "<string>",
"agentUuid": "<string>",
"releaseUuid": "<string>",
"name": "<string>",
"trigger": "<unknown>",
"activeStreamUuid": "<string>",
"creditsUsedCount": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"lastMessage": {
"uuid": "<string>",
"workspaceUuid": "<string>",
"agentUuid": "<string>",
"releaseUuid": "<string>",
"chatUuid": "<string>",
"userUuid": "<string>",
"status": "pending",
"errorMessage": "<string>",
"type": "user",
"createdAt": "<string>",
"updatedAt": "<string>",
"finishedAt": "<string>",
"deletedAt": "<string>"
}
}
]
}List all chat sessions
curl --request GET \
--url https://api.getcargo.io/v1/ai/chats/list \
--header 'Authorization: Bearer <token>'{
"chats": [
{
"uuid": "<string>",
"slug": "<string>",
"workspaceUuid": "<string>",
"userUuid": "<string>",
"agentUuid": "<string>",
"releaseUuid": "<string>",
"name": "<string>",
"trigger": "<unknown>",
"activeStreamUuid": "<string>",
"creditsUsedCount": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>",
"lastMessage": {
"uuid": "<string>",
"workspaceUuid": "<string>",
"agentUuid": "<string>",
"releaseUuid": "<string>",
"chatUuid": "<string>",
"userUuid": "<string>",
"status": "pending",
"errorMessage": "<string>",
"type": "user",
"createdAt": "<string>",
"updatedAt": "<string>",
"finishedAt": "<string>",
"deletedAt": "<string>"
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Filter chats by agent identifier.
Filter chats by release identifier.
Filter chats by user identifier.
Filter chats by trigger type.
connector, draft, web_extension, app, workflow Maximum number of chats to return.
Number of chats to skip.
Successful response
List of chats.
Show child attributes
Was this page helpful?