Skip to content
API reference7407372 · docs(api): cubes

Cubes

A cube is an app that Cubecen builds and runs from a GitHub repository. In paths and fields, the API calls a cube an application. These endpoints create, read, change and delete cubes, and list the folders of a cube's repository, which helps you choose a cube's app_root in a monorepo.

Endpoints

You name the repository in one of two ways. For a public repository, send its link as repository.url: no GitHub connection is needed, but a push to a public repository does not deploy it. For a repository from a GitHub connection, send github_installation_id and the repository's owner and name. A key can't connect GitHub: connect it once in the dashboard, then list the connections with GET …/integrations/github/installations.

Creating a cube from CI usually takes one call. Add "deploy": {} to start its first build at once. The answer is 201 with the cube and its first build; follow that build until it is done. Now and then the answer is 202 and the cube is still creating: read it every few seconds until its state is active. If you asked for deploy, then send the same request again with the same Idempotency-Key: that starts the first build. If the first build could not start, the cube exists all the same, and build_error says why. Creating a cube needs an Idempotency-Key.

Shell
curl -sS -X POST "https://api.cubecen.com/v1/organizations/<org>/projects/<project>/applications" \
  -H "Authorization: Bearer $CUBECEN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"name": "Web", "slug": "web", "deploy": {},
       "repository": {"url": "https://github.com/acme/storefront"}}'

List the cubes of a project

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

Returns the cubes of a project, a page at a time, oldest first.

Each item is a cube with its project, its newest release and the deployment that is live now. Cubes that are still being set up (creating) or that could not be set up (failed) are listed too. To list the cubes of the whole organization, with filters, use listOrganizationApplications.

The answer holds up to limit cubes in items. When there are more, it also holds next_cursor: send it back as cursor to get the next page. The last page has no next_cursor.

last_release and live_deployment are kept up to date as releases happen, so they can be a few seconds behind. last_release is null until the cube has had a build, and live_deployment is null until a deployment has succeeded.

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.

Query parameters

NameTypeDescription
limitinteger

The most cubes 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 project's cubes, oldest first.

ApplicationPage object2 fields
itemsarray of objectrequired

The cubes on this page.

items items21 fields
idstringrequired

The cube's ID.

organization_idstringrequired

The ID of the organization the cube belongs to.

project_idstringrequired

The ID of the project the cube is in.

namestringrequired

The cube's name.

slugstringrequired

A short name for the cube, unique within its project, made of lowercase letters, digits and hyphens. Paths accept it in place of the ID.

descriptionstringrequired

What the cube is for, in free text. Empty when none was given.

statestringrequired

creating while Cubecen is still setting the cube up: it cannot be built or deployed yet. active once it is ready. failed when it could not be set up: failure_code says why.

One of: creating, active, failed

failure_codestring

A short code that says why the cube could not be set up. Present only when state is failed.

repositoryobject | nullrequired

The GitHub repository the cube is built from. null for a very old cube that has none: such a cube can only be deleted.

runtimeobjectrequired

How the cube is built and run, and where it is served.

runtime object8 fields
host_labelstringrequired

The first part of the cube's address: public_url is https://<host_label>.cubecen.app. It is made when the cube is created, from the cube's slug, the organization's slug and a short random suffix, and it never changes, even when the cube is renamed. You cannot choose it.

public_urlstringrequired

The cube's address, whether or not it is deployed yet: https://<host_label>.cubecen.app. Empty until state is active.

app_rootstringrequired

The folder of the repository that the cube is built from. . is the root of the repository.

start_commandstringrequired

The command that starts the cube. Empty lets the builder find it, or a Dockerfile image run its own command. Applies from the next build.

build_commandstringrequired

Replaces the build command that Railpack detects. Empty uses the detected one. It does not apply to a cube built from a Dockerfile. Applies from the next build.

output_directorystringrequired

A folder under app_root whose files are served as a static site, even when the repository has a start script. Empty lets the builder decide. Never set together with start_command. Applies from the next build.

portinteger | nullrequired

The port the cube listens on, which it receives as PORT. null means the one port the image exposes, else 8080. Applies from the next build.

private_urlstringrequired

The address the other cubes of the same project use to reach this cube over the project's private network. It works only from inside the project, once this cube is deployed. Empty when the cube has no such address yet.

push_to_deploybooleanrequired

true when a push to deploy_branch builds and deploys the pushed commit. Always false for a cube from a public repository.

deploy_branchstring | nullrequired

The branch that pushes deploy, and that a build without a revision builds. null tracks the repository's default branch.

previews_enabledbooleanrequired

true when pull requests into the tracked branch get a preview of the cube.

suspensionobject | nullrequired

Why the cube is paused, while it is: its instances are stopped and its address shows a page that says so. null while it runs. Builds and deployments go on, and start when the cube resumes.

instanceobjectrequired

The size the cube runs at. It comes from the organization's plan, or from a choice of the cube's owner up to the size the plan allows.

instance object8 fields
sizestringrequired

The size: small, medium, large or xlarge.

One of: small, medium, large, xlarge

memory_mibintegerrequired

The memory the cube is limited to, in MiB. A cube that goes over it is restarted.

cpunumberrequired

The most CPU the cube can use, in cores.

settingstring | nullrequired

The size that was chosen for the cube, up to the size the plan allows. null while the cube follows its plan's size.

resizingbooleanrequired

true while Cubecen is taking the cube to its target size: its setting, or its plan's size after a change of plan. It is normally over within seconds. size then shows the new size, and the instances roll over to it without downtime.

changed_atstringrequired

When the cube got its size: when it was made, or when it was last resized.

reasonstringrequired

Why the cube got its size. create: it was made with it. plan: it took its plan's size, after a change of plan or when it was set back to follow the plan. operator: Cubecen changed the memory of the plan. choice: its owner chose it.

One of: create, plan, operator, choice

previous_sizestring | nullrequired

The size the cube ran at before. null when it has had one size since it was made.

live_deploymentobject | nullrequired

The deployment that serves the cube now. null until a deployment has succeeded.

created_bystringrequired

The ID of the user who created the cube.

created_atstringrequired

When the cube was created.

updated_atstringrequired

When the cube was last changed.

projectobjectrequired

The project the cube is in.

project object3 fields
idstringrequired

The project's ID.

namestringrequired

The project's name.

slugstringrequired

The project's slug.

last_releaseobject | nullrequired

The cube's newest build, and where its release is. null until the cube has had a build.

next_cursorstring

Send it as cursor to get the next page. Absent 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" \
  -H "Authorization: Bearer $CUBECEN_API_KEY"
