CLOUDBROWSER DOCUMENTATION

REST API reference

REST endpoints for persistent cloud browsers, connection grants, sharing, usage and billing.

OpenAPI 3.1 for the Cloudbrowser REST API at cloudbrowser.tv/api/v1. The Go CLI manages browsers and links through this API. Pause the source browser before forking. A fork inherits the saved Chrome profile and keeps subsequent writes isolated. Download the source contract →

Base URL & authentication

HTTP
https://cloudbrowser.tv/api/v1
Authorization: Bearer <api_token>
Content-Type: application/json

Create a scoped API token for scripts and integrations. The credential saved by CLI sign-in continues to authenticate CLI requests. Browser connection tokens do not authorize REST lifecycle or grant management. Viewer exchange, refresh and logout below use the isolated viewer origin and their own ticket/cookie authorization; never send a workspace key there. Browser access is checked on every request.

Operations

GET/playground

Read the temporary session and initialize its HttpOnly browser proof cookie

Read the temporary session, signed-in state and whether the guest allowance is exhausted (guestTrialUsed) and the remaining guest runtime known from that proof in seconds (guestRemainingSeconds, null when signed in). Initializes its HttpOnly browser proof cookie. The response also includes linksEnabled, indicating whether temporary CDP and Live View link creation is available.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

POST/playground

Start a temporary browser session

Start a temporary browser. Guests receive 30 minutes of cumulative browser runtime across sessions in a rolling 30-day window, with at most one active session per recognized guest. The guest allowance uses the browser proof and existing device signals. Global guest capacity and allocation budgets remain separate. Signed-in sessions use normal workspace quota and concurrency. Requires a browser proof cookie and the application Origin.

GO CLI
See CLI reference

Success: 202. Complete parameters and response schema ↗

POST/playground/{browserId}/open-url

Open an HTTP or HTTPS website in a new foreground tab on a running temporary desktop

Requires the initiating browser proof, application Origin and matching runtime generation. Billed sessions also require the initiating account.

GO CLI
See CLI reference

Body schema: OpenPlaygroundUrl. See schema definitions below.

Success: 200. Complete parameters and response schema ↗

POST/playground/{browserId}/ticket

Issue a short-lived viewer ticket for an active trial using its browser proof

Issue a short-lived viewer ticket for an active trial using its browser proof.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

POST/playground/{browserId}/claim

Claim the same running browser or begin the verified sign-in flow

Claim the same running browser or begin the verified sign-in flow. Requires the browser proof and application Origin.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

POST/playground/{browserId}/end

End the trial and schedule deletion

End the trial and schedule deletion. Requires the browser proof and application Origin.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

POST/playground-share/{linkId}/{action}

Resolve a temporary Live View or issue a viewer ticket

Requires the application Origin and temporary Live View secret. No account or library acceptance. Resolve returns browser metadata and permission; ticket additionally returns a short-lived viewer ticket and isolated viewer URL. Never resumes or extends the browser.

GO CLI
See CLI reference

Body schema: TemporaryShareCredential. See schema definitions below.

Success: 200. Complete parameters and response schema ↗

POST/browsers

Create a browser

Reserves running capacity atomically and queues an on-demand browser creation. Returns the lifecycle operation. Links can be created before the browser is running. Connecting requires a running browser.

GO CLI
cloudbrowser create --name research --wait

Body schema: CreateBrowser. See schema definitions below.

Success: 202. Complete parameters and response schema ↗

GET/browsers

List browsers

Authenticated, workspace-scoped operation.

GO CLI
cloudbrowser list --output json

Success: 200. Complete parameters and response schema ↗

GET/browsers/{browserId}

Get a browser

Authenticated, workspace-scoped operation.

GO CLI
cloudbrowser get br_123

Success: 200. Complete parameters and response schema ↗

DELETE/browsers/{browserId}

Delete a browser

Revoke all grants and stop connections. Deletion is terminal.

GO CLI
cloudbrowser delete br_123 --yes

Success: 202. Complete parameters and response schema ↗

PATCH/browsers/{browserId}

Update browser settings

Owner workspace only. Save auto-pause immediately. Re-enabling grants a fresh 5-minute connection window. Returns 409 while pausing or deleting. Never resumes a browser.

GO CLI
See CLI reference

Body schema: UpdateBrowserSettings. See schema definitions below.

