Retrieves a session with all its turns, including user prompts, agent responses, and generated content.
cURL
curl --request GET \ --url https://api.raccoonai.tech/sessions/{sessionId} \ --header 'Authorization: Bearer <token>'
{ "session": { "id": "<string>", "sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "title": "<string>", "userId": "<string>", "createdAt": 123, "updatedAt": 123, "deleted": true, "isPinned": true, "sandboxImage": "<string>", "fileSnapshot": {} }, "messages": [ { "id": "<string>", "sessionId": "<string>", "type": "user", "content": "<string>", "createdAt": 123, "inputMode": "auto", "aborted": true, "files": [ { "key": "<string>", "name": "<string>", "size": 123 } ], "events": [ { "event_id": 123, "stream_entry_id": "<string>", "kind": "<string>", "block_id": "<string>", "payload": {}, "timestamp": 123 } ] } ] }
API key from Raccoon AI
Session retrieved
A persistent workspace containing turns and files
Show child attributes
All messages in this session
Was this page helpful?