compute
POST /v1/compute/connected-servers
Start connecting a server; returns the ONE install line (single use, 30 minutes).
Authentication
Send an API key as a bearer token. The endpoint checks billing.payment.manage; a key without it is refused with 403, not 404.
Where your organisation id goes
This endpoint takes org_id as a field in the JSON body.
Your organisation id is on the API keys screen in your dashboard, beside the key itself. It is the same id in every call you make.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/compute/connected-servers \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "label": <string>, "os_family": <string<almalinux, rocky, ubuntu>> }'Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Creates the machine in awaiting_install and returns install_line (a curl … | sudo sh line carrying a single-use token valid for 30 minutes; never shown again). Refused 422 {error.code} with unsupported_os, mode_not_offered, or not_in_good_standing (a server that would not be free needs the account in good standing). Needs billing.payment.manage. Audited compute.connected_server.create.
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
org_id | string | No | — |
label | string | Yes | — |
os_family | string<almalinux, rocky, ubuntu> | Yes | — |
mode | string<watch, panel> | No | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
data | ConnectedServer | Yes | A server the customer runs elsewhere, linked by the connect agent (PANEL-L2). |
quote | ConnectedServerQuote | Yes | — |
install_line | string | Yes | — |
line_expires_at | string | Yes | — |
Errors this endpoint can return
400 · 401 · 403 · 422 · 429