Releases
A release is a build together with the deployment that follows it, or a deployment of its own: a redeploy or a rollback. The releases of a cube are its history, newest first. These endpoints only read, so a read-only key can call them.
Endpoints
/ v1/ organizations/ {org}/ projects/ {project}/ applications/ {cube}/ releasesGETGet a release/ v1/ organizations/ {org}/ projects/ {project}/ applications/ {cube}/ releases/ {release-id}kind says what each release is: deploy, build (built, not deployed), redeploy or rollback. release_status and terminal say where it is, and stages shows its build step and its deploy step. When a release fails, error says why.
Use the list to see what went live and who started it, and to find a build to roll back to. Send its build_id, and its env_version if you want its variables back too, to create a deployment.
List the releases of a cube
/ v1/ organizations/ {org}/ projects/ {project}/ applications/ {cube}/ releasesReturns the history of a cube, newest first, a page at a time.
A release is a build together with the deployment that follows it, or a deployment of its own: a redeploy or a rollback. A build's own deployment belongs to its release and is not listed separately. kind says which it is: deploy (a build that deploys, or a deployment of a build newer than the one that is live), build (a build that does not deploy), redeploy (a deployment of the build that is live) or rollback (a deployment of an older build). id is the build's ID, or the deployment's ID for a redeploy and a rollback.
Use the list to see what was released and by whom, and to find the build to roll back to. Pass its build_id, and its env_version to bring back its variables too, to createDeployment. stages shows the build step and the deploy step of a release, each with its own status.
The answer holds up to limit releases in data. When there are more, next_cursor is set: send it back as cursor to get the next page. On the last page next_cursor is null. live_deployment_id is the ID of the deployment that serves the cube now, or null when nothing is live.
Path parameters
| Name | Type | Description |
|---|---|---|
orgrequired | string | The ID or slug of the organization. A key works in one organization. Another organization, by ID or by slug, is refused with |
projectrequired | string | The ID or slug of the project. A slug is unique within the organization. |
cuberequired | string | The ID or slug of the cube. A slug is unique within the project. |
Query parameters
| Name | Type | Description |
|---|---|---|
limit | integer | The most releases to return in a page, from 1 to 100. The default is 20. |
cursor | string | Where the next page starts: an opaque value. Send the |
Responses
| Status | Description |
|---|---|
| 200 | One page of the cube's releases, newest first. ReleasePage object3 fieldsdataarray of objectrequiredThe releases on this page, newest first. data items21 fieldsidstringrequiredThe build's ID, or the deployment's ID for a redeploy and a rollback. kindstringrequiredWhat the release is. One of: build_idstringrequiredThe ID of the build that the release builds, or deploys. deployment_idstringThe ID of the release's deployment. Absent for a build that does not deploy, and until a build that deploys has made its deployment. revisionstringrequiredWhat the build was asked to build, as a label: a branch, a tag or a commit SHA. For a redeploy and a rollback, that of the build they deploy. commit_shastringrequiredThe exact commit that was built, as 40 hexadecimal characters. builderstring | nullrequiredHow the build was made: release_statusstringrequiredWhere the release is, counting the deployment that follows a build. One of: terminalbooleanrequired
errorobjectWhy the build or the deployment failed. Present when error object2 fieldscodestringrequiredA short code for the failure, such as messagestringrequiredWhat went wrong, in words you can show. public_urlstringThe address the cube is served at. Present once created_bystring | nullrequiredThe ID of the user who started the release. For a release started with an API key, the key's owner. triggerstring | nullrequiredWhat started the release: pushed_bystring | nullrequiredThe GitHub login that pushed, when api_keyobject | nullrequiredThe API key that started the release, when mcp_clientstring | nullrequiredThe AI client that started the release for the person, when created_atstringrequiredWhen the release was created. started_atstringWhen the release started running: when its build started, or for a redeploy and a rollback when its deployment started. Absent while it waits in the queue. finished_atstringWhen the release finished. Absent until then. stagesobjectrequiredThe release's two steps. A step that the release does not have is stages object2 fieldsbuildobject | nullrequiredThe build step. deployobject | nullrequiredThe deploy step. env_versionstring | nullrequiredThe version of the variables the release ran with (a build: was built with): 7 lowercase hexadecimal characters. live_deployment_idstring | nullrequiredThe ID of the deployment that serves the cube now, the successful one that finished last. next_cursorstring | nullrequiredSend it as |
| 400 | The request is not valid. |
| 401 | The API key is missing, unknown, expired or revoked. |
| 403 | The key may not do this. Its access level or its owner's role does not allow it, or the organization is not the key's. |
| 404 | Nothing was found at this address. An organization ID that matches no organization is |
| 429 | The key made too many requests. Wait for the number of seconds in |
| 500 | Something went wrong on our side. Retry the request with backoff. If it keeps failing, give support the |
| 503 | The service is temporarily unavailable. Retry the same request with backoff: wait a little longer after each failed attempt. The error code can differ from the one shown. |
Example
curl -sS "https://api.cubecen.com/v1/organizations/<org>/projects/<project>/applications/<cube>/releases" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"data": [
{
"id": "dpl_00000005a0fdd794980f85f9c353bf",
"kind": "rollback",
"build_id": "bld_00000000a0fdd794980f85f9c353bf",
"deployment_id": "dpl_00000005a0fdd794980f85f9c353bf",
"revision": "main",
"commit_sha": "bc0dbc0e15637ebb8e3b91d26ab4a829a95249f5",
"builder": "railpack",
"release_status": "DEPLOYING",
"terminal": false,
"created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
"trigger": "api",
"pushed_by": null,
"api_key": {
"id": "7e3b9d14-6a52-4f08-b1c7-2d9a5e8f0b36",
"name": "CI"
},
"mcp_client": null,
"created_at": "2026-10-25T11:02:10Z",
"started_at": "2026-10-25T11:02:11Z",
"stages": {
"build": null,
"deploy": {
"status": "DEPLOYING",
"started_at": "2026-10-25T11:02:11Z"
}
},
"env_version": "b7d2e49"
},
{
"id": "bld_00000001a0fdd794980f85f9c353bf",
"kind": "deploy",
"build_id": "bld_00000001a0fdd794980f85f9c353bf",
"deployment_id": "dpl_00000002a0fdd794980f85f9c353bf",
"revision": "main",
"commit_sha": "6e8b7d3c38a461f0c27c4d52b7a0943e4cbbb119",
"builder": "railpack",
"release_status": "DEPLOYED",
"terminal": true,
"public_url": "https://web-acme-3f9a2c.cubecen.app",
"created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
"trigger": "api",
"pushed_by": null,
"api_key": {
"id": "7e3b9d14-6a52-4f08-b1c7-2d9a5e8f0b36",
"name": "CI"
},
"mcp_client": null,
"created_at": "2026-10-25T09:12:40Z",
"started_at": "2026-10-25T09:12:44Z",
"finished_at": "2026-10-25T09:14:31Z",
"stages": {
"build": {
"status": "SUCCEEDED",
"started_at": "2026-10-25T09:12:44Z",
"finished_at": "2026-10-25T09:14:02Z"
},
"deploy": {
"status": "SUCCEEDED",
"started_at": "2026-10-25T09:14:04Z",
"finished_at": "2026-10-25T09:14:31Z"
}
},
"env_version": "e3a91c2"
}
],
"live_deployment_id": "dpl_00000002a0fdd794980f85f9c353bf",
"next_cursor": null
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "limit must be between 1 and 100",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736",
"field": "limit"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Permission denied",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests with this API key; try again shortly",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal error occurred",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "DATABASE_UNAVAILABLE",
"message": "Database unavailable",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}Get a release
/ v1/ organizations/ {org}/ projects/ {project}/ applications/ {cube}/ releases/ {release-id}Returns one release of a cube: a build with the deployment that follows it, or a deployment of its own.
releaseId is the ID of a build, or of a deployment that is a release of its own: a redeploy or a rollback. The ID of the deployment that a build made on its own is accepted too, and gives that build's release. kind says what the release is, as in listReleases.
Use it to follow a release as a whole. release_status and terminal say where it is, and stages shows its build step and its deploy step. When a build or a deployment fails, error says why, in words you can show. env_version is the version of the variables the release ran with: pass it to createDeployment to roll back with them.
A release of another cube is not found.
Path parameters
| Name | Type | Description |
|---|---|---|
orgrequired | string | The ID or slug of the organization. A key works in one organization. Another organization, by ID or by slug, is refused with |
projectrequired | string | The ID or slug of the project. A slug is unique within the organization. |
cuberequired | string | The ID or slug of the cube. A slug is unique within the project. |
release-idrequired | string | The ID of the release: the |
Responses
| Status | Description |
|---|---|
| 200 | The release. Release object21 fieldsidstringrequiredThe build's ID, or the deployment's ID for a redeploy and a rollback. kindstringrequiredWhat the release is. One of: build_idstringrequiredThe ID of the build that the release builds, or deploys. deployment_idstringThe ID of the release's deployment. Absent for a build that does not deploy, and until a build that deploys has made its deployment. revisionstringrequiredWhat the build was asked to build, as a label: a branch, a tag or a commit SHA. For a redeploy and a rollback, that of the build they deploy. commit_shastringrequiredThe exact commit that was built, as 40 hexadecimal characters. builderstring | nullrequiredHow the build was made: release_statusstringrequiredWhere the release is, counting the deployment that follows a build. One of: terminalbooleanrequired
errorobjectWhy the build or the deployment failed. Present when error object2 fieldscodestringrequiredA short code for the failure, such as messagestringrequiredWhat went wrong, in words you can show. public_urlstringThe address the cube is served at. Present once created_bystring | nullrequiredThe ID of the user who started the release. For a release started with an API key, the key's owner. triggerstring | nullrequiredWhat started the release: pushed_bystring | nullrequiredThe GitHub login that pushed, when api_keyobject | nullrequiredThe API key that started the release, when mcp_clientstring | nullrequiredThe AI client that started the release for the person, when created_atstringrequiredWhen the release was created. started_atstringWhen the release started running: when its build started, or for a redeploy and a rollback when its deployment started. Absent while it waits in the queue. finished_atstringWhen the release finished. Absent until then. stagesobjectrequiredThe release's two steps. A step that the release does not have is stages object2 fieldsbuildobject | nullrequiredThe build step. deployobject | nullrequiredThe deploy step. env_versionstring | nullrequiredThe version of the variables the release ran with (a build: was built with): 7 lowercase hexadecimal characters. |
| 401 | The API key is missing, unknown, expired or revoked. |
| 403 | The key may not do this. Its access level or its owner's role does not allow it, or the organization is not the key's. |
| 404 | Nothing was found at this address. An organization ID that matches no organization is |
| 429 | The key made too many requests. Wait for the number of seconds in |
| 500 | Something went wrong on our side. Retry the request with backoff. If it keeps failing, give support the |
| 503 | The service is temporarily unavailable. Retry the same request with backoff: wait a little longer after each failed attempt. The error code can differ from the one shown. |
Example
curl -sS "https://api.cubecen.com/v1/organizations/<org>/projects/<project>/applications/<cube>/releases/<release-id>" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"id": "bld_00000001a0fdd794980f85f9c353bf",
"kind": "deploy",
"build_id": "bld_00000001a0fdd794980f85f9c353bf",
"deployment_id": "dpl_00000002a0fdd794980f85f9c353bf",
"revision": "main",
"commit_sha": "6e8b7d3c38a461f0c27c4d52b7a0943e4cbbb119",
"builder": "railpack",
"release_status": "DEPLOYED",
"terminal": true,
"public_url": "https://web-acme-3f9a2c.cubecen.app",
"created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
"trigger": "api",
"pushed_by": null,
"api_key": {
"id": "7e3b9d14-6a52-4f08-b1c7-2d9a5e8f0b36",
"name": "CI"
},
"mcp_client": null,
"created_at": "2026-10-25T09:12:40Z",
"started_at": "2026-10-25T09:12:44Z",
"finished_at": "2026-10-25T09:14:31Z",
"stages": {
"build": {
"status": "SUCCEEDED",
"started_at": "2026-10-25T09:12:44Z",
"finished_at": "2026-10-25T09:14:02Z"
},
"deploy": {
"status": "SUCCEEDED",
"started_at": "2026-10-25T09:14:04Z",
"finished_at": "2026-10-25T09:14:31Z"
}
},
"env_version": "e3a91c2"
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Permission denied",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests with this API key; try again shortly",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal error occurred",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "DATABASE_UNAVAILABLE",
"message": "Database unavailable",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}