Call this endpoint at the start of every agent task or run. The session JWT you receive scopes all events, traces, and logs produced during that task back to a single identifiable session. Pass the returned token in theDocumentation 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.
X-OTAS-AGENT-SESSION-TOKEN header on every subsequent OTAS call made within that run.
Authentication for this endpoint uses the agent’s API key (
X-OTAS-AGENT-KEY), not a user token. The key must be active and unexpired.Endpoint
http://localhost:8000
Request headers
The agent’s API key in the format
agent_<prefix>_<secret>. Obtained when creating the agent or rotating its key.Request body
Optional JSON object with task context. Use it to attach structured metadata to the session for filtering and debugging, e.g.
{ "task": "summarize", "input_length": 512 }. Defaults to {}.Response
1 on success."agent_session_created" on success.Create a new session for every distinct task or process. Never reuse a session JWT across separate, independent runs — doing so conflates their events under a single session, making attribution and debugging unreliable.
Example
cURL
Response (200)
Subsequent call example