hosting
POST /v1/sites/{siteId}/cdn/usage/top-ups
Add a one-off CDN top-up to this site for the rest of the month.
Authentication
Send an API key as a bearer token. The key must carry the hosting.cdn.manage 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 POST https://api.zinndigital.com/v1/sites/{siteId}/cdn/usage/top-ups \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "tier": <string>, "request_id": <string> }'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
Paid from the organization's Zinn® credit — never a card charge, and nothing renews. Idempotent on request_id: a retry with the same id returns the same top-up and debits nothing more. A paused site whose new allowance covers its spend is switched back on in the same call. Refused (422) for a site with no allowance, an unknown tier, an account not in good standing, a tier too small to lift the site back under its allowance (enough: false), or credit that does not cover the price. Requires hosting.cdn.manage.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
siteId (path) | Uuid | Yes | Site ID (UUIDv7). |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
tier | string | Yes | — |
request_id | string | Yes | Client-generated idempotency key; a retry with the same id is a no-op. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
tier | string | Yes | — |
extra_micros | integer | Yes | — |
price_minor | integer | Yes | — |
currency | string | Yes | — |
period | string | Yes | — |
usage | SiteCdnUsage | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429