Skip to main content
POST
/
io.pocketenv.sandbox.putTailscaleAuthKey
Store a Tailscale Auth Key for the sandbox. This Auth Key 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.putTailscaleAuthKey \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "authKey": "<string>",
  "redacted": "<string>"
}
'
{
  "id": "<string>",
  "authKey": "<string>",
  "redacted": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

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.

authKey
string
required

The Tailscale Auth Key (encrypted) to store for the sandbox.

redacted
string

The redacted SSH key.

Response

OK

id
string

Unique identifier of the Tailscale Auth Key.

authKey
string

The Tailscale auth key (redacted in API responses)

redacted
string

The redacted Auth Key.

createdAt
string<date-time>

The timestamp when the Tailscale Auth Key was created.

updatedAt
string<date-time>

The timestamp when the Tailscale Auth Key was last updated.