palbaseDocs

Palbase Calls · API

POST/calls/{call_id}/media

How the media flows

A ticket into the call's room on the platform's media server, where every call's media flows — one to one or in a group — for the device the reader is in the call on: the media server's url, the ticket, the room. What the media server sends the call's people is what the project's calls are billed by.

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 (the app's install) it is done on
curl
curl -X POST "https://<your-ref>.palbase.studio/calls/<call_id>/media" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "content-type: application/json" \
  -d '{"device_id":"string"}'

Responses

200The device's media

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 device is not in the call (`not_in_call`, `answered_elsewhere`), or it is over (`call_ended`)

503Temporarily unavailable; retrying is safe after Retry-After

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

Operation GetCallMedia of calls's contract.