Skip to content
API referencedcfd8d4 · docs(api): releases

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

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

GET/v1/organizations/{org}/projects/{project}/applications/{cube}/releases
Read-only key

Returns 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

NameTypeDescription
orgrequiredstring

The ID or slug of the organization. A key works in one organization. Another organization, by ID or by slug, is refused with 403, and so is a slug that matches no organization. An ID that matches no organization at all is 404.

projectrequiredstring

The ID or slug of the project. A slug is unique within the organization.

cuberequiredstring

The ID or slug of the cube. A slug is unique within the project.

Query parameters

NameTypeDescription
limitinteger

The most releases to return in a page, from 1 to 100. The default is 20.

cursorstring

Where the next page starts: an opaque value. Send the next_cursor of the previous page as it is. Leave it out to get the first page. A value that does not belong to this list is refused with 400.

Responses

StatusDescription
200

One page of the cube's releases, newest first.

ReleasePage object3 fields
dataarray of objectrequired

The releases on this page, newest first.

data items21 fields
idstringrequired

The build's ID, or the deployment's ID for a redeploy and a rollback.

kindstringrequired

What the release 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. rollback: a deployment of an older build.

One of: deploy, build, redeploy, rollback

build_idstringrequired

The ID of the build that the release builds, or deploys.

deployment_idstring

The ID of the release's deployment. Absent for a build that does not deploy, and until a build that deploys has made its deployment.

revisionstringrequired

What 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_shastringrequired

The exact commit that was built, as 40 hexadecimal characters.

builderstring | nullrequired

How the build was made: dockerfile or railpack. null until the build has looked for a Dockerfile, and for builds made before Dockerfile support. New values may appear.

release_statusstringrequired

Where the release is, counting the deployment that follows a build. QUEUED is waiting to build and BUILDING is building. BUILT is built without deploying: it can be deployed later. DEPLOYING is going live, and DEPLOYED is live at public_url. BUILD_FAILED and DEPLOY_FAILED have an error; after a failed deployment the previous version keeps serving. CANCELLED was cancelled. SUPERSEDED was built, but a newer build was deployed instead. UNKNOWN is a status this API does not describe yet: keep polling.

One of: QUEUED, BUILDING, BUILD_FAILED, CANCELLED, BUILT, DEPLOYING, SUPERSEDED, DEPLOY_FAILED, DEPLOYED, UNKNOWN

terminalbooleanrequired

false while the release is still moving, so keep polling. true once release_status is final.

errorobject

Why the build or the deployment failed. Present when release_status is BUILD_FAILED or DEPLOY_FAILED.

error object2 fields
codestringrequired

A short code for the failure, such as BUILD_NOT_DETECTED, which means there is no Dockerfile and the builder could not tell how to build the cube. Others include WORKFLOW_EXECUTION_FAILED, a build step that failed, such as a compile error: the message names the step. When a build could not start, it is the code of the error that stopped it, such as REVISION_NOT_FOUND. New codes may appear.

messagestringrequired

What went wrong, in words you can show.

public_urlstring

The address the cube is served at. Present once release_status is DEPLOYED.

created_bystring | nullrequired

The ID of the user who started the release. For a release started with an API key, the key's owner. null for a release that a push started, and for one with no recorded origin.

triggerstring | nullrequired

