Dozor
Sessions

Cancel a session — SDK `stop()` teardown path

Public-key authenticated. Hard-deletes the session row matching `(projectId, externalId)`. Quiet no-op when no row exists — cancellation can race with the first ingest batch arriving. The `(projectId, externalId)` scoping prevents one project's key from cancelling another project's session.

POST/api/sessions/cancel

Public-key authenticated. Hard-deletes the session row matching (projectId, externalId). Quiet no-op when no row exists — cancellation can race with the first ingest batch arriving. The (projectId, externalId) scoping prevents one project's key from cancelling another project's session.

Header Parameters

x-dozor-public-key*string

Project public key (dp_<32hex>) — created in Settings → Organizations → Project.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://loading/api/sessions/cancel" \  -H "x-dozor-public-key: string" \  -H "Content-Type: application/json" \  -d '{    "sessionId": "9b2e1d4c-6a3f-4f8e-9b1d-2c8a4e6f7a90"  }'
Empty
Empty
Empty