Success: 200. Complete parameters and response schema ↗

POST/browsers/{browserId}/pause

Pause a browser

Pause disconnects active transports and invalidates runtime viewer sessions/tickets. CDP and reusable Live View links remain valid. After resume reconnect with the same URL. Chrome profiles persist; live page memory is not guaranteed. No implicit resume on access. Pause flushes Chrome profile writes before requesting provider pause. Owners can retry pause for a failed browser with a previous runtime. Admission immediately sets browser status to pausing. Operation success requires the provider to confirm paused; HTTP 202 alone is not completion.

GO CLI
cloudbrowser pause br_123 --wait

Success: 202. Complete parameters and response schema ↗

POST/browsers/{browserId}/resume

Resume a browser

Pause disconnects active transports and invalidates runtime viewer sessions/tickets. CDP and reusable Live View links remain valid. After resume reconnect with the same URL. Chrome profiles persist; live page memory is not guaranteed. No implicit resume on access. Pause flushes Chrome profile writes before requesting provider pause. Admission immediately sets browser status to resuming. Operation success requires a new running runtime generation and responsive desktop/CDP services; reconnect only after success. HTTP 202 alone is not completion.

GO CLI
cloudbrowser resume br_123 --wait

Success: 202. Complete parameters and response schema ↗

POST/browsers/{browserId}/restart

Restart a browser

Owner workspace only. Requires a running browser or a failed browser with an existing runtime. Saves the profile and starts Chrome again on the same browser. Existing grants survive. Web caches and managed downloads are cleared. Unsaved work and in-memory state can be lost. Existing sessions disconnect. The operation reapplies the network policy and waits for a new generation with healthy desktop and CDP endpoints. Compute allowance and concurrency apply.

GO CLI
cloudbrowser restart br_123 --wait

Success: 202. Complete parameters and response schema ↗

POST/browsers/{browserId}/fork

Fork a browser

Creates an independent browser from a paused source checkpoint. Cookies and site storage are inherited. The child starts with empty web caches and managed downloads. The child receives its own browser ID. Create access grants for the child as needed. A running source returns 409 pause_required. Multiple forks can share a paused source. Resume or deletion of the source returns 409 busy until its forks finish. Completed children can be operated independently.

GO CLI
cloudbrowser fork br_123 --name research-copy --wait

Body schema: ForkBrowser. See schema definitions below.

Success: 202. Complete parameters and response schema ↗

POST/browsers/{browserId}/grants

Create connection access

Create a permanent browser-scoped link, valid until revoked. CDP provides full control. Live View requires sign-in and defaults to read-only. URLs survive pause/resume; runtime connections must reconnect. The URL is returned on creation and can be revealed again by the owner; listings never expose it.

GO CLI
cloudbrowser links create br_123 --audience cdp --name research --output json

Body schema: CreateGrant. See schema definitions below.

Success: 201. Complete parameters and response schema ↗

GET/browsers/{browserId}/grants

List access grants

List metadata only, never bearer URLs, share secrets, refresh cookies or entry tickets. Live View metadata includes permission, expiresAt (null for never), lastOpenedAt, activeSessions and revision. Filter by audience/status; paginate with cursor/limit. Local implementation returns all matching entries with nextCursor=null; pagination is pending.

GO CLI
cloudbrowser links list br_123

Success: 200. Complete parameters and response schema ↗

DELETE/browsers/{browserId}/grants/{grantId}

Revoke access

Permanently revoke this grant, close its streams, and invalidate all tickets and refresh families. Reusable URL can no longer create sessions. Idempotent; revoked grants cannot be revived. Does not delete the browser.

GO CLI
cloudbrowser links revoke br_123 grant_123 --yes

Success: 200. Complete parameters and response schema ↗

GET/operations/{operationId}

Inspect an operation

Authenticated, workspace-scoped operation.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

GET/usage

Get current usage

Authenticated, workspace-scoped operation.

GO CLI
cloudbrowser usage --output json

Success: 200. Complete parameters and response schema ↗

POST/b/{browserId}/session/exchange

Exchange a Live View link

Consume an account-authorized, runtime-bound ticket once and issue short-lived HttpOnly viewer session cookies. Requires exact Origin and browser binding; rejects revoked source grants, changed permissions and inactive runtimes. Link authorization persists until revoked; session credentials refresh internally. No workspace key or anonymous sharing access is accepted.

