Palbase Calls · API
/calls/{call_id}/declineTurn a call down
Turns the call down on every device of the reader's: a direct call ends (declined); in a group, the reader is not rung any more and may still join.
Called by a signed-in user of your app, with their token and the publishable key.
Path
call_idstring (uuid) · requiredThe call's idcurl -X POST "https://<your-ref>.palbase.studio/calls/<call_id>/decline" \
-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`)
409The call is not what the request needs: over (`call_ended`), in on another of the person's devices (`answered_elsewhere`), not ringing for them (`not_ringing`); answered with the call as it is
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation DeclineCall of calls's contract.