cURL
curl --request GET \ --url https://ninjachat.ai/api/v1/sessions/{id} \ --header 'Authorization: Bearer <token>'
{ "session_id": "<string>", "messages": [ { "role": "system", "content": "<string>" } ], "message_count": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
Get the full message history and metadata for a session.
API key starting with nj_sk_
Session ID to retrieve.
Session details.
Show child attributes