VIEWER WEBPAGE
fetch("/b/br_123/session/exchange", {
  method: "POST",
  credentials: "same-origin",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ ticket }), // received from the account shell via a validated handshake
});
// Runs on https://view.cloudbrowser.tv; cookies are set by the server.
// No CLI process or workspace API key required.

Body schema: ExchangeViewerTicket. See schema definitions below.

Success: 200. Complete parameters and response schema ↗

POST/b/{browserId}/session/refresh

Refresh the viewer session

Rotate short-lived viewer cookies with reuse detection. Reject revoked sessions, inactive grants, changed revision/runtime or expired idle deadline. Internal session refresh requires no CLI process. Reopen through the authenticated account library after session inactivity. Does not widen permissions.

VIEWER WEBPAGE
fetch("/b/br_123/session/refresh", {
  method: "POST",
  credentials: "same-origin",
});
// Runs on https://view.cloudbrowser.tv; cookies are set by the server.
// No CLI process or workspace API key required.

Success: 200. Complete parameters and response schema ↗

POST/b/{browserId}/session/logout

End the viewer session

End only the current viewer session, revoke its refresh family and close streams; clear cookies using the exact browser-specific path. Does not revoke the share URL: the accepted account can reopen its saved browser for a new session. Direct one-time tickets remain consumed. Missing/expired cookies are cleared and return 200. Closing a page alone is not reliable logout. Use isolated viewer origin, no-store/no-referrer, strict CSP, same-origin credentials, exact Origin/CSRF checks and redacted logs. Check current link authorization, permission, revision, runtime and issuer access on every request and stream. Never accept a workspace API key here. Validate the recipient’s active account/membership as well as the owner’s source grant. Removal from the recipient library invalidates that recipient’s sessions only. Local cookies are independently named per viewer session (cb_access_{sessionId}, cb_refresh_{sessionId}) and omit Secure on localhost HTTP. No anonymous account authorization.

VIEWER WEBPAGE
fetch("/b/br_123/session/logout", {
  method: "POST",
  credentials: "same-origin",
});
// Runs on https://view.cloudbrowser.tv; cookies are set by the server.
// No CLI process or workspace API key required.

Success: 200. Complete parameters and response schema ↗

GET/browsers/{browserId}/grants/{grantId}/sessions

List a link’s authorized viewer sessions

Workspace authorization required. Return metadata only; no cookies, tokens or private page content. Expired/ended sessions are excluded. Local implementation returns all matching entries with nextCursor=null; pagination is pending.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

DELETE/browsers/{browserId}/grants/{grantId}/sessions

End all sessions for a Live View link

Workspace authorization required. Invalidate all current sessions, refresh families and outstanding entry tickets; close streams. The reusable share URL stays valid for future visits. Use revokeGrant to prevent future visits too. Does not operate on CDP.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

POST/library/resources

Read current resource metrics for visible browsers

Account-only, read-only sampling. Accepts up to 32 browser IDs; only authorized running browsers return fresh CPU and RAM measurements. Missing or unauthorized IDs are omitted. An unavailable or stopped runtime returns null or is omitted. Monitoring does not resume browsers or count as a desktop/CDP connection.

GO CLI
See CLI reference

Body schema: BrowserResourceRequest. See schema definitions below.

Success: 200. Complete parameters and response schema ↗

GET/library/browsers

List my owned and shared browsers

Signed-in account only. Owned and shared entries appear in one grid. A shared entry does not transfer ownership, create a browser, consume the recipient’s browser concurrency, or grant lifecycle/reshare/CDP rights. Every preview subscription rechecks current authorization. Unavailable entries may remain visible without streaming private contents. Compute remains on the owning workspace. Local implementation returns all matching entries with nextCursor=null; pagination is pending.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

POST/library/shares/accept

Accept a shared browser into my account

Requires signed-in account and a valid invitation. Reusable share links can be accepted by multiple accounts. Direct one-time invitations atomically bind to the first accepting account; subsequent redemption receives 409, including by the same account; use the saved library entry instead. Validate link expiration, revocation, revision and owner authority before accepting. Save an account-to-browser access reference, not ownership or a raw bearer token. Deduplicate by account/browser and retain a specific authorized source grant; never silently widen rights. Existing owner entries remain owned. Accepted members can later request fresh viewer tickets without replaying the original invite. Entry ticket expiration does not expire accepted membership; parent-link expiration/revocation does. Return the canonical /browsers/{id} URL. A paused browser can be added but must not be resumed automatically.

