End the session and release the browser
End the session and release the browser: CustomDomain™ API reference in the cloud browser group. Covers parameters, request body, responses and error codes.
Idempotent: a session that is already over answers its own state. During applying it stops at the next change boundary, never inside a change. A navigator.sendBeacon cannot set headers, so this route (and :event) also accepts the token in the body, as {"token": "..."} with a content type of text/plain or JSON.
The member who started an account sign in may also cancel it with an API key, on the console's signed visitor forward, in any state before its end: this is how a sign in is abandoned at the list of domains. The key the session made, if any, is dropped and named as left_key (the name it was made with and the provider's page that deletes it); the answer carries it. While a keep step is storing the key it is 409 browser_wrong_state. The identity rules are those of the read above, and an API key without the console's forward is read as the popup's (401).
The session token of one cloud browser sign in, returned by POST /browser-sessions:redeem. It binds one session, one connection and one workspace, lives at most as long as the session, and stops working the moment the session ends. It lives in the popup's memory only.
In: header
Path Parameters
The cloud browser session id, bs_ and 32 hex characters.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/browser-sessions/string:cancel" \ -H "Content-Type: application/json" \ -d '{}'{ "state": "string", "left_key": { "name": "string", "page": "string" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}