Response
{
  "items": [
    {
      "id": "f1a83d52-6e07-4b9c-8d34-7a0c9e215b68",
      "organization_id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
      "project_id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
      "name": "Web",
      "slug": "web",
      "description": "The storefront",
      "state": "active",
      "repository": {
        "source": "github_app",
        "github_installation_id": "3d7c1e90-5b24-4a68-9f03-8c2e7a1d4b56",
        "owner": "acme",
        "name": "storefront",
        "url": "https://github.com/acme/storefront.git",
        "default_branch": "main"
      },
      "runtime": {
        "host_label": "web-acme-3f9a2c",
        "public_url": "https://web-acme-3f9a2c.cubecen.app",
        "app_root": "apps/web",
        "start_command": "",
        "build_command": "",
        "output_directory": "",
        "port": null,
        "private_url": "http://app-4c1d9e07a3b25f6810c2d7e94a5b3f60.cubecen-apps.svc.cluster.local"
      },
      "push_to_deploy": true,
      "deploy_branch": null,
      "previews_enabled": false,
      "suspension": null,
      "instance": {
        "size": "small",
        "memory_mib": 2048,
        "cpu": 0.5,
        "setting": "small",
        "resizing": false,
        "changed_at": "2026-09-14T08:40:02Z",
        "reason": "create",
        "previous_size": null
      },
      "created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
      "created_at": "2026-09-14T08:40:02Z",
      "updated_at": "2026-10-25T09:14:31Z",
      "project": {
        "id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
        "name": "Storefront",
        "slug": "storefront"
      },
      "last_release": {
        "build_id": "bld_00000001a0fdd794980f85f9c353bf",
        "release_status": "DEPLOYED",
        "terminal": true,
        "revision": "main",
        "commit_sha": "6e8b7d3c38a461f0c27c4d52b7a0943e4cbbb119",
        "created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
        "trigger": "api",
        "pushed_by": null,
        "api_key": null,
        "mcp_client": null,
        "created_at": "2026-10-25T09:12:40Z",
        "finished_at": "2026-10-25T09:14:31Z"
      },
      "live_deployment": {
        "id": "dpl_00000002a0fdd794980f85f9c353bf",
        "build_id": "bld_00000001a0fdd794980f85f9c353bf",
        "status": "SUCCEEDED",
        "finished_at": "2026-10-25T09:14:31Z",
        "env_version": "e3a91c2",
        "build_env_version": "e3a91c2"
      }
    },
    {
      "id": "b64f2a19-0c83-4d7e-9a15-e2d83c7f5a40",
      "organization_id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
      "project_id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
      "name": "API",
      "slug": "api",
      "description": "",
      "state": "creating",
      "repository": {
        "source": "github_app",
        "github_installation_id": "3d7c1e90-5b24-4a68-9f03-8c2e7a1d4b56",
        "owner": "acme",
        "name": "storefront",
        "url": "https://github.com/acme/storefront.git",
        "default_branch": "main"
      },
      "runtime": {
        "host_label": "api-acme-8d41b7",
        "public_url": "",
        "app_root": "apps/api",
        "start_command": "",
        "build_command": "",
        "output_directory": "",
        "port": null,
        "private_url": ""
      },
      "push_to_deploy": true,
      "deploy_branch": null,
      "previews_enabled": false,
      "suspension": null,
      "instance": {
        "size": "small",
        "memory_mib": 2048,
        "cpu": 0.5,
        "setting": "small",
        "resizing": false,
        "changed_at": "2026-10-25T09:20:11Z",
        "reason": "create",
        "previous_size": null
      },
      "created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
      "created_at": "2026-10-25T09:20:11Z",
      "updated_at": "2026-10-25T09:20:11Z",
      "project": {
        "id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
        "name": "Storefront",
        "slug": "storefront"
      },
      "last_release": null,
      "live_deployment": null
    }
  ],
  "next_cursor": "q7Lw2XhTn9PcRk4VbZsE1uYdAm6JgFo3"
}

Create a cube

POST/v1/organizations/{org}/projects/{project}/applications

Creates a cube in a project from a GitHub repository, and can start its first deploy. It needs a key with full access.

Name the repository in one of two ways, and not both. For a repository of a GitHub installation of the organization, send github_installation_id (the id of the installation) with repository.owner and repository.name. For a public repository, send its link as repository.url: no installation is needed, but pushes to a public repository do not deploy it.

name, slug and the repository are the only required fields. The slug must be unique among the project's cubes. Cubecen chooses the cube's address: it is https://<host_label>.cubecen.app, and you cannot choose or change it. app_root, start_command, build_command, output_directory and port say how the cube is built and run. They can be changed later with updateApplication.

Add "deploy": {} to start the first build and deployment right away: it builds the branch the cube tracks. deploy.revision builds a branch, tag or commit SHA instead. Leave deploy out to only create the cube, and deploy later with createBuild.

The answer is 201 Created with the cube, in state active. With deploy, it also holds the first build: follow it with getBuild. If the first build could not start, the cube exists all the same, and build_error says why.

When Cubecen has not finished setting the cube up, the answer is 202 Accepted instead, with the cube in state creating and a Retry-After header. Nothing is lost: Cubecen finishes the setup on its own. Read the cube with getApplication every few seconds until state is active or failed, or send the same request again with the same Idempotency-Key. If you asked for deploy, send the same request again once the cube is active: that starts the first build.

A plan allows a number of cubes and a largest size. When the organization already has as many cubes as the plan allows, or size is above the plan's, the request is refused with 402. A refused request leaves nothing behind.

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.

Body

NameTypeDescription
namerequiredstring

The cube's name: 1 to 120 characters, with no space at the start or the end and no control characters.

slugrequiredstring

The cube's slug: lowercase letters, digits and single hyphens, such as web, up to 80 characters. It must not look like an ID, and no other cube of the project may have it.

descriptionstring

What the cube is for, in free text, up to 4000 characters. Empty when left out.

github_installation_idstring

For a repository of a GitHub installation: the id of the installation, as listGitHubInstallations gives it. Send it with repository.owner and repository.name, and without repository.url.

repositoryrequiredobject

The repository to build. Send owner and name with github_installation_id, or url alone.

repository object3 fields
ownerstring

The GitHub account that owns the repository. Letters can be in any case. At most 39 characters.

namestring

The repository's name. Letters can be in any case. At most 100 characters.

urlstring

For a public repository: its link, https://github.com/owner/repo, which can name a branch and a folder with /tree/branch/folder, or git@github.com:owner/repo.git. At most 2048 characters. Send it alone, without github_installation_id, owner or name. The branch and the folder of the link become deploy_branch and app_root, unless the request sets them.

app_rootstring

The folder of the repository to build: . for the root, or a relative path such as apps/web, at most 255 characters. . when left out, or the folder of a public link.

start_commandstring

The command that starts the cube, at most 1024 characters with no control characters. Empty lets the builder find it, or a Dockerfile image run its own command.

build_commandstring

Replaces the build command that Railpack detects, at most 1024 characters with no control characters. It does not apply to a cube built from a Dockerfile.

output_directorystring

A folder under app_root whose files are served as a static site, written like app_root. Not together with start_command.

portinteger

The port the cube listens on, from 1 to 65535. Leave it out to use the port the image exposes, else 8080.

deployobject

Start the cube's first build and deployment right away. Send {} to build the branch the cube tracks. Leave it out to only create the cube.

deploy object1 field
revisionstring

The branch, tag or commit SHA to build instead of the tracked branch. At most 255 characters.

push_to_deployboolean

true deploys every push to the deploy branch. true when left out, for a repository of a GitHub installation. A cube from a public repository cannot have it: it is false when left out, and true is refused with 400.

deploy_branchstring

The branch that pushes deploy, and that a build without a revision builds. At most 255 characters; refs/heads/ in front is dropped. Empty or left out tracks the repository's default branch, or the branch of a public link.

sizestring

The size the cube starts at, up to the largest size the plan allows: small, medium, large or xlarge. small when left out. It is a choice of the cube's owner, so a bigger plan later does not grow the cube. A size above the plan's is refused with 402, and a size that is not offered right now with 409.

One of: small, medium, large, xlarge

Responses

StatusDescription
201

The cube was created and is active. With deploy, the first build is in build.

ApplicationCreateResult object20 fields
idstringrequired

The cube's ID.

organization_idstringrequired

The ID of the organization the cube belongs to.

project_idstringrequired

The ID of the project the cube is in.

namestringrequired

The cube's name.

slugstringrequired

A short name for the cube, unique within its project, made of lowercase letters, digits and hyphens. Paths accept it in place of the ID.

descriptionstringrequired

What the cube is for, in free text. Empty when none was given.

statestringrequired

creating while Cubecen is still setting the cube up: it cannot be built or deployed yet. active once it is ready. failed when it could not be set up: failure_code says why.

One of: creating, active, failed

failure_codestring

A short code that says why the cube could not be set up. Present only when state is failed.

repositoryobject | nullrequired

The GitHub repository the cube is built from. null for a very old cube that has none: such a cube can only be deleted.

runtimeobjectrequired

How the cube is built and run, and where it is served.

runtime object8 fields
host_labelstringrequired

The first part of the cube's address: public_url is https://<host_label>.cubecen.app. It is made when the cube is created, from the cube's slug, the organization's slug and a short random suffix, and it never changes, even when the cube is renamed. You cannot choose it.

public_urlstringrequired

The cube's address, whether or not it is deployed yet: https://<host_label>.cubecen.app. Empty until state is active.

app_rootstringrequired

The folder of the repository that the cube is built from. . is the root of the repository.

start_commandstringrequired

The command that starts the cube. Empty lets the builder find it, or a Dockerfile image run its own command. Applies from the next build.

build_commandstringrequired

Replaces the build command that Railpack detects. Empty uses the detected one. It does not apply to a cube built from a Dockerfile. Applies from the next build.