GO CLI
See CLI reference

Body schema: AcceptSharedBrowser. See schema definitions below.

Success: 200. Complete parameters and response schema ↗

DELETE/library/browsers/{browserId}

Remove a shared browser from my library

Remove only this recipient’s saved access relationship and end that recipient’s viewer sessions. Do not delete/pause the owner’s browser, revoke the public share link or affect other recipients. Reject owned entries; owner deletion uses the lifecycle API. Re-adding requires a valid reusable invite or new invite if one-time access was removed.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

POST/library/browsers/{browserId}/viewer-ticket

Open an owned or saved shared browser

Account authorization required. Check ownership or saved membership AND its current parent grant permission, revision, expiration and issuer access; a saved list entry is not authority by itself. Browser must be running to stream; paused view shows an explicitly labeled authorized last frame without implicitly resuming. Mint a short-lived one-use runtime-bound ticket for the isolated viewer origin. The account shell passes only this ticket through a strict origin-checked handshake to the viewer, never its account cookie or workspace API key. Shared control grants no lifecycle, deletion, fork, reshare or CDP rights. Grid and fullscreen use this same authorization path; switching presentation alone does not duplicate runtime sessions.

GO CLI
See CLI reference

Success: 201. Complete parameters and response schema ↗

GET/billing/status

Get plan, runtime, estimated overage and billing access

Only the workspace billing owner can modify billing.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

GET/billing/checkout

Get the billing email and latest pending checkout for the billing owner

Returns the saved billing email or verified sign-in email and the latest pending Stripe Checkout.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

POST/billing/checkout

Start hosted Stripe Checkout for a new subscription

Only the workspace billing owner can modify billing. Checkout displays the monthly or yearly subscription amount due. Additional usage is billed separately each usage month.

GO CLI
See CLI reference

Body schema: CheckoutRequest. See schema definitions below.

Success: 200. Complete parameters and response schema ↗

POST/billing/checkout/selection

Record a billing owner choosing a paid plan

Records a deduplicated first-party checkout funnel event without sending account data to analytics providers.

GO CLI
See CLI reference

Body schema: CheckoutSelectionRequest. See schema definitions below.

Success: 200. Complete parameters and response schema ↗

POST/billing/checkout/cancel

Record a return from a canceled hosted checkout

Records an unpaid return when the attempt belongs to this workspace.

GO CLI
See CLI reference

Body schema: CheckoutCancelRequest. See schema definitions below.

Success: 200. Complete parameters and response schema ↗

POST/billing/portal

Open payment methods and invoices

Only the workspace billing owner can modify billing.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

POST/billing/refresh

Reconcile Stripe payment and subscription status

Only the workspace billing owner can modify billing.

GO CLI
See CLI reference

Success: 200. Complete parameters and response schema ↗

POST/billing/upgrade-preview

Preview a paid-plan upgrade; valid for five minutes

Only the workspace billing owner can modify billing. The target defaults to Pro and uses the existing subscription interval. Additional included seconds are for the current usage month.

GO CLI
See CLI reference

Body schema: UpgradePreviewRequest. See schema definitions below.

Success: 200. Complete parameters and response schema ↗

POST/billing/plan

Upgrade after payment or schedule changes for renewal

Only the workspace billing owner can modify billing. Downgrades, cancellations and interval changes take effect at subscription renewal.

GO CLI
See CLI reference

Body schema: PlanChangeRequest. See schema definitions below.

Success: 200. Complete parameters and response schema ↗

GET/browsers/{browserId}/grants/{grantId}/secret

Reveal a saved owner link

Owner-only action. Returns the decrypted URL and, for CDP grants, the short prompt for an agent. List endpoints never return the bearer secret. Grants created before encrypted secret storage may return 409 secret_unavailable.

GO CLI
cloudbrowser links reveal br_123 grant_123 --output url

Success: 200. Complete parameters and response schema ↗

GET/browsers/{browserId}/network

Read browser network controls

Owner workspace only. Reads the effective browser network policy without resuming compute. Shared access does not grant policy access. Unknown upstream rules are reported as unverified.

