A new token for the sandbox's server, valid an hour. Ask before the last one runs out.
API key access: sandboxes.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
id*stringThe sandbox's id.
The connection: url, sandboxId, token and expiresAt.
application/jsonWhere a client reaches its sandbox, and with what.
url*stringThe sandbox server's daemon, on your tailnet.
sandboxId*stringtoken*stringAuthorization: Bearer <token> for exec, terminals, files and ports.
expiresAt*integerWhen the token runs out (epoch milliseconds). Ask for a new one with
createSandboxToken before.
int640 <= valuewebUrl?|Where its ports' web pages open over HTTPS on your tailnet, like the
desktop's screen: <webUrl>/v1/sandboxes/{id}/web/{port}/, with the
token once as ?pyo_token=. Missing until Tailscale is set up and
that name is ready.
curl -X POST 'https://your-pyo.example.com/api/v1/sandboxes/string/token'{
"url": "string",
"sandboxId": "string",
"token": "string",
"expiresAt": 0,
"webUrl": "string"
}