output_directorystringrequired

A folder under app_root whose files are served as a static site, even when the repository has a start script. Empty lets the builder decide. Never set together with start_command. Applies from the next build.

portinteger | nullrequired

The port the cube listens on, which it receives as PORT. null means the one port the image exposes, else 8080. Applies from the next build.

private_urlstringrequired

The address the other cubes of the same project use to reach this cube over the project's private network. It works only from inside the project, once this cube is deployed. Empty when the cube has no such address yet.

push_to_deploybooleanrequired

true when a push to deploy_branch builds and deploys the pushed commit. Always false for a cube from a public repository.

deploy_branchstring | nullrequired

The branch that pushes deploy, and that a build without a revision builds. null tracks the repository's default branch.

previews_enabledbooleanrequired

true when pull requests into the tracked branch get a preview of the cube.

suspensionobject | nullrequired

Why the cube is paused, while it is: its instances are stopped and its address shows a page that says so. null while it runs. Builds and deployments go on, and start when the cube resumes.

instanceobjectrequired

The size the cube runs at. It comes from the organization's plan, or from a choice of the cube's owner up to the size the plan allows.

instance object8 fields
sizestringrequired

The size: small, medium, large or xlarge.

One of: small, medium, large, xlarge

memory_mibintegerrequired

The memory the cube is limited to, in MiB. A cube that goes over it is restarted.

cpunumberrequired

The most CPU the cube can use, in cores.

settingstring | nullrequired

The size that was chosen for the cube, up to the size the plan allows. null while the cube follows its plan's size.

resizingbooleanrequired

true while Cubecen is taking the cube to its target size: its setting, or its plan's size after a change of plan. It is normally over within seconds. size then shows the new size, and the instances roll over to it without downtime.

changed_atstringrequired

When the cube got its size: when it was made, or when it was last resized.

reasonstringrequired

Why the cube got its size. create: it was made with it. plan: it took its plan's size, after a change of plan or when it was set back to follow the plan. operator: Cubecen changed the memory of the plan. choice: its owner chose it.

One of: create, plan, operator, choice

previous_sizestring | nullrequired

The size the cube ran at before. null when it has had one size since it was made.

created_bystringrequired

The ID of the user who created the cube.

created_atstringrequired

When the cube was created.

updated_atstringrequired

When the cube was last changed.

buildobject

The cube's first build, when the request asked for deploy and the build could start. Absent otherwise.

build object26 fields
idstringrequired

The build's ID: an opaque string that starts with bld_ (dep_ for the oldest builds). Do not take it apart.

revisionstringrequired

What the build was asked to build, as a label: a branch, a tag or a commit SHA. A build started for an exact commit shows the branch or tag that commit was last built from, when there is one.

commit_shastringrequired

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

builderstring | nullrequired

