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
/ v1/ organizations/ {org}/ projects/ {project}/ applicationsPOSTCreate a cube/ v1/ organizations/ {org}/ projects/ {project}/ applicationsGETList the cubes of an organization/ v1/ organizations/ {org}/ applicationsGETGet a cube/ v1/ organizations/ {org}/ projects/ {project}/ applications/ {cube}PATCHUpdate a cube/ v1/ organizations/ {org}/ projects/ {project}/ applications/ {cube}DELETEDelete a cube/ v1/ organizations/ {org}/ projects/ {project}/ applications/ {cube}GETList the folders of a cube's repository/ v1/ organizations/ {org}/ projects/ {project}/ applications/ {cube}/ repository-treeYou 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.
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
/ v1/ organizations/ {org}/ projects/ {project}/ applicationsReturns 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
| Name | Type | Description |
|---|---|---|
orgrequired | string | The ID or slug of the organization. A key works in one organization. Another organization, by ID or by slug, is refused with |
projectrequired | string | The ID or slug of the project. A slug is unique within the organization. |
Query parameters
| Name | Type | Description |
|---|---|---|
limit | integer | The most cubes to return in a page, from 1 to 100. The default is 20. |
cursor | string | Where the next page starts: an opaque value. Send the |
Responses
| Status | Description |
|---|---|
| 200 | One page of the project's cubes, oldest first. ApplicationPage object2 fieldsitemsarray of objectrequiredThe cubes on this page. items items21 fieldsidstringrequiredThe cube's ID. organization_idstringrequiredThe ID of the organization the cube belongs to. project_idstringrequiredThe ID of the project the cube is in. namestringrequiredThe cube's name. slugstringrequiredA short name for the cube, unique within its project, made of lowercase letters, digits and hyphens. Paths accept it in place of the ID. descriptionstringrequiredWhat the cube is for, in free text. Empty when none was given. statestringrequired
One of: failure_codestringA short code that says why the cube could not be set up. Present only when repositoryobject | nullrequiredThe GitHub repository the cube is built from. runtimeobjectrequiredHow the cube is built and run, and where it is served. runtime object8 fieldshost_labelstringrequiredThe first part of the cube's address: public_urlstringrequiredThe cube's address, whether or not it is deployed yet: app_rootstringrequiredThe folder of the repository that the cube is built from. start_commandstringrequiredThe 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_commandstringrequiredReplaces 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_directorystringrequiredA folder under portinteger | nullrequiredThe port the cube listens on, which it receives as private_urlstringrequiredThe 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
deploy_branchstring | nullrequiredThe branch that pushes deploy, and that a build without a previews_enabledbooleanrequired
suspensionobject | nullrequiredWhy the cube is paused, while it is: its instances are stopped and its address shows a page that says so. instanceobjectrequiredThe 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 fieldssizestringrequiredThe size: One of: memory_mibintegerrequiredThe memory the cube is limited to, in MiB. A cube that goes over it is restarted. cpunumberrequiredThe most CPU the cube can use, in cores. settingstring | nullrequiredThe size that was chosen for the cube, up to the size the plan allows. resizingbooleanrequired
changed_atstringrequiredWhen the cube got its size: when it was made, or when it was last resized. reasonstringrequiredWhy the cube got its size. One of: previous_sizestring | nullrequiredThe size the cube ran at before. live_deploymentobject | nullrequiredThe deployment that serves the cube now. created_bystringrequiredThe ID of the user who created the cube. created_atstringrequiredWhen the cube was created. updated_atstringrequiredWhen the cube was last changed. projectobjectrequiredThe project the cube is in. project object3 fieldsidstringrequiredThe project's ID. namestringrequiredThe project's name. slugstringrequiredThe project's slug. last_releaseobject | nullrequiredThe cube's newest build, and where its release is. next_cursorstringSend it as |
| 400 | The request is not valid. |
| 401 | The API key is missing, unknown, expired or revoked. |
| 403 | The key may not do this. Its access level or its owner's role does not allow it, or the organization is not the key's. |
| 404 | Nothing was found at this address. An organization ID that matches no organization is |
| 429 | The key made too many requests. Wait for the number of seconds in |
| 500 | Something went wrong on our side. Retry the request with backoff. If it keeps failing, give support the |
| 503 | The service is temporarily unavailable. Retry the same request with backoff: wait a little longer after each failed attempt. The error code can differ from the one shown. |
Example
curl -sS "https://api.cubecen.com/v1/organizations/<org>/projects/<project>/applications" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"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"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Permission denied",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests with this API key; try again shortly",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal error occurred",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "DATABASE_UNAVAILABLE",
"message": "Database unavailable",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}Create a cube
/ v1/ organizations/ {org}/ projects/ {project}/ applicationsCreates 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
| Name | Type | Description |
|---|---|---|
orgrequired | string | The ID or slug of the organization. A key works in one organization. Another organization, by ID or by slug, is refused with |
projectrequired | string | The ID or slug of the project. A slug is unique within the organization. |
Body
| Name | Type | Description |
|---|---|---|
namerequired | string | The cube's name: 1 to 120 characters, with no space at the start or the end and no control characters. |
slugrequired | string | The cube's slug: lowercase letters, digits and single hyphens, such as |
description | string | What the cube is for, in free text, up to 4000 characters. Empty when left out. |
github_installation_id | string | For a repository of a GitHub installation: the |
repositoryrequired | object | The repository to build. Send repository object3 fieldsownerstringThe GitHub account that owns the repository. Letters can be in any case. At most 39 characters. namestringThe repository's name. Letters can be in any case. At most 100 characters. urlstringFor a public repository: its link, |
app_root | string | The folder of the repository to build: |
start_command | string | 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_command | string | 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_directory | string | A folder under |
port | integer | The port the cube listens on, from 1 to 65535. Leave it out to use the port the image exposes, else 8080. |
deploy | object | Start the cube's first build and deployment right away. Send deploy object1 fieldrevisionstringThe branch, tag or commit SHA to build instead of the tracked branch. At most 255 characters. |
push_to_deploy | boolean |
|
deploy_branch | string | The branch that pushes deploy, and that a build without a |
size | string | The size the cube starts at, up to the largest size the plan allows: One of: |
Responses
| Status | Description |
|---|---|
| 201 | The cube was created and is ApplicationCreateResult object20 fieldsidstringrequiredThe cube's ID. organization_idstringrequiredThe ID of the organization the cube belongs to. project_idstringrequiredThe ID of the project the cube is in. namestringrequiredThe cube's name. slugstringrequiredA short name for the cube, unique within its project, made of lowercase letters, digits and hyphens. Paths accept it in place of the ID. descriptionstringrequiredWhat the cube is for, in free text. Empty when none was given. statestringrequired
One of: failure_codestringA short code that says why the cube could not be set up. Present only when repositoryobject | nullrequiredThe GitHub repository the cube is built from. runtimeobjectrequiredHow the cube is built and run, and where it is served. runtime object8 fieldshost_labelstringrequiredThe first part of the cube's address: public_urlstringrequiredThe cube's address, whether or not it is deployed yet: app_rootstringrequiredThe folder of the repository that the cube is built from. start_commandstringrequiredThe 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_commandstringrequiredReplaces 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_directorystringrequiredA folder under portinteger | nullrequiredThe port the cube listens on, which it receives as private_urlstringrequiredThe 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
deploy_branchstring | nullrequiredThe branch that pushes deploy, and that a build without a previews_enabledbooleanrequired
suspensionobject | nullrequiredWhy the cube is paused, while it is: its instances are stopped and its address shows a page that says so. instanceobjectrequiredThe 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 fieldssizestringrequiredThe size: One of: memory_mibintegerrequiredThe memory the cube is limited to, in MiB. A cube that goes over it is restarted. cpunumberrequiredThe most CPU the cube can use, in cores. settingstring | nullrequiredThe size that was chosen for the cube, up to the size the plan allows. resizingbooleanrequired
changed_atstringrequiredWhen the cube got its size: when it was made, or when it was last resized. reasonstringrequiredWhy the cube got its size. One of: previous_sizestring | nullrequiredThe size the cube ran at before. created_bystringrequiredThe ID of the user who created the cube. created_atstringrequiredWhen the cube was created. updated_atstringrequiredWhen the cube was last changed. buildobjectThe cube's first build, when the request asked for build object26 fieldsidstringrequiredThe build's ID: an opaque string that starts with revisionstringrequiredWhat 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_shastringrequiredThe exact commit that was built, as 40 hexadecimal characters. builderstring | nullrequiredHow the build was made: portinteger | nullrequiredThe port the cube listens on and gets traffic on, which it receives as frameworkstring | nullrequiredWhat the builder detected, such as staticboolean | nullrequired
statusstringrequiredThe build step's own status: release_statusstringrequiredWhere the release is, counting the build and the deployment that follows it. One of: terminalbooleanrequired
errorobjectWhy the build or the deployment failed. Present when error object2 fieldscodestringrequiredA short code for the failure, such as messagestringrequiredWhat went wrong, in words you can show. image_digeststringThe digest of the image the build made, as auto_deploystringWhat became of the deployment that follows the build: reusedbooleanrequired
created_bystring | nullThe ID of the user who started the build. For a build started with an API key, the key's owner. triggerstring | nullWhat started the build: pushed_bystring | nullThe GitHub login that pushed, when api_keyobject | nullThe API key that started the build, when mcp_clientstring | nullThe AI client that started the build for the person, when env_versionstring | nullrequiredThe version of the environment variables the build ran with: 7 lowercase hexadecimal characters. deployment_idstringThe ID of the deployment that follows the build, once there is one. Absent for a build that does not deploy. deploymentobjectThe deployment that follows the build, once there is one. deployment object15 fieldsidstringrequiredThe deployment's ID: an opaque string that starts with build_idstringrequiredThe ID of the build the deployment runs. image_digeststringThe digest of the image the deployment runs, as statusstringrequiredThe deployment's own status: public_urlstringThe address the cube is served at. Present once the deployment has succeeded. errorobjectWhy the deployment failed. Present when it failed. error object2 fieldscodestringrequiredA short code for the failure, such as messagestringrequiredWhat went wrong, in words you can show. created_bystring | nullThe ID of the user who started the deployment. For a deployment that follows a build, the build's. triggerstring | nullWhat started the deployment: pushed_bystring | nullThe GitHub login that pushed, when api_keyobject | nullThe API key that started the deployment, when mcp_clientstring | nullThe AI client that started the deployment for the person, when env_versionstring | nullrequiredThe version of the environment variables the deployment runs with: 7 lowercase hexadecimal characters. created_atstringrequiredWhen the deployment was created. started_atstringWhen the deployment started. Absent while it waits in the queue. finished_atstringWhen the deployment finished. Absent until then. public_urlstringThe address the cube is served at. Present once created_atstringrequiredWhen the build was created. started_atstringWhen the build started running. Absent while it waits in the queue. finished_atstringWhen the build finished. Absent until then. build_errorobjectWhy the first build could not start, when the request asked for build_error object2 fieldscodestringrequiredA short code for the failure, such as messagestringrequiredWhat went wrong, in words you can show. |
| 202 | The cube is not set up yet. It is in state ApplicationCreateResult object20 fieldsidstringrequiredThe cube's ID. organization_idstringrequiredThe ID of the organization the cube belongs to. project_idstringrequiredThe ID of the project the cube is in. namestringrequiredThe cube's name. slugstringrequiredA short name for the cube, unique within its project, made of lowercase letters, digits and hyphens. Paths accept it in place of the ID. descriptionstringrequiredWhat the cube is for, in free text. Empty when none was given. statestringrequired
One of: failure_codestringA short code that says why the cube could not be set up. Present only when repositoryobject | nullrequiredThe GitHub repository the cube is built from. runtimeobjectrequiredHow the cube is built and run, and where it is served. runtime object8 fieldshost_labelstringrequiredThe first part of the cube's address: public_urlstringrequiredThe cube's address, whether or not it is deployed yet: app_rootstringrequiredThe folder of the repository that the cube is built from. start_commandstringrequiredThe 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_commandstringrequiredReplaces 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_directorystringrequiredA folder under portinteger | nullrequiredThe port the cube listens on, which it receives as private_urlstringrequiredThe 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
deploy_branchstring | nullrequiredThe branch that pushes deploy, and that a build without a previews_enabledbooleanrequired
suspensionobject | nullrequiredWhy the cube is paused, while it is: its instances are stopped and its address shows a page that says so. instanceobjectrequiredThe 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 fieldssizestringrequiredThe size: One of: memory_mibintegerrequiredThe memory the cube is limited to, in MiB. A cube that goes over it is restarted. cpunumberrequiredThe most CPU the cube can use, in cores. settingstring | nullrequiredThe size that was chosen for the cube, up to the size the plan allows. resizingbooleanrequired
changed_atstringrequiredWhen the cube got its size: when it was made, or when it was last resized. reasonstringrequiredWhy the cube got its size. One of: previous_sizestring | nullrequiredThe size the cube ran at before. created_bystringrequiredThe ID of the user who created the cube. created_atstringrequiredWhen the cube was created. updated_atstringrequiredWhen the cube was last changed. buildobjectThe cube's first build, when the request asked for build object26 fieldsidstringrequiredThe build's ID: an opaque string that starts with revisionstringrequiredWhat 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_shastringrequiredThe exact commit that was built, as 40 hexadecimal characters. builderstring | nullrequiredHow the build was made: portinteger | nullrequiredThe port the cube listens on and gets traffic on, which it receives as frameworkstring | nullrequiredWhat the builder detected, such as staticboolean | nullrequired
statusstringrequiredThe build step's own status: release_statusstringrequiredWhere the release is, counting the build and the deployment that follows it. One of: terminalbooleanrequired
errorobjectWhy the build or the deployment failed. Present when error object2 fieldscodestringrequiredA short code for the failure, such as messagestringrequiredWhat went wrong, in words you can show. image_digeststringThe digest of the image the build made, as auto_deploystringWhat became of the deployment that follows the build: reusedbooleanrequired
created_bystring | nullThe ID of the user who started the build. For a build started with an API key, the key's owner. triggerstring | nullWhat started the build: pushed_bystring | nullThe GitHub login that pushed, when api_keyobject | nullThe API key that started the build, when mcp_clientstring | nullThe AI client that started the build for the person, when env_versionstring | nullrequiredThe version of the environment variables the build ran with: 7 lowercase hexadecimal characters. deployment_idstringThe ID of the deployment that follows the build, once there is one. Absent for a build that does not deploy. deploymentobjectThe deployment that follows the build, once there is one. deployment object15 fieldsidstringrequiredThe deployment's ID: an opaque string that starts with build_idstringrequiredThe ID of the build the deployment runs. image_digeststringThe digest of the image the deployment runs, as statusstringrequiredThe deployment's own status: public_urlstringThe address the cube is served at. Present once the deployment has succeeded. errorobjectWhy the deployment failed. Present when it failed. error object2 fieldscodestringrequiredA short code for the failure, such as messagestringrequiredWhat went wrong, in words you can show. created_bystring | nullThe ID of the user who started the deployment. For a deployment that follows a build, the build's. triggerstring | nullWhat started the deployment: pushed_bystring | nullThe GitHub login that pushed, when api_keyobject | nullThe API key that started the deployment, when mcp_clientstring | nullThe AI client that started the deployment for the person, when env_versionstring | nullrequiredThe version of the environment variables the deployment runs with: 7 lowercase hexadecimal characters. created_atstringrequiredWhen the deployment was created. started_atstringWhen the deployment started. Absent while it waits in the queue. finished_atstringWhen the deployment finished. Absent until then. public_urlstringThe address the cube is served at. Present once created_atstringrequiredWhen the build was created. started_atstringWhen the build started running. Absent while it waits in the queue. finished_atstringWhen the build finished. Absent until then. build_errorobjectWhy the first build could not start, when the request asked for build_error object2 fieldscodestringrequiredA short code for the failure, such as messagestringrequiredWhat went wrong, in words you can show. |
| 400 | The request is not valid. |
| 401 | The API key is missing, unknown, expired or revoked. |
| 402 | The organization's plan does not allow this. |
| 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 |
| 409 | The request conflicts with the current state of the resource. |
| 413 | The request body is larger than 1 MiB. |
| 415 | The request body must be JSON. Send |
| 422 | The request is well formed but cannot be carried out. |
| 429 | The key made too many requests. Wait for the number of seconds in |
| 500 | Something went wrong on our side. Retry the request with backoff. If it keeps failing, give support the |
| 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
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": {}
}'{
"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"
}
}{
"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"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request body must be valid JSON with only supported fields",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "PLAN_LIMIT_REACHED",
"message": "The Free plan allows 3 cubes; delete one or change plans to add another",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736",
"limit": "cubes",
"max": 3,
"used": 3,
"plan": "free"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Permission denied",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "CONFLICT",
"message": "Resource already exists",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request body is too large",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Content-Type must be application/json",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "REPOSITORY_NOT_ACCESSIBLE",
"message": "The GitHub installation cannot access this repository",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736",
"field": "repository"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests with this API key; try again shortly",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal error occurred",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "GITHUB_UNAVAILABLE",
"message": "GitHub is temporarily unavailable; retry the same request",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "GITHUB_RATE_LIMITED",
"message": "GitHub's rate limit was reached. Try again in about a minute",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}List the cubes of an organization
/ v1/ organizations/ {org}/ applicationsReturns 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
| Name | Type | Description |
|---|---|---|
orgrequired | string | The ID or slug of the organization. A key works in one organization. Another organization, by ID or by slug, is refused with |
Query parameters
| Name | Type | Description |
|---|---|---|
limit | integer | The most cubes to return in a page, from 1 to 100. The default is 20. |
cursor | string | Where the next page starts: an opaque value. Send the |
q | string | Keeps the cubes whose name, slug or repository ( |
project_id | string | Keeps the cubes of this project. The project's ID. A slug does not work here. |
state | string | Keeps the cubes in this state: |
sort | string | The order of the list. |
Responses
| Status | Description |
|---|---|
| 200 | One page of the organization's cubes. ApplicationPage object2 fieldsitemsarray of objectrequiredThe cubes on this page. items items21 fieldsidstringrequiredThe cube's ID. organization_idstringrequiredThe ID of the organization the cube belongs to. project_idstringrequiredThe ID of the project the cube is in. namestringrequiredThe cube's name. slugstringrequiredA short name for the cube, unique within its project, made of lowercase letters, digits and hyphens. Paths accept it in place of the ID. descriptionstringrequiredWhat the cube is for, in free text. Empty when none was given. statestringrequired
One of: failure_codestringA short code that says why the cube could not be set up. Present only when repositoryobject | nullrequiredThe GitHub repository the cube is built from. runtimeobjectrequiredHow the cube is built and run, and where it is served. runtime object8 fieldshost_labelstringrequiredThe first part of the cube's address: public_urlstringrequiredThe cube's address, whether or not it is deployed yet: app_rootstringrequiredThe folder of the repository that the cube is built from. start_commandstringrequiredThe 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_commandstringrequiredReplaces 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_directorystringrequiredA folder under portinteger | nullrequiredThe port the cube listens on, which it receives as private_urlstringrequiredThe 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
deploy_branchstring | nullrequiredThe branch that pushes deploy, and that a build without a previews_enabledbooleanrequired
suspensionobject | nullrequiredWhy the cube is paused, while it is: its instances are stopped and its address shows a page that says so. instanceobjectrequiredThe 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 fieldssizestringrequiredThe size: One of: memory_mibintegerrequiredThe memory the cube is limited to, in MiB. A cube that goes over it is restarted. cpunumberrequiredThe most CPU the cube can use, in cores. settingstring | nullrequiredThe size that was chosen for the cube, up to the size the plan allows. resizingbooleanrequired
changed_atstringrequiredWhen the cube got its size: when it was made, or when it was last resized. reasonstringrequiredWhy the cube got its size. One of: previous_sizestring | nullrequiredThe size the cube ran at before. live_deploymentobject | nullrequiredThe deployment that serves the cube now. created_bystringrequiredThe ID of the user who created the cube. created_atstringrequiredWhen the cube was created. updated_atstringrequiredWhen the cube was last changed. projectobjectrequiredThe project the cube is in. project object3 fieldsidstringrequiredThe project's ID. namestringrequiredThe project's name. slugstringrequiredThe project's slug. last_releaseobject | nullrequiredThe cube's newest build, and where its release is. next_cursorstringSend it as |
| 400 | The request is not valid. |
| 401 | The API key is missing, unknown, expired or revoked. |
| 403 | The key may not do this. Its access level or its owner's role does not allow it, or the organization is not the key's. |
| 404 | Nothing was found at this address. An organization ID that matches no organization is |
| 429 | The key made too many requests. Wait for the number of seconds in |
| 500 | Something went wrong on our side. Retry the request with backoff. If it keeps failing, give support the |
| 503 | The service is temporarily unavailable. Retry the same request with backoff: wait a little longer after each failed attempt. The error code can differ from the one shown. |
Example
curl -sS "https://api.cubecen.com/v1/organizations/<org>/applications" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"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"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "limit must be between 1 and 100",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736",
"field": "limit"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Permission denied",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests with this API key; try again shortly",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal error occurred",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "DATABASE_UNAVAILABLE",
"message": "Database unavailable",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}Get a cube
/ v1/ organizations/ {org}/ projects/ {project}/ applications/ {cube}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
| Name | Type | Description |
|---|---|---|
orgrequired | string | The ID or slug of the organization. A key works in one organization. Another organization, by ID or by slug, is refused with |
projectrequired | string | The ID or slug of the project. A slug is unique within the organization. |
cuberequired | string | The ID or slug of the cube. A slug is unique within the project. |
Responses
| Status | Description |
|---|---|
| 200 | The cube. Application object20 fieldsidstringrequiredThe cube's ID. organization_idstringrequiredThe ID of the organization the cube belongs to. project_idstringrequiredThe ID of the project the cube is in. namestringrequiredThe cube's name. slugstringrequiredA short name for the cube, unique within its project, made of lowercase letters, digits and hyphens. Paths accept it in place of the ID. descriptionstringrequiredWhat the cube is for, in free text. Empty when none was given. statestringrequired
One of: failure_codestringA short code that says why the cube could not be set up. Present only when repositoryobject | nullrequiredThe GitHub repository the cube is built from. runtimeobjectrequiredHow the cube is built and run, and where it is served. runtime object8 fieldshost_labelstringrequiredThe first part of the cube's address: public_urlstringrequiredThe cube's address, whether or not it is deployed yet: app_rootstringrequiredThe folder of the repository that the cube is built from. start_commandstringrequiredThe 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_commandstringrequiredReplaces 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_directorystringrequiredA folder under portinteger | nullrequiredThe port the cube listens on, which it receives as private_urlstringrequiredThe 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
deploy_branchstring | nullrequiredThe branch that pushes deploy, and that a build without a previews_enabledbooleanrequired
suspensionobject | nullrequiredWhy the cube is paused, while it is: its instances are stopped and its address shows a page that says so. instanceobjectrequiredThe 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 fieldssizestringrequiredThe size: One of: memory_mibintegerrequiredThe memory the cube is limited to, in MiB. A cube that goes over it is restarted. cpunumberrequiredThe most CPU the cube can use, in cores. settingstring | nullrequiredThe size that was chosen for the cube, up to the size the plan allows. resizingbooleanrequired
changed_atstringrequiredWhen the cube got its size: when it was made, or when it was last resized. reasonstringrequiredWhy the cube got its size. One of: previous_sizestring | nullrequiredThe size the cube ran at before. live_deploymentobjectThe deployment that serves the cube now. Only live_deployment object15 fieldsidstringrequiredThe deployment's ID: an opaque string that starts with build_idstringrequiredThe ID of the build the deployment runs. image_digeststringThe digest of the image the deployment runs, as statusstringrequiredThe deployment's own status: public_urlstringThe address the cube is served at. Present once the deployment has succeeded. errorobjectWhy the deployment failed. Present when it failed. error object2 fieldscodestringrequiredA short code for the failure, such as messagestringrequiredWhat went wrong, in words you can show. created_bystring | nullThe ID of the user who started the deployment. For a deployment that follows a build, the build's. triggerstring | nullWhat started the deployment: pushed_bystring | nullThe GitHub login that pushed, when api_keyobject | nullThe API key that started the deployment, when mcp_clientstring | nullThe AI client that started the deployment for the person, when env_versionstring | nullrequiredThe version of the environment variables the deployment runs with: 7 lowercase hexadecimal characters. created_atstringrequiredWhen the deployment was created. started_atstringWhen the deployment started. Absent while it waits in the queue. finished_atstringWhen the deployment finished. Absent until then. referenced_byarray of objectThe other cubes of the project whose variables refer to this cube by its slug, as referenced_by items3 fieldsidstringrequiredThe cube's ID. slugstringrequiredThe cube's slug. namestringrequiredThe cube's name. created_bystringrequiredThe ID of the user who created the cube. created_atstringrequiredWhen the cube was created. updated_atstringrequiredWhen 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 |
| 429 | The key made too many requests. Wait for the number of seconds in |
| 500 | Something went wrong on our side. Retry the request with backoff. If it keeps failing, give support the |
| 503 | The service is temporarily unavailable. Retry the same request with backoff: wait a little longer after each failed attempt. The error code can differ from the one shown. |
Example
curl -sS "https://api.cubecen.com/v1/organizations/<org>/projects/<project>/applications/<cube>" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"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"
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Permission denied",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests with this API key; try again shortly",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal error occurred",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "DATABASE_UNAVAILABLE",
"message": "Database unavailable",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}Update a cube
/ 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
| Name | Type | Description |
|---|---|---|
orgrequired | string | The ID or slug of the organization. A key works in one organization. Another organization, by ID or by slug, is refused with |
projectrequired | string | The ID or slug of the project. A slug is unique within the organization. |
cuberequired | string | The ID or slug of the cube. A slug is unique within the project. |
Body
| Name | Type | Description |
|---|---|---|
name | string | The cube's new name. The rules are those of |
slug | string | The cube's new slug. The rules are those of |
description | string | null | The cube's new description, up to 4000 characters. |
start_command | string | null | The new start command, at most 1024 characters with no control characters. |
app_root | string | The new folder of the repository to build: |
build_command | string | null | The new build command, at most 1024 characters with no control characters. |
output_directory | string | null | The new output directory, written like |
port | integer | null | The new port, from 1 to 65535. |
push_to_deploy | boolean |
|
deploy_branch | string | null | The new branch that pushes deploy, at most 255 characters. |
size | string | null | The size to run the cube at, up to the largest size the plan allows: |
Responses
| Status | Description |
|---|---|
| 200 | The cube, with the changes. Application object20 fieldsidstringrequiredThe cube's ID. organization_idstringrequiredThe ID of the organization the cube belongs to. project_idstringrequiredThe ID of the project the cube is in. namestringrequiredThe cube's name. slugstringrequiredA short name for the cube, unique within its project, made of lowercase letters, digits and hyphens. Paths accept it in place of the ID. descriptionstringrequiredWhat the cube is for, in free text. Empty when none was given. statestringrequired
One of: failure_codestringA short code that says why the cube could not be set up. Present only when repositoryobject | nullrequiredThe GitHub repository the cube is built from. runtimeobjectrequiredHow the cube is built and run, and where it is served. runtime object8 fieldshost_labelstringrequiredThe first part of the cube's address: public_urlstringrequiredThe cube's address, whether or not it is deployed yet: app_rootstringrequiredThe folder of the repository that the cube is built from. start_commandstringrequiredThe 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_commandstringrequiredReplaces 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_directorystringrequiredA folder under portinteger | nullrequiredThe port the cube listens on, which it receives as private_urlstringrequiredThe 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
deploy_branchstring | nullrequiredThe branch that pushes deploy, and that a build without a previews_enabledbooleanrequired
suspensionobject | nullrequiredWhy the cube is paused, while it is: its instances are stopped and its address shows a page that says so. instanceobjectrequiredThe 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 fieldssizestringrequiredThe size: One of: memory_mibintegerrequiredThe memory the cube is limited to, in MiB. A cube that goes over it is restarted. cpunumberrequiredThe most CPU the cube can use, in cores. settingstring | nullrequiredThe size that was chosen for the cube, up to the size the plan allows. resizingbooleanrequired
changed_atstringrequiredWhen the cube got its size: when it was made, or when it was last resized. reasonstringrequiredWhy the cube got its size. One of: previous_sizestring | nullrequiredThe size the cube ran at before. live_deploymentobjectThe deployment that serves the cube now. Only live_deployment object15 fieldsidstringrequiredThe deployment's ID: an opaque string that starts with build_idstringrequiredThe ID of the build the deployment runs. image_digeststringThe digest of the image the deployment runs, as statusstringrequiredThe deployment's own status: public_urlstringThe address the cube is served at. Present once the deployment has succeeded. errorobjectWhy the deployment failed. Present when it failed. error object2 fieldscodestringrequiredA short code for the failure, such as messagestringrequiredWhat went wrong, in words you can show. created_bystring | nullThe ID of the user who started the deployment. For a deployment that follows a build, the build's. triggerstring | nullWhat started the deployment: pushed_bystring | nullThe GitHub login that pushed, when api_keyobject | nullThe API key that started the deployment, when mcp_clientstring | nullThe AI client that started the deployment for the person, when env_versionstring | nullrequiredThe version of the environment variables the deployment runs with: 7 lowercase hexadecimal characters. created_atstringrequiredWhen the deployment was created. started_atstringWhen the deployment started. Absent while it waits in the queue. finished_atstringWhen the deployment finished. Absent until then. referenced_byarray of objectThe other cubes of the project whose variables refer to this cube by its slug, as referenced_by items3 fieldsidstringrequiredThe cube's ID. slugstringrequiredThe cube's slug. namestringrequiredThe cube's name. created_bystringrequiredThe ID of the user who created the cube. created_atstringrequiredWhen the cube was created. updated_atstringrequiredWhen the cube was last changed. |
| 400 | The request is not valid. |
| 401 | The API key is missing, unknown, expired or revoked. |
| 402 | The organization's plan does not allow this. |
| 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 |
| 409 | The request conflicts with the current state of the resource. |
| 413 | The request body is larger than 1 MiB. |
| 415 | The request body must be JSON. Send |
| 429 | The key made too many requests. Wait for the number of seconds in |
| 500 | Something went wrong on our side. Retry the request with backoff. If it keeps failing, give support the |
| 503 | The service is temporarily unavailable. Retry the same request with backoff: wait a little longer after each failed attempt. The error code can differ from the one shown. |
Example
curl -sS -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
}'{
"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"
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request body must be valid JSON with only supported fields",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "PLAN_LIMIT_REACHED",
"message": "The Free plan runs cubes at up to Small (2 GiB); change plans to choose Medium",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736",
"limit": "size",
"max": 2048,
"used": 4096,
"plan": "free"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Permission denied",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "CONFLICT",
"message": "Resource already exists",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Request body is too large",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Content-Type must be application/json",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests with this API key; try again shortly",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal error occurred",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "DATABASE_UNAVAILABLE",
"message": "Database unavailable",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}Delete a cube
/ 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
| Name | Type | Description |
|---|---|---|
orgrequired | string | The ID or slug of the organization. A key works in one organization. Another organization, by ID or by slug, is refused with |
projectrequired | string | The ID or slug of the project. A slug is unique within the organization. |
cuberequired | string | The ID or slug of the cube. A slug is unique within the project. |
Responses
| Status | Description |
|---|---|
| 202 | The cube is being deleted. Send the request again after DeletionPending object2 fieldsidstringrequiredThe ID of the cube that is being deleted. statusstringrequiredAlways One of: |
| 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 |
| 429 | The key made too many requests. Wait for the number of seconds in |
| 500 | Something went wrong on our side. Retry the request with backoff. If it keeps failing, give support the |
| 503 | The service is temporarily unavailable. Retry the same request with backoff: wait a little longer after each failed attempt. The error code can differ from the one shown. |
Example
curl -sS -X DELETE "https://api.cubecen.com/v1/organizations/<org>/projects/<project>/applications/<cube>" \
-H "Authorization: Bearer $CUBECEN_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"id": "f1a83d52-6e07-4b9c-8d34-7a0c9e215b68",
"status": "DELETION_PENDING"
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Permission denied",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests with this API key; try again shortly",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal error occurred",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "DATABASE_UNAVAILABLE",
"message": "Database unavailable",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}List the folders of a cube's repository
/ v1/ organizations/ {org}/ projects/ {project}/ applications/ {cube}/ repository-treeLists 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
| Name | Type | Description |
|---|---|---|
orgrequired | string | The ID or slug of the organization. A key works in one organization. Another organization, by ID or by slug, is refused with |
projectrequired | string | The ID or slug of the project. A slug is unique within the organization. |
cuberequired | string | The ID or slug of the cube. A slug is unique within the project. |
Query parameters
| Name | Type | Description |
|---|---|---|
ref | string | The branch, tag or commit SHA to read, at most 255 characters. Leave it out for the branch the cube tracks. |
Responses
| Status | Description |
|---|---|
| 200 | The folders of the repository at the commit that was read. RepositoryTree object5 fieldsrepositorystringrequiredThe repository, as refstringrequiredThe branch, tag or commit that was read. commit_shastringrequiredThe exact commit that was read, as 40 hexadecimal characters. directoriesarray of objectrequiredThe folders, sorted by path, with the root, directories items2 fieldspathstringrequiredThe folder's path from the root of the repository, or markersarray of stringrequiredThe files in this folder that builders use to recognize what to build, such as truncatedbooleanrequired
|
| 400 | The request is not valid. |
| 401 | The API key is missing, unknown, expired or revoked. |
| 403 | The key may not do this. Its access level or its owner's role does not allow it, or the organization is not the key's. |
| 404 | Nothing was found at this address. An organization ID that matches no organization is |
| 422 | The request is well formed but cannot be carried out. |
| 429 | The key made too many requests. Wait for the number of seconds in |
| 500 | Something went wrong on our side. Retry the request with backoff. If it keeps failing, give support the |
| 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
curl -sS "https://api.cubecen.com/v1/organizations/<org>/projects/<project>/applications/<cube>/repository-tree" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"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
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "ref must be a branch, a tag or a commit SHA",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736",
"field": "ref"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Permission denied",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "REPOSITORY_NOT_ACCESSIBLE",
"message": "The GitHub installation cannot access this repository",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736",
"field": "repository"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests with this API key; try again shortly",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An internal error occurred",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "GITHUB_UNAVAILABLE",
"message": "GitHub is temporarily unavailable; retry the same request",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "GITHUB_RATE_LIMITED",
"message": "GitHub's rate limit was reached. Try again in about a minute",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}