palbaseDocs

Palbase Calls · API

POST/calls/{call_id}/join

Join a group call

Comes into a group call the reader was asked to — rung, missed, declined, or in before — on the device; or, unasked, a call held at a place whose rule lets the reader in.

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

Path

call_idstring (uuid) · requiredThe call's id

Request body

device_idstring · requiredThe device it is joined on
image_urlstring · optionalTheir picture, an https URL, likewise
namestring · optionalWhat the others see of one who comes in unasked (a place's), where nothing else names them
curl
curl -X POST "https://<your-ref>.palbase.studio/calls/<call_id>/join" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "content-type: application/json" \
  -d '{"device_id":"string"}'

Responses

200The call, joined on this device

400Not a device's id (`invalid_device_id`), or a name or picture that is not one (`invalid_profile`)

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

403The call's place does not let the reader in (`not_allowed`)

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

409A direct call is answered, not joined (`not_joinable`); the call is over (`call_ended`) or full (`call_full`); the reader is in it on another device (`answered_elsewhere`)

503Temporarily unavailable; retrying is safe after Retry-After

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

Operation JoinCall of calls's contract.