Skip to main content
POST
Start a browser call request (data plane)
The browser data plane: the start_url a browser call request answered with, authorized by the request’s start_capability as x-yappr-call-request-key. Once the poll reads ready, the browser sends a fresh SDP offer here, takes a line and gets the answer it completes the connection with.
It is the same start as POST /call-requests/{id}/start, with the same rules: build the peer connection now, not before the steps ran, and a start is one offer - the same offer again returns the same peer with replayed: true, and a different one is 409 WORKFLOW_START_ALREADY_CLAIMED. call_id is the call record. To skip the wait for ready, send the offer as soon as you have it with "wait_for_ready_ms": 15000 (at most 15000): the start waits up to that long for the steps to finish, then takes the line. If they have not finished by then, or they failed, the answer is 409 WORKFLOW_START_NOT_READY and you poll the request (it says why) and start again as usual.

Headers

x-yappr-call-request-key
string
required

Path Parameters

id
string<uuid>
required

Body

application/json
sdp
string
required
type
enum<string>
required
Available options:
offer
wait_for_ready_ms
integer

Optional. Send the offer while the request is still preparing and let the start wait up to this many milliseconds (at most 15000) for it to read ready, instead of polling first. Absent or 0, a request that is not ready is refused at once with WORKFLOW_START_NOT_READY. A request whose steps failed is refused the same way once the wait runs out; poll it to read why.

Required range: x >= 0

Response

The call is live. Complete the WebRTC connection with this answer.

sdp
string
required
type
enum<string>
required
Available options:
answer
pc_id
string
required
call_id
string<uuid>
required
request_id
string<uuid>
required
ice_candidate_url
string<uri>
run_id
string<uuid>
replayed
boolean