What started the release: dashboard (a person, in the dashboard), push (a push to the branch the cube deploys from), api (an API key) or mcp (an AI agent signed in as a person through Cubecen's MCP server). null for a release with no recorded origin.

pushed_bystring | nullrequired

The GitHub login that pushed, when trigger is push. null otherwise.

api_keyobject | nullrequired

The API key that started the release, when trigger is api. null otherwise. A revoked key keeps its name here.

mcp_clientstring | nullrequired

The AI client that started the release for the person, when trigger is mcp, such as claude.ai. null otherwise.

created_atstringrequired

When the release was created.

started_atstring

When 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_atstring

When the release finished. Absent until then.

stagesobjectrequired

The release's two steps. A step that the release does not have is null.

stages object2 fields
buildobject | nullrequired

The build step. null for a redeploy and a rollback, which build nothing.

deployobject | nullrequired

The deploy step. null for a build that does not deploy.

env_versionstring | nullrequired

The version of the variables the release ran with (a build: was built with): 7 lowercase hexadecimal characters. null for a release made before environment versions, and for one with no variables. Pass it to createDeployment to roll back with those variables.

live_deployment_idstring | nullrequired

The ID of the deployment that serves the cube now, the successful one that finished last. null when nothing is live.

next_cursorstring | nullrequired

Send it as cursor to get the next page. null on the last page.

400

The request is not valid. error.field names the field to blame, when there is one.

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 404, and so is a project, cube or other ID or slug in the path that matches nothing in the organization (or in the project or cube that the path names). An organization slug that matches nothing, and another organization by ID or by slug, is 403, not 404.

429

The key made too many requests. Wait for the number of seconds in Retry-After, then retry.

500

Something went wrong on our side. Retry the request with backoff. If it keeps failing, give support the error.requestId.

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

Shell
curl -sS "https://api.cubecen.com/v1/organizations/<org>/projects/<project>/applications/<cube>/releases" \
  -H "Authorization: Bearer $CUBECEN_API_KEY"
Response
{
  "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
}

Get a release

GET/v1/organizations/{org}/projects/{project}/applications/{cube}/releases/{release-id}
Read-only key

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

NameTypeDescription
orgrequiredstring

The ID or slug of the organization. A key works in one organization. Another organization, by ID or by slug, is refused with 403, and so is a slug that matches no organization. An ID that matches no organization at all is 404.

projectrequiredstring

The ID or slug of the project. A slug is unique within the organization.

cuberequiredstring

The ID or slug of the cube. A slug is unique within the project.

release-idrequiredstring

The ID of the release: the id of a build (bld_...), or of a deployment that is a release of its own, a redeploy or a rollback (dpl_...). The ID of the deployment that a build made on its own is accepted too, and gives that build's release. A release of another cube is not found.

Responses

StatusDescription
200

The release.

Release object21 fields
idstringrequired

The build's ID, or the deployment's ID for a redeploy and a rollback.

kindstringrequired

What the release 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. rollback: a deployment of an older build.

One of: deploy, build, redeploy, rollback

build_idstringrequired

The ID of the build that the release builds, or deploys.

deployment_idstring

The ID of the release's deployment. Absent for a build that does not deploy, and until a build that deploys has made its deployment.

revisionstringrequired

What 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_shastringrequired

The exact commit that was built, as 40 hexadecimal characters.

builderstring | nullrequired

How the build was made: dockerfile or railpack. null until the build has looked for a Dockerfile, and for builds made before Dockerfile support. New values may appear.

release_statusstringrequired

Where the release is, counting the deployment that follows a build. QUEUED is waiting to build and BUILDING is building. BUILT is built without deploying: it can be deployed later. DEPLOYING is going live, and DEPLOYED is live at public_url. BUILD_FAILED and DEPLOY_FAILED have an error; after a failed deployment the previous version keeps serving. CANCELLED was cancelled. SUPERSEDED was built, but a newer build was deployed instead. UNKNOWN is a status this API does not describe yet: keep polling.

One of: QUEUED, BUILDING, BUILD_FAILED, CANCELLED, BUILT, DEPLOYING, SUPERSEDED, DEPLOY_FAILED, DEPLOYED, UNKNOWN

terminalbooleanrequired

false while the release is still moving, so keep polling. true once release_status is final.

errorobject

Why the build or the deployment failed. Present when release_status is BUILD_FAILED or DEPLOY_FAILED.

error object2 fields
codestringrequired

A short code for the failure, such as BUILD_NOT_DETECTED, which means there is no Dockerfile and the builder could not tell how to build the cube. Others include WORKFLOW_EXECUTION_FAILED, a build step that failed, such as a compile error: the message names the step. When a build could not start, it is the code of the error that stopped it, such as REVISION_NOT_FOUND. New codes may appear.

messagestringrequired

What went wrong, in words you can show.

public_urlstring

The address the cube is served at. Present once release_status is DEPLOYED.

created_bystring | nullrequired

The ID of the user who started the release. For a release started with an API key, the key's owner. null for a release that a push started, and for one with no recorded origin.

triggerstring | nullrequired

What started the release: dashboard (a person, in the dashboard), push (a push to the branch the cube deploys from), api (an API key) or mcp (an AI agent signed in as a person through Cubecen's MCP server). null for a release with no recorded origin.

pushed_bystring | nullrequired

The GitHub login that pushed, when trigger is push. null otherwise.

api_keyobject | nullrequired

The API key that started the release, when trigger is api. null otherwise. A revoked key keeps its name here.

mcp_clientstring | nullrequired

The AI client that started the release for the person, when trigger is mcp, such as claude.ai. null otherwise.

created_atstringrequired

When the release was created.

started_atstring

When 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_atstring

When the release finished. Absent until then.

stagesobjectrequired

The release's two steps. A step that the release does not have is null.

stages object2 fields
buildobject | nullrequired

The build step. null for a redeploy and a rollback, which build nothing.

deployobject | nullrequired

The deploy step. null for a build that does not deploy.

env_versionstring | nullrequired

The version of the variables the release ran with (a build: was built with): 7 lowercase hexadecimal characters. null for a release made before environment versions, and for one with no variables. Pass it to createDeployment to roll back with those variables.

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 404, and so is a project, cube or other ID or slug in the path that matches nothing in the organization (or in the project or cube that the path names). An organization slug that matches nothing, and another organization by ID or by slug, is 403, not 404.

429

The key made too many requests. Wait for the number of seconds in Retry-After, then retry.

500

Something went wrong on our side. Retry the request with backoff. If it keeps failing, give support the error.requestId.

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

Shell
curl -sS "https://api.cubecen.com/v1/organizations/<org>/projects/<project>/applications/<cube>/releases/<release-id>" \
  -H "Authorization: Bearer $CUBECEN_API_KEY"
Response
{
  "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"
}