Terminate Session
Agent Sessions
Terminate Session
Terminate a session and kill its actor.
This permanently ends the session and releases all associated resources.
Args: request: FastAPI request with tenant context session_id: Session identifier
Returns: TerminateSessionResponse with termination timestamp
Raises: NotFoundError: If session not found
Example:
curl -X DELETE http://localhost:8000/v1/agents/sessions/ses_abc123 \
-H "Authorization: Bearer {api_key}" \
-H "X-Namespace: {namespace_id}"
DELETE
Terminate Session
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Session ID
Response
Successful Response
Response for session termination.
Attributes: session_id: Session identifier status: New session status (terminated) terminated_at: Termination timestamp

