Skip to main content
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.

Endpoint

Base URL: http://localhost:8000

Request headers

string
required
JWT obtained from the OTAS login endpoint, identifying the calling user.
string
required
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

string
required
UUID of the agent whose sessions you want to retrieve.

Response

number
1 on success.
string
"agent_sessions_listed" on success.
object

Errors

Example

cURL
Response (200)