How the build was made: dockerfile (a Dockerfile in the cube's app_root folder) or railpack. null until the build has looked for a Dockerfile, and for builds made before Dockerfile support. New values may appear.

portinteger | nullrequired

The port the cube listens on and gets traffic on, which it receives as PORT. It is the cube's port setting, else the one port the image exposes. null means the default, 8080.

frameworkstring | nullrequired

What the builder detected, such as vite, next or astro. A guess: a cube built with React Router can show as vite. null when nothing specific was detected, for Dockerfile builds and for builds made before detection. New values may appear.

staticboolean | nullrequired

true when the image serves files, as a static site does, and false when it runs a server. null for Dockerfile builds and for builds made before detection.

statusstringrequired

The build step's own status: QUEUED, BUILDING, SUCCEEDED, FAILED or CANCELLED. Follow release_status instead, which also covers the deployment that follows the build. New values may appear.

release_statusstringrequired

Where the release is, counting the build and the deployment that follows it. QUEUED is waiting to build and BUILDING is building. BUILT is built without deploying: it can be deployed later. DEPLOYING is built and 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.

image_digeststring

The digest of the image the build made, as sha256: and 64 hexadecimal characters. Present once the image is built.

auto_deploystring

What became of the deployment that follows the build: PENDING (not decided yet), TRIGGERED (a deployment was started), SKIPPED or FAILED. Absent for a build that does not deploy.

reusedbooleanrequired

true only in the answer to a request that asked for reuse and was served by deploying this earlier build again instead of building. deployment_id and deployment are then the new deployment, and release_status, terminal, error and public_url describe it. Follow that deployment: a later read of this build shows it as it was, with reused set to false. false everywhere else.

created_bystring | null

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

triggerstring | null

What started the build: 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 build with no recorded origin.

pushed_bystring | null

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

api_keyobject | null

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

mcp_clientstring | null

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

env_versionstring | nullrequired

The version of the environment variables the build ran with: 7 lowercase hexadecimal characters. null for builds made before environment versions, and for builds with no variables.

deployment_idstring

The ID of the deployment that follows the build, once there is one. Absent for a build that does not deploy.

deploymentobject

The deployment that follows the build, once there is one.

deployment object15 fields
idstringrequired

The deployment's ID: an opaque string that starts with dpl_. Do not take it apart.

build_idstringrequired

The ID of the build the deployment runs.

image_digeststring

The digest of the image the deployment runs, as sha256: and 64 hexadecimal characters.

statusstringrequired

The deployment's own status: QUEUED, DEPLOYING, SUCCEEDED, FAILED or CANCELLED. New values may appear.

public_urlstring

The address the cube is served at. Present once the deployment has succeeded.

errorobject

Why the deployment failed. Present when it 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.

created_bystring | null

The ID of the user who started the deployment. For a deployment that follows a build, the build's. null when a push started it, and when its origin is not recorded.

triggerstring | null

What started the deployment: dashboard, push, api or mcp, as on a build. null when its origin is not recorded.

pushed_bystring | null

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

api_keyobject | null

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

mcp_clientstring | null

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

env_versionstring | nullrequired

The version of the environment variables the deployment runs with: 7 lowercase hexadecimal characters. null for deployments made before environment versions, and for deployments with no variables.

created_atstringrequired

When the deployment was created.

started_atstring

When the deployment started. Absent while it waits in the queue.

finished_atstring

When the deployment finished. Absent until then.

public_urlstring

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

created_atstringrequired

When the build was created.

started_atstring

When the build started running. Absent while it waits in the queue.

finished_atstring

When the build finished. Absent until then.

build_errorobject

Why the first build could not start, when the request asked for deploy. The cube exists all the same. Absent otherwise.

build_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.

202

The cube is not set up yet. It is in state creating. Read it again, or send the same request again, until it is active.

ApplicationCreateResult object20 fields
idstringrequired

The cube's ID.

organization_idstringrequired

The ID of the organization the cube belongs to.

project_idstringrequired

The ID of the project the cube is in.

namestringrequired

The cube's name.

slugstringrequired

A short name for the cube, unique within its project, made of lowercase letters, digits and hyphens. Paths accept it in place of the ID.

descriptionstringrequired

What the cube is for, in free text. Empty when none was given.

statestringrequired

creating while Cubecen is still setting the cube up: it cannot be built or deployed yet. active once it is ready. failed when it could not be set up: failure_code says why.

One of: creating, active, failed

failure_codestring

A short code that says why the cube could not be set up. Present only when state is failed.

repositoryobject | nullrequired

The GitHub repository the cube is built from. null for a very old cube that has none: such a cube can only be deleted.

runtimeobjectrequired

How the cube is built and run, and where it is served.

runtime object8 fields
host_labelstringrequired

The first part of the cube's address: public_url is https://<host_label>.cubecen.app. It is made when the cube is created, from the cube's slug, the organization's slug and a short random suffix, and it never changes, even when the cube is renamed. You cannot choose it.

public_urlstringrequired

The cube's address, whether or not it is deployed yet: https://<host_label>.cubecen.app. Empty until state is active.

app_rootstringrequired

The folder of the repository that the cube is built from. . is the root of the repository.

start_commandstringrequired

The command that starts the cube. Empty lets the builder find it, or a Dockerfile image run its own command. Applies from the next build.

build_commandstringrequired

Replaces the build command that Railpack detects. Empty uses the detected one. It does not apply to a cube built from a Dockerfile. Applies from the next build.

output_directorystringrequired

A folder under app_root whose files are served as a static site, even when the repository has a start script. Empty lets the builder decide. Never set together with start_command. Applies from the next build.

portinteger | nullrequired

The port the cube listens on, which it receives as PORT. null means the one port the image exposes, else 8080. Applies from the next build.

private_urlstringrequired

The address the other cubes of the same project use to reach this cube over the project's private network. It works only from inside the project, once this cube is deployed. Empty when the cube has no such address yet.

push_to_deploybooleanrequired

true when a push to deploy_branch builds and deploys the pushed commit. Always false for a cube from a public repository.

deploy_branchstring | nullrequired

The branch that pushes deploy, and that a build without a revision builds. null tracks the repository's default branch.

previews_enabledbooleanrequired

true when pull requests into the tracked branch get a preview of the cube.

suspensionobject | nullrequired

Why the cube is paused, while it is: its instances are stopped and its address shows a page that says so. null while it runs. Builds and deployments go on, and start when the cube resumes.

instanceobjectrequired

The size the cube runs at. It comes from the organization's plan, or from a choice of the cube's owner up to the size the plan allows.

instance object8 fields
sizestringrequired

The size: small, medium, large or xlarge.

One of: small, medium, large, xlarge

memory_mibintegerrequired

The memory the cube is limited to, in MiB. A cube that goes over it is restarted.

cpunumberrequired

The most CPU the cube can use, in cores.

settingstring | nullrequired

The size that was chosen for the cube, up to the size the plan allows. null while the cube follows its plan's size.

resizingbooleanrequired

true while Cubecen is taking the cube to its target size: its setting, or its plan's size after a change of plan. It is normally over within seconds. size then shows the new size, and the instances roll over to it without downtime.

changed_atstringrequired

When the cube got its size: when it was made, or when it was last resized.

reasonstringrequired

Why the cube got its size. create: it was made with it. plan: it took its plan's size, after a change of plan or when it was set back to follow the plan. operator: Cubecen changed the memory of the plan. choice: its owner chose it.

One of: create, plan, operator, choice

previous_sizestring | nullrequired

The size the cube ran at before. null when it has had one size since it was made.

created_bystringrequired

The ID of the user who created the cube.

created_atstringrequired

When the cube was created.

updated_atstringrequired

When the cube was last changed.

buildobject

The cube's first build, when the request asked for deploy and the build could start. Absent otherwise.

build object26 fields
idstringrequired

The build's ID: an opaque string that starts with bld_ (dep_ for the oldest builds). Do not take it apart.

revisionstringrequired

What the build was asked to build, as a label: a branch, a tag or a commit SHA. A build started for an exact commit shows the branch or tag that commit was last built from, when there is one.

commit_shastringrequired

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

builderstring | nullrequired

How the build was made: dockerfile (a Dockerfile in the cube's app_root folder) or railpack. null until the build has looked for a Dockerfile, and for builds made before Dockerfile support. New values may appear.

portinteger | nullrequired

The port the cube listens on and gets traffic on, which it receives as PORT. It is the cube's port setting, else the one port the image exposes. null means the default, 8080.

frameworkstring | nullrequired

What the builder detected, such as vite, next or astro. A guess: a cube built with React Router can show as vite. null when nothing specific was detected, for Dockerfile builds and for builds made before detection. New values may appear.

staticboolean | nullrequired

true when the image serves files, as a static site does, and false when it runs a server. null for Dockerfile builds and for builds made before detection.

statusstringrequired

The build step's own status: QUEUED, BUILDING, SUCCEEDED, FAILED or CANCELLED. Follow release_status instead, which also covers the deployment that follows the build. New values may appear.

release_statusstringrequired

Where the release is, counting the build and the deployment that follows it. QUEUED is waiting to build and BUILDING is building. BUILT is built without deploying: it can be deployed later. DEPLOYING is built and 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.

image_digeststring

The digest of the image the build made, as sha256: and 64 hexadecimal characters. Present once the image is built.

auto_deploystring

What became of the deployment that follows the build: PENDING (not decided yet), TRIGGERED (a deployment was started), SKIPPED or FAILED. Absent for a build that does not deploy.

reusedbooleanrequired

true only in the answer to a request that asked for reuse and was served by deploying this earlier build again instead of building. deployment_id and deployment are then the new deployment, and release_status, terminal, error and public_url describe it. Follow that deployment: a later read of this build shows it as it was, with reused set to false. false everywhere else.

created_bystring | null

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

triggerstring | null

What started the build: 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 build with no recorded origin.

pushed_bystring | null

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

api_keyobject | null

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

mcp_clientstring | null

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

env_versionstring | nullrequired

The version of the environment variables the build ran with: 7 lowercase hexadecimal characters. null for builds made before environment versions, and for builds with no variables.

deployment_idstring

The ID of the deployment that follows the build, once there is one. Absent for a build that does not deploy.

deploymentobject

The deployment that follows the build, once there is one.

deployment object15 fields
idstringrequired

The deployment's ID: an opaque string that starts with dpl_. Do not take it apart.

build_idstringrequired

The ID of the build the deployment runs.

image_digeststring

The digest of the image the deployment runs, as sha256: and 64 hexadecimal characters.

statusstringrequired

The deployment's own status: QUEUED, DEPLOYING, SUCCEEDED, FAILED or CANCELLED. New values may appear.

public_urlstring

The address the cube is served at. Present once the deployment has succeeded.

errorobject

Why the deployment failed. Present when it 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.

created_bystring | null

The ID of the user who started the deployment. For a deployment that follows a build, the build's. null when a push started it, and when its origin is not recorded.

triggerstring | null

What started the deployment: dashboard, push, api or mcp, as on a build. null when its origin is not recorded.

pushed_bystring | null

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

api_keyobject | null

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

mcp_clientstring | null

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

env_versionstring | nullrequired

The version of the environment variables the deployment runs with: 7 lowercase hexadecimal characters. null for deployments made before environment versions, and for deployments with no variables.

created_atstringrequired

When the deployment was created.

started_atstring

When the deployment started. Absent while it waits in the queue.

finished_atstring

When the deployment finished. Absent until then.

public_urlstring

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

created_atstringrequired

When the build was created.

started_atstring

When the build started running. Absent while it waits in the queue.

finished_atstring

When the build finished. Absent until then.

build_errorobject

Why the first build could not start, when the request asked for deploy. The cube exists all the same. Absent otherwise.

build_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.

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.

402

The organization's plan does not allow this. error.limit, error.max, error.used and error.plan say which limit.

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.

409

The request conflicts with the current state of the resource. error.code says how.

413

The request body is larger than 1 MiB.

415

The request body must be JSON. Send Content-Type: application/json.

422

The request is well formed but cannot be carried out. error.code says why.

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.

502

A service Cubecen relies on, such as GitHub, did not answer. Retry the same request with backoff.

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 -X POST "https://api.cubecen.com/v1/organizations/<org>/projects/<project>/applications" \
  -H "Authorization: Bearer $CUBECEN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
       "name": "Web",
       "slug": "web",
       "description": "The storefront",
       "github_installation_id": "3d7c1e90-5b24-4a68-9f03-8c2e7a1d4b56",
       "repository": {
         "owner": "acme",
         "name": "storefront"
       },
       "app_root": "apps/web",
       "deploy": {}
     }'
Response
{
  "id": "f1a83d52-6e07-4b9c-8d34-7a0c9e215b68",
  "organization_id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
  "project_id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
  "name": "Web",
  "slug": "web",
  "description": "The storefront",
  "state": "active",
  "repository": {
    "source": "github_app",
    "github_installation_id": "3d7c1e90-5b24-4a68-9f03-8c2e7a1d4b56",
    "owner": "acme",
    "name": "storefront",
    "url": "https://github.com/acme/storefront.git",
    "default_branch": "main"
  },
  "runtime": {
    "host_label": "web-acme-3f9a2c",
    "public_url": "https://web-acme-3f9a2c.cubecen.app",
    "app_root": "apps/web",
    "start_command": "",
    "build_command": "",
    "output_directory": "",
    "port": null,
    "private_url": "http://app-4c1d9e07a3b25f6810c2d7e94a5b3f60.cubecen-apps.svc.cluster.local"
  },
  "push_to_deploy": true,
  "deploy_branch": null,
  "previews_enabled": false,
  "suspension": null,
  "instance": {
    "size": "small",
    "memory_mib": 2048,
    "cpu": 0.5,
    "setting": "small",
    "resizing": false,
    "changed_at": "2026-10-25T09:12:40Z",
    "reason": "create",
    "previous_size": null
  },
  "created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
  "created_at": "2026-10-25T09:12:40Z",
  "updated_at": "2026-10-25T09:12:41Z",
  "build": {
    "id": "bld_00000001a0fdd794980f85f9c353bf",
    "revision": "main",
    "commit_sha": "6e8b7d3c38a461f0c27c4d52b7a0943e4cbbb119",
    "builder": null,
    "port": null,
    "framework": null,
    "static": null,
    "status": "QUEUED",
    "release_status": "QUEUED",
    "terminal": false,
    "auto_deploy": "PENDING",
    "reused": 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,
    "env_version": null,
    "created_at": "2026-10-25T09:12:41Z"
  }
}

List the cubes of an organization

GET/v1/organizations/{org}/applications
Read-only key

Returns the cubes of all the projects of an organization, a page at a time. Use it to see everything an organization runs at once. To list the cubes of one project, use listApplications.

Each item is a cube with its project, its newest release and the deployment that is live now. Cubes that are still being set up (creating) or that could not be set up (failed) are listed too.

Cubes come in the order of their last change, newest first. Pass sort to change the order. Pass q to keep the cubes whose name, slug or repository (owner/name) contains some text, project_id to keep one project's cubes, and state to keep cubes in one state.

The answer holds up to limit cubes in items. When there are more, it also holds next_cursor: send it back as cursor, with the same filters and sort, to get the next page. The last page has no next_cursor.

last_release and live_deployment are kept up to date as releases happen, so they can be a few seconds behind. last_release is null until the cube has had a build, and live_deployment is null until a deployment has succeeded.

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.

Query parameters

NameTypeDescription
limitinteger

The most cubes 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, with the same sort. Leave it out to get the first page. A value that does not belong to this list, or that was made for another sort, is refused with 400.

qstring

Keeps the cubes whose name, slug or repository (owner/name) contains this text, ignoring case. At most 200 bytes: a character outside plain ASCII takes more than one.

project_idstring

Keeps the cubes of this project. The project's ID. A slug does not work here.

statestring

Keeps the cubes in this state: creating, active or failed.

sortstring

The order of the list. updated is newest change first, and is the default. name is A to Z, ignoring case. created is newest first.

Responses

StatusDescription
200

One page of the organization's cubes.

ApplicationPage object2 fields
itemsarray of objectrequired

The cubes on this page.

items items21 fields
idstringrequired

The cube's ID.

organization_idstringrequired

The ID of the organization the cube belongs to.

project_idstringrequired

The ID of the project the cube is in.

namestringrequired

The cube's name.

slugstringrequired

A short name for the cube, unique within its project, made of lowercase letters, digits and hyphens. Paths accept it in place of the ID.

descriptionstringrequired

What the cube is for, in free text. Empty when none was given.

statestringrequired

creating while Cubecen is still setting the cube up: it cannot be built or deployed yet. active once it is ready. failed when it could not be set up: failure_code says why.

One of: creating, active, failed

failure_codestring

A short code that says why the cube could not be set up. Present only when state is failed.

repositoryobject | nullrequired

The GitHub repository the cube is built from. null for a very old cube that has none: such a cube can only be deleted.

runtimeobjectrequired

How the cube is built and run, and where it is served.

runtime object8 fields
host_labelstringrequired

The first part of the cube's address: public_url is https://<host_label>.cubecen.app. It is made when the cube is created, from the cube's slug, the organization's slug and a short random suffix, and it never changes, even when the cube is renamed. You cannot choose it.

public_urlstringrequired

The cube's address, whether or not it is deployed yet: https://<host_label>.cubecen.app. Empty until state is active.

app_rootstringrequired

The folder of the repository that the cube is built from. . is the root of the repository.

start_commandstringrequired

The command that starts the cube. Empty lets the builder find it, or a Dockerfile image run its own command. Applies from the next build.

build_commandstringrequired

Replaces the build command that Railpack detects. Empty uses the detected one. It does not apply to a cube built from a Dockerfile. Applies from the next build.

output_directorystringrequired

A folder under app_root whose files are served as a static site, even when the repository has a start script. Empty lets the builder decide. Never set together with start_command. Applies from the next build.

portinteger | nullrequired

The port the cube listens on, which it receives as PORT. null means the one port the image exposes, else 8080. Applies from the next build.

private_urlstringrequired

The address the other cubes of the same project use to reach this cube over the project's private network. It works only from inside the project, once this cube is deployed. Empty when the cube has no such address yet.

push_to_deploybooleanrequired

true when a push to deploy_branch builds and deploys the pushed commit. Always false for a cube from a public repository.

deploy_branchstring | nullrequired

The branch that pushes deploy, and that a build without a revision builds. null tracks the repository's default branch.

previews_enabledbooleanrequired

true when pull requests into the tracked branch get a preview of the cube.

suspensionobject | nullrequired

Why the cube is paused, while it is: its instances are stopped and its address shows a page that says so. null while it runs. Builds and deployments go on, and start when the cube resumes.

instanceobjectrequired

The size the cube runs at. It comes from the organization's plan, or from a choice of the cube's owner up to the size the plan allows.

instance object8 fields
sizestringrequired

The size: small, medium, large or xlarge.

One of: small, medium, large, xlarge

memory_mibintegerrequired

The memory the cube is limited to, in MiB. A cube that goes over it is restarted.

cpunumberrequired

The most CPU the cube can use, in cores.

settingstring | nullrequired

The size that was chosen for the cube, up to the size the plan allows. null while the cube follows its plan's size.

resizingbooleanrequired

true while Cubecen is taking the cube to its target size: its setting, or its plan's size after a change of plan. It is normally over within seconds. size then shows the new size, and the instances roll over to it without downtime.

changed_atstringrequired

When the cube got its size: when it was made, or when it was last resized.

reasonstringrequired

Why the cube got its size. create: it was made with it. plan: it took its plan's size, after a change of plan or when it was set back to follow the plan. operator: Cubecen changed the memory of the plan. choice: its owner chose it.

One of: create, plan, operator, choice

previous_sizestring | nullrequired

The size the cube ran at before. null when it has had one size since it was made.

live_deploymentobject | nullrequired

The deployment that serves the cube now. null until a deployment has succeeded.

created_bystringrequired

The ID of the user who created the cube.

created_atstringrequired

When the cube was created.

updated_atstringrequired

When the cube was last changed.

projectobjectrequired

The project the cube is in.

project object3 fields
idstringrequired

The project's ID.

namestringrequired

The project's name.

slugstringrequired

The project's slug.

last_releaseobject | nullrequired

The cube's newest build, and where its release is. null until the cube has had a build.

next_cursorstring

Send it as cursor to get the next page. Absent 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>/applications" \
  -H "Authorization: Bearer $CUBECEN_API_KEY"
Response
{
  "items": [
    {
      "id": "f1a83d52-6e07-4b9c-8d34-7a0c9e215b68",
      "organization_id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
      "project_id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
      "name": "Web",
      "slug": "web",
      "description": "The storefront",
      "state": "active",
      "repository": {
        "source": "github_app",
        "github_installation_id": "3d7c1e90-5b24-4a68-9f03-8c2e7a1d4b56",
        "owner": "acme",
        "name": "storefront",
        "url": "https://github.com/acme/storefront.git",
        "default_branch": "main"
      },
      "runtime": {
        "host_label": "web-acme-3f9a2c",
        "public_url": "https://web-acme-3f9a2c.cubecen.app",
        "app_root": "apps/web",
        "start_command": "",
        "build_command": "",
        "output_directory": "",
        "port": null,
        "private_url": "http://app-4c1d9e07a3b25f6810c2d7e94a5b3f60.cubecen-apps.svc.cluster.local"
      },
      "push_to_deploy": true,
      "deploy_branch": null,
      "previews_enabled": false,
      "suspension": null,
      "instance": {
        "size": "small",
        "memory_mib": 2048,
        "cpu": 0.5,
        "setting": "small",
        "resizing": false,
        "changed_at": "2026-09-14T08:40:02Z",
        "reason": "create",
        "previous_size": null
      },
      "created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
      "created_at": "2026-09-14T08:40:02Z",
      "updated_at": "2026-10-25T09:14:31Z",
      "project": {
        "id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
        "name": "Storefront",
        "slug": "storefront"
      },
      "last_release": {
        "build_id": "bld_00000001a0fdd794980f85f9c353bf",
        "release_status": "DEPLOYED",
        "terminal": true,
        "revision": "main",
        "commit_sha": "6e8b7d3c38a461f0c27c4d52b7a0943e4cbbb119",
        "created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
        "trigger": "api",
        "pushed_by": null,
        "api_key": null,
        "mcp_client": null,
        "created_at": "2026-10-25T09:12:40Z",
        "finished_at": "2026-10-25T09:14:31Z"
      },
      "live_deployment": {
        "id": "dpl_00000002a0fdd794980f85f9c353bf",
        "build_id": "bld_00000001a0fdd794980f85f9c353bf",
        "status": "SUCCEEDED",
        "finished_at": "2026-10-25T09:14:31Z",
        "env_version": "e3a91c2",
        "build_env_version": "e3a91c2"
      }
    }
  ],
  "next_cursor": "Zk3vQx9TnWl2RbYc7uHs5dPgAe8MjXo1iNtV4yLq"
}

Get a cube

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

Returns one cube: its repository, how it is built and run, its address, its size and its state.

Use it to follow a cube that createApplication answered with 202: read it every few seconds until state is active or failed. Use it too to find the deployment that is live now, in live_deployment (the lists show a shorter form of it), and the cubes whose variables refer to this cube, in referenced_by, which only this answer has.

For a cube that is active, the build and run settings are read from the platform when you ask, so they are up to date.

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.

Responses

StatusDescription
200

The cube.

Application object20 fields
idstringrequired

The cube's ID.

organization_idstringrequired

The ID of the organization the cube belongs to.

project_idstringrequired

The ID of the project the cube is in.

namestringrequired

The cube's name.

slugstringrequired

A short name for the cube, unique within its project, made of lowercase letters, digits and hyphens. Paths accept it in place of the ID.

descriptionstringrequired

What the cube is for, in free text. Empty when none was given.

statestringrequired

creating while Cubecen is still setting the cube up: it cannot be built or deployed yet. active once it is ready. failed when it could not be set up: failure_code says why.

One of: creating, active, failed

failure_codestring

A short code that says why the cube could not be set up. Present only when state is failed.

repositoryobject | nullrequired

The GitHub repository the cube is built from. null for a very old cube that has none: such a cube can only be deleted.

runtimeobjectrequired

How the cube is built and run, and where it is served.

runtime object8 fields
host_labelstringrequired

The first part of the cube's address: public_url is https://<host_label>.cubecen.app. It is made when the cube is created, from the cube's slug, the organization's slug and a short random suffix, and it never changes, even when the cube is renamed. You cannot choose it.

public_urlstringrequired

The cube's address, whether or not it is deployed yet: https://<host_label>.cubecen.app. Empty until state is active.

app_rootstringrequired

The folder of the repository that the cube is built from. . is the root of the repository.

start_commandstringrequired

The command that starts the cube. Empty lets the builder find it, or a Dockerfile image run its own command. Applies from the next build.

build_commandstringrequired

Replaces the build command that Railpack detects. Empty uses the detected one. It does not apply to a cube built from a Dockerfile. Applies from the next build.

output_directorystringrequired

A folder under app_root whose files are served as a static site, even when the repository has a start script. Empty lets the builder decide. Never set together with start_command. Applies from the next build.

portinteger | nullrequired

The port the cube listens on, which it receives as PORT. null means the one port the image exposes, else 8080. Applies from the next build.

private_urlstringrequired

The address the other cubes of the same project use to reach this cube over the project's private network. It works only from inside the project, once this cube is deployed. Empty when the cube has no such address yet.

push_to_deploybooleanrequired

true when a push to deploy_branch builds and deploys the pushed commit. Always false for a cube from a public repository.

deploy_branchstring | nullrequired

The branch that pushes deploy, and that a build without a revision builds. null tracks the repository's default branch.

previews_enabledbooleanrequired

true when pull requests into the tracked branch get a preview of the cube.

suspensionobject | nullrequired

Why the cube is paused, while it is: its instances are stopped and its address shows a page that says so. null while it runs. Builds and deployments go on, and start when the cube resumes.

instanceobjectrequired

The size the cube runs at. It comes from the organization's plan, or from a choice of the cube's owner up to the size the plan allows.

instance object8 fields
sizestringrequired

The size: small, medium, large or xlarge.

One of: small, medium, large, xlarge

memory_mibintegerrequired

The memory the cube is limited to, in MiB. A cube that goes over it is restarted.

cpunumberrequired

The most CPU the cube can use, in cores.

settingstring | nullrequired

The size that was chosen for the cube, up to the size the plan allows. null while the cube follows its plan's size.

resizingbooleanrequired

true while Cubecen is taking the cube to its target size: its setting, or its plan's size after a change of plan. It is normally over within seconds. size then shows the new size, and the instances roll over to it without downtime.

changed_atstringrequired

When the cube got its size: when it was made, or when it was last resized.

reasonstringrequired

Why the cube got its size. create: it was made with it. plan: it took its plan's size, after a change of plan or when it was set back to follow the plan. operator: Cubecen changed the memory of the plan. choice: its owner chose it.

One of: create, plan, operator, choice

previous_sizestring | nullrequired

The size the cube ran at before. null when it has had one size since it was made.

live_deploymentobject

The deployment that serves the cube now. Only getApplication answers it, and it is absent when nothing is live.

live_deployment object15 fields
idstringrequired

The deployment's ID: an opaque string that starts with dpl_. Do not take it apart.

build_idstringrequired

The ID of the build the deployment runs.

image_digeststring

The digest of the image the deployment runs, as sha256: and 64 hexadecimal characters.

statusstringrequired

The deployment's own status: QUEUED, DEPLOYING, SUCCEEDED, FAILED or CANCELLED. New values may appear.

public_urlstring

The address the cube is served at. Present once the deployment has succeeded.

errorobject

Why the deployment failed. Present when it 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.

created_bystring | null

The ID of the user who started the deployment. For a deployment that follows a build, the build's. null when a push started it, and when its origin is not recorded.

triggerstring | null

What started the deployment: dashboard, push, api or mcp, as on a build. null when its origin is not recorded.

pushed_bystring | null

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

api_keyobject | null

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

mcp_clientstring | null

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

env_versionstring | nullrequired

The version of the environment variables the deployment runs with: 7 lowercase hexadecimal characters. null for deployments made before environment versions, and for deployments with no variables.

created_atstringrequired

When the deployment was created.

started_atstring

When the deployment started. Absent while it waits in the queue.

finished_atstring

When the deployment finished. Absent until then.

referenced_byarray of object

The other cubes of the project whose variables refer to this cube by its slug, as ${{ slug.PUBLIC_URL }}. Only getApplication answers it, and it is absent when there are none. While there are some, the slug cannot be changed.

referenced_by items3 fields
idstringrequired

The cube's ID.

slugstringrequired

The cube's slug.

namestringrequired

The cube's name.

created_bystringrequired

The ID of the user who created the cube.

created_atstringrequired

When the cube was created.

updated_atstringrequired

When the cube was last changed.

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>" \
  -H "Authorization: Bearer $CUBECEN_API_KEY"
Response
{
  "id": "f1a83d52-6e07-4b9c-8d34-7a0c9e215b68",
  "organization_id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
  "project_id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
  "name": "Web",
  "slug": "web",
  "description": "The storefront",
  "state": "active",
  "repository": {
    "source": "github_app",
    "github_installation_id": "3d7c1e90-5b24-4a68-9f03-8c2e7a1d4b56",
    "owner": "acme",
    "name": "storefront",
    "url": "https://github.com/acme/storefront.git",
    "default_branch": "main"
  },
  "runtime": {
    "host_label": "web-acme-3f9a2c",
    "public_url": "https://web-acme-3f9a2c.cubecen.app",
    "app_root": "apps/web",
    "start_command": "",
    "build_command": "",
    "output_directory": "",
    "port": null,
    "private_url": "http://app-4c1d9e07a3b25f6810c2d7e94a5b3f60.cubecen-apps.svc.cluster.local"
  },
  "push_to_deploy": true,
  "deploy_branch": null,
  "previews_enabled": false,
  "suspension": null,
  "instance": {
    "size": "small",
    "memory_mib": 2048,
    "cpu": 0.5,
    "setting": "small",
    "resizing": false,
    "changed_at": "2026-09-14T08:40:02Z",
    "reason": "create",
    "previous_size": null
  },
  "live_deployment": {
    "id": "dpl_00000002a0fdd794980f85f9c353bf",
    "build_id": "bld_00000001a0fdd794980f85f9c353bf",
    "image_digest": "sha256:0b7eb1bc3e6480072dddfd667fe6003a3e729aba3f65cdc8ea01be89b01f8e3c",
    "status": "SUCCEEDED",
    "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,
    "env_version": "e3a91c2",
    "created_at": "2026-10-25T09:14:03Z",
    "started_at": "2026-10-25T09:14:04Z",
    "finished_at": "2026-10-25T09:14:31Z"
  },
  "referenced_by": [
    {
      "id": "b64f2a19-0c83-4d7e-9a15-e2d83c7f5a40",
      "slug": "api",
      "name": "API"
    }
  ],
  "created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
  "created_at": "2026-09-14T08:40:02Z",
  "updated_at": "2026-10-25T09:14:31Z"
}

Update a cube

PATCH/v1/organizations/{org}/projects/{project}/applications/{cube}

Changes a cube. It needs a key with full access.

Send only the fields to change, and at least one. A field that you leave out stays as it is. The rules for each field are those of createApplication. name, slug and description describe the cube. start_command, app_root, build_command, output_directory and port say how it is built and run. push_to_deploy and deploy_branch say which pushes deploy it. size chooses how big it runs.

Send null to clear description, start_command, build_command, output_directory or port, and to make the cube track the repository's default branch again with deploy_branch. An empty string does the same for the commands, the output directory and the branch. A cube cannot have both an output_directory and a start_command: to switch from one to the other, send the new one and null for the old one in the same request.

The build and run settings apply from the cube's next build, so start a build with createBuild after you change them. Changing them, or size, needs an active cube: for a cube that is still being set up the request is refused with 409 APPLICATION_NOT_READY. The other fields can be changed in any state.

Changing the slug changes the name that paths use for the cube, so use the id in paths that you keep. The cube's address does not change. A new slug is refused with 409 while the variables of another cube of the project refer to this cube by its slug: getApplication lists those cubes in referenced_by. Change the references first.

size can be at most the largest size that the plan allows. The cube is resized at once and rolls over to the new size without downtime. The answer shows the new instance. If the resize has not finished, instance.resizing is true and size still shows the old size: read the cube until resizing is false. Send null to make the cube follow its plan's size again. A size above the plan's is refused with 402, and a size that is not offered right now with 409.

The answer is the cube as it is now.

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.

Body

NameTypeDescription
namestring

The cube's new name. The rules are those of name when a cube is created. It cannot be null.

slugstring

The cube's new slug. The rules are those of slug when a cube is created. It cannot be null. It is refused with 409 while the variables of another cube refer to this cube by its slug.

descriptionstring | null

The cube's new description, up to 4000 characters. null clears it.

start_commandstring | null

The new start command, at most 1024 characters with no control characters. null or an empty string clears it. Applies from the next build, and needs an active cube.

app_rootstring

The new folder of the repository to build: . for the root, or a relative path. It cannot be null. Applies from the next build, and needs an active cube.

build_commandstring | null

The new build command, at most 1024 characters with no control characters. null or an empty string clears it. Applies from the next build, and needs an active cube.

output_directorystring | null

The new output directory, written like app_root. null or an empty string clears it. The cube cannot end up with both an output directory and a start command. Applies from the next build, and needs an active cube.

portinteger | null

The new port, from 1 to 65535. null clears it. Applies from the next build, and needs an active cube.

push_to_deployboolean

true or false. It cannot be null. A cube from a public repository cannot turn it on: that is refused with 400.

deploy_branchstring | null

The new branch that pushes deploy, at most 255 characters. null or an empty string tracks the repository's default branch. A branch that does not exist yet is accepted: pushes to it deploy once it does.

sizestring | null

The size to run the cube at, up to the largest size the plan allows: small, medium, large or xlarge. null, or the plan's own size, makes the cube follow its plan's size. The cube is resized at once. It needs an active cube.

Responses

StatusDescription
200

The cube, with the changes.

Application object20 fields
idstringrequired

The cube's ID.

organization_idstringrequired

The ID of the organization the cube belongs to.

project_idstringrequired

The ID of the project the cube is in.

namestringrequired

The cube's name.

slugstringrequired

A short name for the cube, unique within its project, made of lowercase letters, digits and hyphens. Paths accept it in place of the ID.

descriptionstringrequired

What the cube is for, in free text. Empty when none was given.

statestringrequired

creating while Cubecen is still setting the cube up: it cannot be built or deployed yet. active once it is ready. failed when it could not be set up: failure_code says why.

One of: creating, active, failed

failure_codestring

A short code that says why the cube could not be set up. Present only when state is failed.

repositoryobject | nullrequired

The GitHub repository the cube is built from. null for a very old cube that has none: such a cube can only be deleted.

runtimeobjectrequired

How the cube is built and run, and where it is served.

runtime object8 fields
host_labelstringrequired

The first part of the cube's address: public_url is https://<host_label>.cubecen.app. It is made when the cube is created, from the cube's slug, the organization's slug and a short random suffix, and it never changes, even when the cube is renamed. You cannot choose it.

public_urlstringrequired

The cube's address, whether or not it is deployed yet: https://<host_label>.cubecen.app. Empty until state is active.

app_rootstringrequired

The folder of the repository that the cube is built from. . is the root of the repository.

start_commandstringrequired

The command that starts the cube. Empty lets the builder find it, or a Dockerfile image run its own command. Applies from the next build.

build_commandstringrequired

Replaces the build command that Railpack detects. Empty uses the detected one. It does not apply to a cube built from a Dockerfile. Applies from the next build.

output_directorystringrequired

A folder under app_root whose files are served as a static site, even when the repository has a start script. Empty lets the builder decide. Never set together with start_command. Applies from the next build.

portinteger | nullrequired

The port the cube listens on, which it receives as PORT. null means the one port the image exposes, else 8080. Applies from the next build.

private_urlstringrequired

The address the other cubes of the same project use to reach this cube over the project's private network. It works only from inside the project, once this cube is deployed. Empty when the cube has no such address yet.

push_to_deploybooleanrequired

true when a push to deploy_branch builds and deploys the pushed commit. Always false for a cube from a public repository.

deploy_branchstring | nullrequired

The branch that pushes deploy, and that a build without a revision builds. null tracks the repository's default branch.

previews_enabledbooleanrequired

true when pull requests into the tracked branch get a preview of the cube.

suspensionobject | nullrequired

Why the cube is paused, while it is: its instances are stopped and its address shows a page that says so. null while it runs. Builds and deployments go on, and start when the cube resumes.

instanceobjectrequired

The size the cube runs at. It comes from the organization's plan, or from a choice of the cube's owner up to the size the plan allows.

instance object8 fields
sizestringrequired

The size: small, medium, large or xlarge.

One of: small, medium, large, xlarge

memory_mibintegerrequired

The memory the cube is limited to, in MiB. A cube that goes over it is restarted.

cpunumberrequired

The most CPU the cube can use, in cores.

settingstring | nullrequired

The size that was chosen for the cube, up to the size the plan allows. null while the cube follows its plan's size.

resizingbooleanrequired

true while Cubecen is taking the cube to its target size: its setting, or its plan's size after a change of plan. It is normally over within seconds. size then shows the new size, and the instances roll over to it without downtime.

changed_atstringrequired

When the cube got its size: when it was made, or when it was last resized.

reasonstringrequired

Why the cube got its size. create: it was made with it. plan: it took its plan's size, after a change of plan or when it was set back to follow the plan. operator: Cubecen changed the memory of the plan. choice: its owner chose it.

One of: create, plan, operator, choice

previous_sizestring | nullrequired

The size the cube ran at before. null when it has had one size since it was made.

live_deploymentobject

The deployment that serves the cube now. Only getApplication answers it, and it is absent when nothing is live.

live_deployment object15 fields
idstringrequired

The deployment's ID: an opaque string that starts with dpl_. Do not take it apart.

build_idstringrequired

The ID of the build the deployment runs.

image_digeststring

The digest of the image the deployment runs, as sha256: and 64 hexadecimal characters.

statusstringrequired

The deployment's own status: QUEUED, DEPLOYING, SUCCEEDED, FAILED or CANCELLED. New values may appear.

public_urlstring

The address the cube is served at. Present once the deployment has succeeded.

errorobject

Why the deployment failed. Present when it 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.

created_bystring | null

The ID of the user who started the deployment. For a deployment that follows a build, the build's. null when a push started it, and when its origin is not recorded.

triggerstring | null

What started the deployment: dashboard, push, api or mcp, as on a build. null when its origin is not recorded.

pushed_bystring | null

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

api_keyobject | null

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

mcp_clientstring | null

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

env_versionstring | nullrequired

The version of the environment variables the deployment runs with: 7 lowercase hexadecimal characters. null for deployments made before environment versions, and for deployments with no variables.

created_atstringrequired

When the deployment was created.

started_atstring

When the deployment started. Absent while it waits in the queue.

finished_atstring

When the deployment finished. Absent until then.

referenced_byarray of object

The other cubes of the project whose variables refer to this cube by its slug, as ${{ slug.PUBLIC_URL }}. Only getApplication answers it, and it is absent when there are none. While there are some, the slug cannot be changed.

referenced_by items3 fields
idstringrequired

The cube's ID.

slugstringrequired

The cube's slug.

namestringrequired

The cube's name.

created_bystringrequired

The ID of the user who created the cube.

created_atstringrequired

When the cube was created.

updated_atstringrequired

When the cube was last changed.

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.

402

The organization's plan does not allow this. error.limit, error.max, error.used and error.plan say which limit.

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.

409

The request conflicts with the current state of the resource. error.code says how.

413

The request body is larger than 1 MiB.

415

The request body must be JSON. Send Content-Type: application/json.

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 -X PATCH "https://api.cubecen.com/v1/organizations/<org>/projects/<project>/applications/<cube>" \
  -H "Authorization: Bearer $CUBECEN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
       "app_root": "apps/web",
       "build_command": "npm run build:web",
       "port": 3000
     }'
