Delete Session

delete/v1/sessions/{session_id}?beta=true

Path parameters

session_idstring required

Path parameter session_id

Headers

x-api-keystring
anthropic-versionstring
anthropic-betastring
anthropic-workspace-idstring

Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

Response

Successful response (OK)

type'session_deleted' required
idstring required

Example response

{
  "type": "session_deleted",
  "id": "sesn_011CZkZAtmR3yMPDzynEDxu7"
}

Changes