Skip to main content
POST
/
v1
/
sessions
/
end
Settle a live session on close
curl --request POST \
  --url https://api.alakazam.gg/v1/sessions/end \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>"
}
'
{
  "ok": true,
  "seconds": 123
}

Authorizations

Authorization
string
header
required

The scoped runtime session JWT from POST /v1/sessions/token. The embed's browser presents it (Authorization: Bearer, or a token body field) to the runtime exchange routes. Not an API key.

Body

application/json
token
string

Response

Settled.

ok
boolean
seconds
integer