This endpoint returns the complete session history for a given agent, ordered newest-first by creation time. Each session record includes the metadata attached at creation and the ID of the key that was used to start it. Use this endpoint to audit agent activity, replay debugging timelines, or surface session IDs for downstream log queries.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Vedant-Jayesh-Oza/otas/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
http://localhost:8000
Request headers
JWT obtained from the OTAS login endpoint, identifying the calling user.
UUID of the project the agent belongs to. The agent must be active and owned by this project or the request returns a
403.Query parameters
UUID of the agent whose sessions you want to retrieve.
Response
1 on success."agent_sessions_listed" on success.Errors
| Status | status_description | Cause |
|---|---|---|
| 400 | agent_id_required | The agent_id query parameter was not provided. |
| 403 | agent_not_found_or_no_access | No active agent with that UUID exists in the project, or the agent belongs to a different project. |
Example
cURL
Response (200)