Skip to content

An owner ends one of the tenant's sessions. The archive record lands through the driver like any other; nothing lands after it.

POST
/console/sessions/{id}/archive
curl --request POST \
--url https://api.canopyhq.dev/console/sessions/000000000000000000000000000000000000000000000000000000000000000000000000/archive \
--header 'Authorization: Bearer <token>'
id
required

A stream id: 72 hex chars, the shard then the owner digest.

string

The session to end.

The archive record landed; nothing lands on the session again.

No console token, or one that did not verify.

Only an owner of the tenant may end its sessions.

No such session under this tenant.

The session was already archived.