Start a release build from a commit
curl --request POST \
--url https://api.deployz.dev/api/v1/applications/{id}/releases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": "1.4.0",
"gitSha": "9fceb02d0ae598e95dc970b74767f19372d61af8"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: '1.4.0', gitSha: '9fceb02d0ae598e95dc970b74767f19372d61af8'})
};
fetch('https://api.deployz.dev/api/v1/applications/{id}/releases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.deployz.dev/api/v1/applications/{id}/releases"
payload = {
"version": "1.4.0",
"gitSha": "9fceb02d0ae598e95dc970b74767f19372d61af8"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "Release already exists for this version and commit",
"data": {
"id": "b7e4d2c1-5a6f-4b3e-8d9c-0a1b2c3d4e5f",
"version": "1.4.0",
"gitSha": "9fceb02d0ae598e95dc970b74767f19372d61af8",
"status": "ready",
"failureReason": null,
"deprecated": false,
"createdAt": "2026-11-20T14:05:42.000Z"
},
"request_id": "8c5d4c68-b488-41c7-934f-6f9e9ce83d7b"
}{
"success": true,
"message": "Release build started successfully",
"data": {
"id": "b7e4d2c1-5a6f-4b3e-8d9c-0a1b2c3d4e5f",
"version": "1.4.0",
"gitSha": "9fceb02d0ae598e95dc970b74767f19372d61af8",
"status": "building",
"failureReason": null,
"deprecated": false,
"createdAt": "2026-11-20T14:05:42.000Z"
},
"request_id": "8c5d4c68-b488-41c7-934f-6f9e9ce83d7b"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"request_id": "<string>"
}{
"success": false,
"error": {
"code": "API_KEY_INVALID",
"message": "The API key is not valid"
},
"request_id": "8c5d4c68-b488-41c7-934f-6f9e9ce83d7b"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"request_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"request_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"request_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"request_id": "<string>"
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Wait before you try again."
},
"request_id": "8c5d4c68-b488-41c7-934f-6f9e9ce83d7b"
}Releases
Start a release build from a commit
Needs deploy permission. Only one release of an application builds at a time. Send the same version and commit again to get the same release (200). The same version with another commit answers 409 RELEASE_VERSION_EXISTS. Send the full 40-character commit SHA: Deployz looks up a shorter SHA on GitHub, which can answer 404 COMMIT_NOT_FOUND, 429 GITHUB_RATE_LIMITED or 502 GITHUB_COMMITS_FETCH_FAILED.
POST
/
api
/
v1
/
applications
/
{id}
/
releases
Start a release build from a commit
curl --request POST \
--url https://api.deployz.dev/api/v1/applications/{id}/releases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": "1.4.0",
"gitSha": "9fceb02d0ae598e95dc970b74767f19372d61af8"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: '1.4.0', gitSha: '9fceb02d0ae598e95dc970b74767f19372d61af8'})
};
fetch('https://api.deployz.dev/api/v1/applications/{id}/releases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.deployz.dev/api/v1/applications/{id}/releases"
payload = {
"version": "1.4.0",
"gitSha": "9fceb02d0ae598e95dc970b74767f19372d61af8"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "Release already exists for this version and commit",
"data": {
"id": "b7e4d2c1-5a6f-4b3e-8d9c-0a1b2c3d4e5f",
"version": "1.4.0",
"gitSha": "9fceb02d0ae598e95dc970b74767f19372d61af8",
"status": "ready",
"failureReason": null,
"deprecated": false,
"createdAt": "2026-11-20T14:05:42.000Z"
},
"request_id": "8c5d4c68-b488-41c7-934f-6f9e9ce83d7b"
}{
"success": true,
"message": "Release build started successfully",
"data": {
"id": "b7e4d2c1-5a6f-4b3e-8d9c-0a1b2c3d4e5f",
"version": "1.4.0",
"gitSha": "9fceb02d0ae598e95dc970b74767f19372d61af8",
"status": "building",
"failureReason": null,
"deprecated": false,
"createdAt": "2026-11-20T14:05:42.000Z"
},
"request_id": "8c5d4c68-b488-41c7-934f-6f9e9ce83d7b"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"request_id": "<string>"
}{
"success": false,
"error": {
"code": "API_KEY_INVALID",
"message": "The API key is not valid"
},
"request_id": "8c5d4c68-b488-41c7-934f-6f9e9ce83d7b"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"request_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"request_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"request_id": "<string>"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"request_id": "<string>"
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Wait before you try again."
},
"request_id": "8c5d4c68-b488-41c7-934f-6f9e9ce83d7b"
}Body
application/json
