palbaseDocs

Palbase Calls · API

POST/calls/{call_id}/leave

Hang up

Takes the reader out of the call. A direct call ends for both — canceled while it rings (the person called missed it), hung_up once answered; a group goes on while a person is in it or being rung. Leaving a call that is over is done.

Called by a signed-in user of your app, with their token and the publishable key.

Path

call_idstring (uuid) · requiredThe call's id
curl
curl -X POST "https://<your-ref>.palbase.studio/calls/<call_id>/leave" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN"

Responses

200The call

401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)

404No such call of the reader's (`call_not_found`)

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation LeaveCall of calls's contract.