Skip to main content
POST
Create Session Tokens

Authorizations

anchor-api-key
string
header
required

API key for your Anchor Browser account, sent as the anchor-api-key header on every request. Create one at app.anchorbrowser.io (API Access).

Path Parameters

session_id
string
required

The ID of the running session.

Body

application/json
scopes
enum<string>[]

Token scopes to mint. Omit or pass an empty list to mint every scope the session can serve: all three, only cdp on a headless session, and no live_view on a live_view.one_time_url session.

Available options:
live_view_read_only,
live_view,
cdp
allowed_ips
string[]

Client IP addresses or CIDR ranges, IPv4 or IPv6, that the minted tokens can connect from. Connections from any other address are refused with 403. Omit for no IP restriction.

Required array length: 1 - 50 elements
Example:

Response

One URL per requested scope.

data
object