On Pyo Cloud: adds a sandbox server to the team, or makes a new code for one that hasn't joined yet, and the command to run on it. The code works once, for 15 minutes. The command joins your tailnet with a key from your team's Tailscale, installs Pyo's sandbox daemon and joins Pyo over HTTPS. The server then gets its work from Pyo, which never reaches into your tailnet. Team owners and admins. Needs Tailscale on Integrations.
API key access: full.
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.
application/jsonteamId*stringThe team whose server it is. It needs Tailscale (Integrations).
name*stringIts name in Pyo: lowercase letters, digits and dashes. A server of that name that hasn't joined yet gets a new code.
edgeDomain?|A domain whose wildcard points at the server, as for
addSandboxServer.
server, command (run it on the server as root), expiresAt (when the code runs out) and pyoUrl.
application/jsoncurl -X POST 'https://your-pyo.example.com/api/v1/sandbox-servers/join-codes' \
-H 'Content-Type: application/json' \
-d '{
"teamId": "string",
"name": "string"
}'{}