Returns all platform chat sessions for the signed-in user within Ageneral-Project-Id.
Ageneral-Project-Id
cURL
curl --request GET \ --url https://ageneral.ai/v1/chat/sessions \ --header 'Ageneral-Project-Id: <ageneral-project-id>' \ --header 'Authorization: Bearer <token>'
{ "sessions": [ { "id": "<string>", "userId": "<string>", "projectId": "<string>", "nodeId": "<string>", "name": "<string>", "lastModelId": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } ] }
Session JWT from Ageneral sign-in. Send as Authorization: Bearer <token>.
Authorization: Bearer <token>
Project id. You must be a member with access.
Success.
Show child attributes