CustomDomain™ docs
Cloud browser

Approve the exact plan

Approve the exact plan: CustomDomain™ API reference in the cloud browser group. Covers request parameters, the request body, responses and error codes.

POST
/browser-sessions/{sid}:approve

Works once, only in plan_ready, only within the approval window (180 seconds), and only with the exact current plan hash. A wrong hash writes nothing. If the records changed after the plan was made, the session returns to checking with a fresh plan and a new hash.

Authorization

browserSession
AuthorizationBearer <token>

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

sid*string

The cloud browser session id, bs_ and 32 hex characters.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/browser-sessions/string:approve" \  -H "Content-Type: application/json" \  -d '{    "plan_hash": "string"  }'
{  "state": "applying"}
{  "code": "string",  "title": "string",  "details": "string"}
{  "code": "string",  "title": "string",  "details": "string"}
{  "code": "string",  "title": "string",  "details": "string"}