Skip to main content
POST
Cancel a browser session (data plane)
The browser data plane: the session’s cancel_url from POST /calls with "type": "web". It takes back a session nobody will use, from your server or from the page you handed the token to. It is authorized by the session token itself, as x-yappr-web-token - never your secret key.
Send no body, or {}. The token is spent so no browser can use it. An offer session’s call settles at once, exactly as POST /calls/{id}/end settles it, and call_id names it; a call_request session answers call_id: null, because its call does not exist yet. This is the only way to take back a call_request session. Sending it again answers the same. A token that has already expired answers "status": "expired": there is nothing left to take back. A cancelled token stays cancelled. A browser that still presents it is refused 403 WEB_SESSION_CANCELLED by the offer, by TURN Credentials and by Create Browser Call Request, so a page can tell a session you took back from one that ran out.

Headers

x-yappr-web-token
string
required

The session token (wcs_…).

Response

Cancelled (or already expired). call_id is null for a call_request session. A token that created a call request answers with that request cancelled and its request_id.

status
enum<string>
required
Available options:
cancelled,
expired
call_id
string<uuid> | null
required
request_id
string<uuid>

Only when the token created a call request - the request this cancelled.