Mint a scoped token for a browser call
Mints a short-lived JWT scoped to a single agent for a browser (WebRTC)
call. Call it **server-side** with a full-scope API key or a dashboard
session, then hand the returned `token` to the browser so it can submit
an SDP offer to `POST /v1/webrtc/offer` without exposing your API key.
The token carries a `webrtc_agent_id` claim; the workspace must own the
agent (a `404` leaks nothing about other workspaces' agents).
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
agent_id
ttl_seconds
Token lifetime in seconds (60–3600, default 600).
Response
Scoped token minted
token
Scoped JWT to hand to the browser.
expires_at
agent_id
ice_servers
Errors
400
Create Web Rtc Token Request Bad Request Error
404
Create Web Rtc Token Request Not Found Error