Palbase Calls · API
/calls/{call_id}/acceptAnswer a call
Answers the call on the device: the first of the person's devices to answer has it, and their others stop ringing (the call's snapshot on their channel; a silent push to an Android device woken by the ring). A device that lost its last call (its app killed) answers on: that call ends.
Called by a signed-in user of your app, with their token and the publishable key.
Path
call_idstring (uuid) · requiredThe call's idRequest body
device_idstring · requiredThe device (the app's install) it is done oncurl -X POST "https://<your-ref>.palbase.studio/calls/<call_id>/accept" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN" \
-H "content-type: application/json" \
-d '{"device_id":"string"}'Responses
200The call, answered on this device
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 AcceptCall of calls's contract.