Skip to main content
DELETE
/
v1
/
agents
/
sessions
/
{session_id}
Terminate Session
curl --request DELETE \
  --url https://api.mixpeek.com/v1/agents/sessions/{session_id}
{
  "session_id": "<string>",
  "status": "active",
  "terminated_at": "2023-11-07T05:31:56Z"
}

Headers

Authorization
string

REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.

X-Namespace
string

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'

Path Parameters

session_id
string
required

Session ID

Response

Successful Response

Response for session termination.

Attributes: session_id: Session identifier status: New session status (terminated) terminated_at: Termination timestamp

session_id
string
required

Session identifier

status
enum<string>
required

Session status (terminated)

Available options:
active,
idle,
archived,
terminated
terminated_at
string<date-time>
required

Termination timestamp