API Tokens
Create expiring, scoped credentials for Cloudbrowser REST API and MCP clients.
Create and store a token
- Sign in to the Console and open API Tokens.
- Name the token, choose its expiry and select only the permissions your client needs. A token can have REST, MCP, or both sets of permissions.
- Choose Create token and copy the credential into your client’s secret store. The Console shows the plaintext once. The list shows its name, permissions, status, expiration, and a masked suffix.
REST API
Send the token in the bearer header to https://cloudbrowser.tv/api/v1. This example requires rest:read and assumes your shell has loaded CLOUDBROWSER_API_TOKEN from a secret store.
curl --fail-with-body https://cloudbrowser.tv/api/v1/browsers \
-H "Authorization: Bearer $CLOUDBROWSER_API_TOKEN"| Scope | Operations |
|---|---|
| rest:read | Read account identity, usage, workspace browsers, browser network settings and lifecycle operation status. |
| rest:manage | Create, update, pause, resume, restart, fork and delete workspace browsers. Change their network settings. |
| rest:links | Manage per-browser CDP and Live View links, reveal existing link secrets and end tracked link sessions. |
A client that creates browsers and polls their progress needs both rest:manage and rest:read. Add rest:links if the client also issues a CDP URL. Manage tokens and billing through an interactive Console session. See the REST API reference for request shapes.
MCP clients
Set the server URL to https://cloudbrowser.tv/mcp, use Streamable HTTP and add the same bearer header to every request. Select browsers:read to list browsers, browsers:operate to use Playwright tools, and browsers:manage to manage their lifecycle. See the MCP walkthrough for the first calls.
Replace or revoke a token
To rotate a credential, create a replacement, update the client, then revoke the old token in API Tokens. A revoked or expired token loses access. Active MCP browser connections are closed on the next authorization check. CDP and Live View links previously created through REST have their own lifetime; revoke them in the browser’s connection settings when needed.