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}"
REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
REQUIRED: Namespace identifier for scoping this request. All resources (collections, buckets, taxonomies, etc.) are scoped to a namespace. You can provide either the namespace name or namespace ID. Format: ns_xxxxxxxxxxxxx (ID) or a custom name like 'my-namespace'
Session ID
Successful Response
Response for session termination.
Attributes: session_id: Session identifier status: New session status (terminated) terminated_at: Termination timestamp