Skip to main content
POST
/
io.pocketenv.sandbox.putTailscaleToken
Store a Tailscale token for the sandbox. This token will be used to authenticate with the Tailscale API and manage the sandbox's Tailscale node.
curl --request POST \
  --url https://api.pocketenv.io/xrpc/io.pocketenv.sandbox.putTailscaleToken \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "token": "<string>"
}
'
{
  "error": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
string
required

The sandbox ID.

token
string
required

The Tailscale token (encrypted) to store for the sandbox.

Response

OK