compute
GET /v1/compute/servers/{serverId}/traffic-packs
A server's traffic packs and its traffic against the cap this month.
Authentication
Send an API key as a bearer token. The key must carry the sites.view permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/traffic-packs \
-H "Authorization: Bearer zdk_live_…"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
TRAFFICCAP car 4. The packs bought for this machine (newest first, at most 100) and what the meter last read this month: usage, the plan allowance, the GB active packs add, and the cap they raise it to. A usage or allowance of null means the meter has no reading yet, never "nothing used". Requires sites.view.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
serverId (path) | Uuid | Yes | The server's id, as listComputeServers reports it. Ours (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
data | ComputeTrafficPack[] | Yes | — |
status | ComputeTrafficStatus | Yes | — |
auto_top_up | ComputeTrafficAutoTopUp | Yes | section 4 (owner Q6). Opt-in auto top-up from Zinn® credit ONLY, never a card: tb TB are bought when the server is forecast to run out within 24 hours, at most… |
expiry_note | string | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429 · 503