Developers

ZAP CLOUD API documentation

Everything in the ZAP CLOUD console can be done through a JSON REST API: virtual machines, volumes, networks, buckets, Kubernetes clusters, managed databases, the container registry and email.

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_case fields, RFC 3339 UTC timestamps.
  • Lists are {"items": [...]}, without pagination.
  • Every resource lives in one Region: pass region_id (an id or a slug such as fsn1-de).
  • Creating or deleting infrastructure answers 202 with a transitional status: poll GET until 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

ProductPaths 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
Email/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.

HTTPcodeMeaning
400invalid_request, invalid_argumentThe request or a value is wrong; the message names it
401unauthenticatedMissing, wrong, expired or revoked API key
403permission_deniedThe key's user lacks the role, or the key belongs to another project
404not_foundNo such resource in this project
409already_exists, failed_preconditionName taken, wrong state, or the prepaid balance is too low
429resource_exhaustedCapacity used up (for example no public IPv4 left in the Region)
503unavailableTemporary: retry with backoff

Machine-readable

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.