Response
{
  "id": "f1a83d52-6e07-4b9c-8d34-7a0c9e215b68",
  "organization_id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
  "project_id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
  "name": "Web",
  "slug": "web",
  "description": "The storefront",
  "state": "active",
  "repository": {
    "source": "github_app",
    "github_installation_id": "3d7c1e90-5b24-4a68-9f03-8c2e7a1d4b56",
    "owner": "acme",
    "name": "storefront",
    "url": "https://github.com/acme/storefront.git",
    "default_branch": "main"
  },
  "runtime": {
    "host_label": "web-acme-3f9a2c",
    "public_url": "https://web-acme-3f9a2c.cubecen.app",
    "app_root": "apps/web",
    "start_command": "",
    "build_command": "npm run build:web",
    "output_directory": "",
    "port": 3000,
    "private_url": "http://app-4c1d9e07a3b25f6810c2d7e94a5b3f60.cubecen-apps.svc.cluster.local"
  },
  "push_to_deploy": true,
  "deploy_branch": null,
  "previews_enabled": false,
  "suspension": null,
  "instance": {
    "size": "small",
    "memory_mib": 2048,
    "cpu": 0.5,
    "setting": "small",
    "resizing": false,
    "changed_at": "2026-09-14T08:40:02Z",
    "reason": "create",
    "previous_size": null
  },
  "created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
  "created_at": "2026-09-14T08:40:02Z",
  "updated_at": "2026-10-25T10:02:17Z"
}