GO CLI
cloudbrowser network get BROWSER_ID

Success: 200. Complete parameters and response schema ↗

PUT/browsers/{browserId}/network

Apply browser network controls

Owner workspace only. Requires Idempotency-Key; poll the returned operation until succeeded. Website connections can disconnect. Paused browsers stay paused. Resume, fork and further network changes wait for confirmation. Pause/delete can interrupt confirmation; resume enforces the requested policy before starting compute. Uncertain responses retry automatically; pending does not mean the requested policy is enforced.

GO CLI
cloudbrowser network update BROWSER_ID --mode allow-list --domains example.com,*.example.org

Body schema: NetworkPolicy. See schema definitions below.

Success: 202. Complete parameters and response schema ↗

Request and response schemas

OpenPlaygroundUrl
JSON SCHEMA
{
  "type": "object",
  "required": [
    "url",
    "generation"
  ],
  "additionalProperties": false,
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 8192
    },
    "generation": {
      "type": "integer",
      "minimum": 1
    }
  }
}
CreateBrowser
JSON SCHEMA
{
  "type": "object",
  "required": [
    "name"
  ],
  "additionalProperties": false,
  "properties": {
    "browserType": {
      "type": "string",
      "enum": [
        "chrome",
        "edge",
        "chromium",
        "brave"
      ],
      "default": "chrome",
      "description": "Browser product. Defaults to Chrome when omitted on creation; inherited on fork. For new allocations, GET /me lists availableBrowserTypes."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 50
    },
    "autoPause": {
      "type": "boolean",
      "default": true,
      "description": "Automatically pause after 5 minutes without a live CDP or desktop connection, including Console previews. Disable for disconnected background tasks. Creating, resuming or re-enabling starts a fresh 5-minute window. Does not override billing limits."
    },
    "network": {
      "$ref": "#/components/schemas/NetworkPolicy",
      "description": "Applied at claim time before website access. Defaults to allow-all without blocked domains."
    }
  }
}
ForkBrowser
JSON SCHEMA
{
  "type": "object",
  "required": [
    "name"
  ],
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 50
    },
    "startPaused": {
      "type": "boolean",
      "default": true,
      "description": "Paused forks do not reserve running capacity. They retain independent profile writes."
    },
    "autoPause": {
      "type": "boolean",
      "description": "Inherits the source browser setting when omitted."
    }
  }
}
UpdateBrowserSettings
JSON SCHEMA
{
  "type": "object",
  "required": [
    "autoPause"
  ],
  "additionalProperties": false,
  "properties": {
    "autoPause": {
      "type": "boolean",
      "default": true,
      "description": "Automatically pause after 5 minutes without a live CDP or desktop connection, including Console previews. Disable for disconnected background tasks. Creating, resuming or re-enabling starts a fresh 5-minute window. Does not override billing limits."
    }
  }
}
CreateGrant
JSON SCHEMA
{
  "oneOf": [
    {
      "$ref": "#/components/schemas/CreateCdpGrant"
    },
    {
      "$ref": "#/components/schemas/CreateLiveViewGrant"
    }
  ],
  "discriminator": {
    "propertyName": "audience",
    "mapping": {
      "cdp": "#/components/schemas/CreateCdpGrant",
      "live-view": "#/components/schemas/CreateLiveViewGrant"
    }
  }
}
CreateCdpGrant
JSON SCHEMA
{
  "type": "object",
  "required": [
    "audience"
  ],
  "additionalProperties": false,
  "properties": {
    "audience": {
      "const": "cdp"
    },
    "permission": {
      "const": "control"
    },
    "name": {
      "type": "string",
      "maxLength": 80,
      "default": ""
    }
  }
}
CreateLiveViewGrant
JSON SCHEMA
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "audience": {
      "const": "live-view"
    },
    "mode": {
      "const": "share",
      "default": "share",
      "description": "New links are reusable. Existing one-time invitations retain their original claim rules."
    },
    "permission": {
      "type": "string",
      "enum": [
        "view",
        "control"
      ],
      "default": "view",
      "description": "view is read-only: stream only, no mouse, keyboard, touch, clipboard writes, uploads, navigation commands or browser control. control allows browser interaction but no workspace, lifecycle or CDP administration. Enforced by the gateway, not just UI."
    },
    "name": {
      "type": "string",
      "maxLength": 80,
      "default": ""
    }
  },
  "required": [
    "audience"
  ]
}
UpdateLiveViewGrant
JSON SCHEMA
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "permission": {
      "type": "string",
      "enum": [
        "view",
        "control"
      ],
      "default": "view",
      "description": "view is read-only: stream only, no mouse, keyboard, touch, clipboard writes, uploads, navigation commands or browser control. control allows browser interaction but no workspace, lifecycle or CDP administration. Enforced by the gateway, not just UI."
    },
    "name": {
      "type": "string",
      "maxLength": 80
    }
  },
  "required": [],
  "minProperties": 1,
  "description": "Share-mode Live View only. At least one property required. Every effective policy change invalidates all old sessions and tickets immediately and increments revision. The same reusable URL can then open a fresh session. Revoked grants cannot be revived. An expired share may be extended by its owner, but previous sessions stay ended."
}
AcceptSharedBrowser
JSON SCHEMA
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "linkId": {
      "type": "string"
    },
    "shareToken": {
      "type": "string"
    },
    "ticket": {
      "type": "string"
    }
  },
  "required": [
    "linkId"
  ],
  "oneOf": [
    {
      "required": [
        "shareToken"
      ],
      "not": {
        "required": [
          "ticket"
        ]
      }
    },
    {
      "required": [
        "ticket"
      ],
      "not": {
        "required": [
          "shareToken"
        ]
      }
    }
  ],
  "description": "Account authorization plus one invitation credential. Token read from URL fragment and removed immediately. Store a server-side pending authorization handle bound to the login transaction when redirecting to sign-in; never put the bearer secret in OAuth state, returnTo, query strings, analytics or localStorage."
}
BrowserLibraryEntry
JSON SCHEMA
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "br_123"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "starting",
        "running",
        "pausing",
        "paused",
        "resuming",
        "restarting",
        "failed",
        "deleting",
        "unavailable"
      ]
    },
    "parentId": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "error": {
      "type": [
        "string",
        "null"
      ]
    },
    "runtimeGeneration": {
      "type": "integer"
    },
    "owner": {
      "type": "boolean"
    },
    "permission": {
      "type": "string",
      "enum": [
        "view",
        "control"
      ]
    },
    "ownerName": {
      "type": "string"
    },
    "shared": {
      "type": "boolean",
      "description": "Owned browser has at least one currently active sharing grant."
    },
    "ownerAvatarUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "pauseReason": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "user",
        "free_allowance_exhausted",
        "starter_allowance_exhausted",
        "payment_required",
        "concurrency_limit",
        "upstream",
        "created_paused",
        null
      ],
      "description": "Recorded reason for the most recent pause. Null for unknown historical reasons and shared viewers. Does not indicate whether resume is currently allowed."
    },
    "pausedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time the pause completed. Null while pausing, for older records or shared viewers."
    }
  },
  "required": [
    "id",
    "name",
    "status",
    "owner",
    "permission",
    "runtimeGeneration"
  ]
}
ViewerTicket
JSON SCHEMA
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "ticket": {
      "type": "string",
      "description": "One-time secret minted after account/library authorization, bound to recipient account, browser, grant revision, permission and runtime. Return only on ticket issuance."
    },
    "ticketExpiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "url": {
      "type": "string",
      "description": "Isolated viewer URL carrying a single-use ticket in its fragment. The viewer clears the fragment before exchange."
    }
  },
  "required": [
    "ticket",
    "ticketExpiresAt",
    "url"
  ]
}
ExchangeViewerTicket
JSON SCHEMA
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "ticket"
  ],
  "properties": {
    "ticket": {
      "type": "string",
      "description": "Single-use opaque secret from the URL fragment. Never log it."
    }
  }
}
GrantIssue
JSON SCHEMA
{
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "grant",
        "cdpUrl"
      ],
      "properties": {
        "grant": {
          "$ref": "#/components/schemas/CdpGrant"
        },
        "cdpUrl": {
          "type": "string",
          "description": "Secret returned only on issuance."
        }
      }
    },
    {
      "type": "object",
      "required": [
        "grant",
        "liveViewUrl"
      ],
      "properties": {
        "grant": {
          "$ref": "#/components/schemas/LiveViewGrant"
        },
        "liveViewUrl": {
          "type": "string",
          "description": "Public account-shell entry URL, returned only at issuance: https://cloudbrowser.tv/view/{grantId}#share=... (reusable) or #ticket=... (one-time invitation). Sign in and accept into your library, then open /browsers/{browserId} fullscreen in the same workspace. Viewer transport remains isolated at view.cloudbrowser.tv. Raw secrets never appear in listings."
        }
      }
    }
  ]
}
LiveViewGrant
JSON SCHEMA
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string"
    },
    "browserId": {
      "type": "string"
    },
    "audience": {
      "const": "live-view"
    },
    "mode": {
      "type": "string",
      "enum": [
        "share",
        "one-time"
      ]
    },
    "permission": {
      "type": "string",
      "enum": [
        "view",
        "control"
      ],
      "default": "view",
      "description": "view is read-only: stream only, no mouse, keyboard, touch, clipboard writes, uploads, navigation commands or browser control. control allows browser interaction but no workspace, lifecycle or CDP administration. Enforced by the gateway, not just UI."
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "Null for permanent links. Legacy revoked links may retain their former deadline."
    },
    "ticketTtlSeconds": {
      "type": "integer"
    },
    "entryExpiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Direct one-time URL only; null for reusable shares."
    },
    "autoRenew": {
      "type": "boolean",
      "deprecated": true,
      "description": "Legacy field. No link renewal is needed; viewer credentials refresh internally."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "lastOpenedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "activeSessions": {
      "type": "integer",
      "minimum": 0,
      "description": "Current authorized viewer sessions, not connected socket count."
    },
    "revision": {
      "type": "integer",
      "minimum": 1
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "expired",
        "revoked",
        "used"
      ]
    },
    "revoked": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "lastUsedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "visitors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "avatarUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastUsedAt": {
            "type": "string",
            "format": "date-time"
          },
          "online": {
            "type": "boolean"
          }
        }
      }
    },
    "hasSecret": {
      "type": "boolean",
      "description": "Owner metadata: whether repeat-copy is available. The secret is never returned by list endpoints."
    }
  },
  "required": [
    "id",
    "browserId",
    "audience",
    "mode",
    "permission",
    "expiresAt",
    "ticketTtlSeconds",
    "entryExpiresAt",
    "autoRenew",
    "createdAt",
    "lastOpenedAt",
    "activeSessions",
    "revision",
    "status",
    "revoked"
  ]
}
ViewerSession
JSON SCHEMA
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "grantId",
    "browserId",
    "permission",
    "autoRenew",
    "accessExpiresAt",
    "idleExpiresAt",
    "ended",
    "authorizationExpiresAt",
    "accountId"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "grantId": {
      "type": "string"
    },
    "browserId": {
      "type": "string"
    },
    "permission": {
      "type": "string",
      "enum": [
        "view",
        "control"
      ],
      "default": "view",
      "description": "view is read-only: stream only, no mouse, keyboard, touch, clipboard writes, uploads, navigation commands or browser control. control allows browser interaction but no workspace, lifecycle or CDP administration. Enforced by the gateway, not just UI."
    },
    "autoRenew": {
      "type": "boolean"
    },
    "accessExpiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "idleExpiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "ended": {
      "type": "boolean"
    },
    "authorizationExpiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "default": null,
      "description": "Absolute link authorization deadline, measured from issuance/update; null means no expiration. Applies to new visits AND all existing sessions. Automatic refresh never moves this deadline."
    },
    "accountId": {
      "type": "string",
      "description": "Recipient account binding; never infer identity from browserId alone."
    }
  }
}

Errors, pagination and retries

Errors return code, message and requestId. Lists accept an opaque cursor and limit (1–100), and return items and nextCursor.

StatusMeaning
400Invalid parameters or token policy.
401 / 403Missing credentials or insufficient access.
404Resource not found or not visible to this caller.
409Lifecycle conflict, expired/revoked grant, idempotency conflict.
410Viewer entry ticket is expired, invalid or already consumed.
429Concurrency or rate limit; include Retry-After when applicable.
503Runtime temporarily unavailable.

Create and fork require Idempotency-Key. Retry with the original key and identical payload after an uncertain response. Never infer that a timeout means no resource was created.

Browser guides · REST API · Go CLIExplore console