Skip to main content
The Deployz API lets your CI pipeline do what you’d otherwise do in the Deployz dashboard after you push a commit: build a release, deploy it, and follow the result. This section is for you, the vendor. Your customers don’t use the API.

What you can do with the API

For a complete pipeline, see Build and deploy from your pipeline. Everything else, such as connecting GitHub, inviting customers, changing configuration, removing a deployment, and billing, stays in the dashboard. The API doesn’t deploy to several deployments in one request. Deploy to each deployment separately.

Base URL

Send every request to:
v1 is the API version. The endpoint reference lists the paths below it.

Authentication

Send an API key in the Authorization header of every request:
An owner or an admin creates keys on the API keys page of the dashboard. A key can only read, or it can also build and deploy. See Create and manage API keys.

Responses

Every response is JSON with the same envelope. The result is in data:
An error has success: false and an error object with a code and a message. See Errors and rate limits. request_id identifies the request. The same value is in the X-Request-Id response header. Include it when you contact support about a request. Times are in UTC, in ISO 8601 format. Ids are UUIDs.

Operations run in the background

A build, a deploy, a restart, and a rollback take minutes, so the API starts them and answers right away:
  • Create a release answers with the release. Its status is building. Read the release until its status is ready or failed.
  • Deploy, restart, and rollback answer 202 Accepted with a jobId for the operation, and a Location header with the path to read it. Read the operation until its state is succeeded, failed, or cancelled.
Check about every 10 seconds. Each check counts toward the rate limit.

OpenAPI document

The endpoint reference is built from the API’s OpenAPI 3.1 document. You can also download it from https://api.deployz.dev/api/v1/openapi.json to generate a client. It doesn’t need a key.