Delete a cube

DELETE/v1/organizations/{org}/projects/{project}/applications/{cube}

Deletes a cube and takes down what it was running. It needs a key with full access. This cannot be undone.

The cube is gone from the lists and from getApplication at once, and its slug is free for another cube. Taking down what it ran can take a moment. When it is done, the request answers 204, with no body. When it is still going on, the request answers 202 with the cube's id, a status of DELETION_PENDING and a Retry-After header: send the same request again after that many seconds, until it answers 204. Cubecen finishes the deletion on its own, even if you never repeat the request.

A build or deployment of another cube whose variables refer to this cube by its slug is refused with ENV_REFERENCE_BROKEN once this cube is gone. getApplication lists those cubes in referenced_by.

To repeat the request, name the cube by its id. Once the deletion has started, the cube's slug no longer names it, so a repeat by slug is 404. A repeat by id after the deletion is done answers 204 again.

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.

Responses

StatusDescription
202

The cube is being deleted. Send the request again after Retry-After seconds, until it answers 204.

DeletionPending object2 fields
idstringrequired

The ID of the cube that is being deleted.

statusstringrequired

Always DELETION_PENDING.

One of: DELETION_PENDING

204

The cube and what it ran are gone. The answer has no body.

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 -X DELETE "https://api.cubecen.com/v1/organizations/<org>/projects/<project>/applications/<cube>" \
  -H "Authorization: Bearer $CUBECEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response
{
  "id": "f1a83d52-6e07-4b9c-8d34-7a0c9e215b68",
  "status": "DELETION_PENDING"
}

