Delete a session

⚠️
Preview — this feature is being built; the design below is the spec.
DELETE https://app.syntic.ai/v1/sessions/{session_id}

Delete an archived session and its event history permanently. Usage records remain for billing, without content.

For how this fits into a full workflow, see Sessions.

Headers

HeaderRequiredValue
AuthorizationYesBearer <key>: a private inference key (sk_live_...). See Authentication.
syntic-betaYes, while in previewagents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning.

Path parameters

ParameterTypeDescription
session_idstringThe session id, starting with sesn_.

Response

200 OK, Content-Type: application/json

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

Examples

curl -sS -X DELETE https://app.syntic.ai/v1/sessions/sesn_01JC7M2K4P6R8T0V2X4Z \
  -H "Authorization: Bearer $SYNTIC_API_KEY" \
  -H "syntic-beta: agents-2026-11-01"

Errors

Errors use the error envelope and carry a request_id. Codes specific to this operation:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
404not_found_errorsession_not_foundNo session with that id in this workspace.
409conflict_errorsession_not_archivedArchive the session first.
401authentication_errorinvalid_api_keyThe key is missing, unknown, revoked or expired.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?