Authentication
Create an API key in the console (Account → API keys; a project-scoped key is best for automation) and send it on every request as Authorization: Bearer zc_.... No cookies or CSRF token are needed. Details: auth.md.
First calls
H="Authorization: Bearer $ZAPCLOUD_API_KEY" curl -s -H "$H" https://zapcloud.dev/api/v1/me curl -s -H "$H" https://zapcloud.dev/api/v1/projects curl -s -H "$H" https://zapcloud.dev/api/v1/regions
Conventions
- Base URL
https://zapcloud.dev/api/v1. JSON in and out,snake_casefields, RFC 3339 UTC timestamps. - Lists are
{"items": [...]}, without pagination. - Every resource lives in one Region: pass
region_id(an id or a slug such asfsn1-de). - Creating or deleting infrastructure answers
202with a transitional status: pollGETuntil it settles (VMs take about 1-2 minutes, clusters and databases 5-15). - Names are DNS labels, unique per project: list, find by name, create if missing.
- Secrets (API keys, bucket secret keys) are shown once, when created.
What you can manage
| Product | Paths under /api/v1 |
|---|---|
| Projects and API keys | /projects, /api-keys, /me |
| Regions, sizes, images | /regions, /regions/{r}/sizes, /regions/{r}/images |
| Virtual machines | /projects/{p}/servers (+ /actions, /console, /password) |
| SSH keys | /projects/{p}/ssh-keys |
| Volumes | /projects/{p}/volumes (+ /attach, /detach, /extend) |
| Networking | /projects/{p}/networks, /floating-ips, /firewall-rules |
| Object storage | /projects/{p}/buckets (+ /credentials, /objects, /presigned-urls) |
| Kubernetes | /projects/{p}/kubernetes-clusters (+ /kubeconfig) |
| PostgreSQL, Redis, OpenSearch | /projects/{p}/managed-services (+ /credentials, /backups) |
| Container registry | /projects/{p}/registries, /registry-credentials |
/projects/{p}/email/domains, /email/messages, /email/suppressions | |
| Metrics | /projects/{p}/{kind}/{id}/metrics?range=1h|6h|24h|7d |
| Billing | /organizations/{o}/billing (+ /usage, /transactions, /promo-codes) |
| Support | /support/tickets |
Errors
Every error is {"code": "...", "error": "...", "request_id": "zc-..."}; quote the request_id to support.
| HTTP | code | Meaning |
|---|---|---|
| 400 | invalid_request, invalid_argument | The request or a value is wrong; the message names it |
| 401 | unauthenticated | Missing, wrong, expired or revoked API key |
| 403 | permission_denied | The key's user lacks the role, or the key belongs to another project |
| 404 | not_found | No such resource in this project |
| 409 | already_exists, failed_precondition | Name taken, wrong state, or the prepaid balance is too low |
| 429 | resource_exhausted | Capacity used up (for example no public IPv4 left in the Region) |
| 503 | unavailable | Temporary: retry with backoff |
Machine-readable
- OpenAPI 3 document (JSON, the endpoints above)
- API catalog (RFC 9727) and llms.txt
- Full API guide with recipes for every product
- The zapcloud agent skill for AI coding agents
Frequently asked questions
How do I authenticate with the ZAP CLOUD API?
With an API key from the console (Account → API keys), sent as Authorization: Bearer zc_.... See auth.md.
Is there a rate limit?
None is enforced today. Poll a resource at most every few seconds.
Does the API send webhooks?
Not yet: poll the resource's status, email delivery status included.
Can an AI agent use ZAP CLOUD?
Yes. Give it a project-scoped API key and point it at the OpenAPI document or the zapcloud agent skill.
Where are the servers?
In Regions, each a separate location: today Beauharnois, Canada (bhs1-ca) and Falkenstein, Germany (fsn1-de). See Regions. Nothing moves between Regions.