List the folders of a cube's repository

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

Lists the folders of the repository that a cube is built from, at a branch, tag or commit. Use it to choose the app_root of a cube, for example in a monorepo. To list the folders of a repository before you make a cube from it, use getRepositoryFolders.

Each folder has a path, where . is the root of the repository, and markers: the files in it that builders use to recognize what to build, such as a Dockerfile, package.json or go.mod. A folder with markers is likely to hold an app. pnpm-workspace.yaml marks the root of a monorepo. The folders .git and node_modules are never listed. The answer names the commit it read.

ref picks the branch, tag or commit to read. Without it, the branch that the cube tracks is read: its deploy_branch, else the repository's default branch as it was when the cube was made. A repository with more than 2000 folders is cut short, and truncated is true: the root comes first, then the folders with markers and their parents, then the shallowest folders.

A cube from a GitHub installation is read through that installation, which must still allow the repository, as builds do. A cube from a public repository is read without any access, so the repository must still be public. Lookups are limited to about 30 a minute for the key's owner, counting getRepositoryFolders too.

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
refstring

The branch, tag or commit SHA to read, at most 255 characters. Leave it out for the branch the cube tracks.

Responses

StatusDescription
200

The folders of the repository at the commit that was read.

RepositoryTree object5 fields
repositorystringrequired

