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 theAuthorization header of every request:
Responses
Every response is JSON with the same envelope. The result is indata:
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
statusisbuilding. Read the release until its status isreadyorfailed. - Deploy, restart, and rollback answer
202 Acceptedwith ajobIdfor the operation, and aLocationheader with the path to read it. Read the operation until itsstateissucceeded,failed, orcancelled.
OpenAPI document
The endpoint reference is built from the API’s OpenAPI 3.1 document. You can also download it fromhttps://api.deployz.dev/api/v1/openapi.json to generate a client. It doesn’t need a key.