The repository, as owner/name, spelled as GitHub spells it.

refstringrequired

The branch, tag or commit that was read.

commit_shastringrequired

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

directoriesarray of objectrequired

The folders, sorted by path, with the root, ., first.

directories items2 fields
pathstringrequired

The folder's path from the root of the repository, or . for the root.

markersarray of stringrequired

The files in this folder that builders use to recognize what to build, such as Dockerfile, package.json or go.mod. pnpm-workspace.yaml marks the root of a monorepo. Empty when there are none.

truncatedbooleanrequired

true when some folders were left out: the repository has more than 2000, or GitHub cut the list short.

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.

422

The request is well formed but cannot be carried out. error.code says why.

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.

502

A service Cubecen relies on, such as GitHub, did not answer. Retry the same request with backoff.

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>/repository-tree" \
  -H "Authorization: Bearer $CUBECEN_API_KEY"
Response
{
  "repository": "acme/storefront",
  "ref": "main",
  "commit_sha": "6e8b7d3c38a461f0c27c4d52b7a0943e4cbbb119",
  "directories": [
    {
      "path": ".",
      "markers": [
        "package.json",
        "pnpm-workspace.yaml"
      ]
    },
    {
      "path": "apps",
      "markers": []
    },
    {
      "path": "apps/api",
      "markers": [
        "Dockerfile",
        "package.json"
      ]
    },
    {
      "path": "apps/web",
      "markers": [
        "package.json"
      ]
    }
  ],
  "truncated": false
}