Projects
A project groups related cubes, such as a web app and its API. Every cube lives in one project, and paths name the project by its slug or its ID.
Endpoints
/ v1/ organizations/ {org}/ projectsPOSTCreate a project/ v1/ organizations/ {org}/ projectsGETGet a project/ v1/ organizations/ {org}/ projects/ {project}PATCHUpdate a project/ v1/ organizations/ {org}/ projects/ {project}DELETEDelete a project/ v1/ organizations/ {org}/ projects/ {project}Organizations made at sign-in have a project with the slug default. An older organization may not: its default project is the one default_project_id names in GET /v1/organizations/<org>. To see every project and its slug, list them.
Creating a cube usually takes two steps: list the projects to find the slug of the one you want, then create the cube in it. Deleting a project deletes every cube in it, so check what it holds first.
List projects
/ v1/ organizations/ {org}/ projectsReturns the projects of an organization, a page at a time.
Use it to find the id or slug of a project: other requests take either one in their paths. Projects come oldest first. Pass q to keep the projects whose name or slug contains some text, and sort to change the order.
The answer holds up to limit projects in items. When there are more, it also holds next_cursor: send it back as cursor, with the same q and sort, to get the next page. The last page has no next_cursor.
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 projects 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 projects whose name or slug contains this text, ignoring case. At most 200 bytes: a character outside plain ASCII takes more than one. |
sort | string | The order of the list. |
Responses
| Status | Description |
|---|---|
| 200 | One page of projects, oldest first unless ProjectPage object2 fieldsitemsarray of objectrequiredThe projects on this page. items items10 fieldsidstringrequiredThe project's ID. organization_idstringrequiredThe ID of the organization the project belongs to. namestringrequiredThe project's name. slugstringrequiredA short, unique name made of lowercase letters, digits and hyphens. Paths accept it in place of the ID. descriptionstringrequiredWhat the project is for, in free text. Empty when none was given. created_bystringrequiredThe ID of the user who created the project. created_atstringrequiredWhen the project was created. updated_atstringrequiredWhen the project was last changed. application_countintegerrequiredHow many cubes the project has, whether they are still being created, running or failed. last_release_atstring | nullrequiredWhen the newest release of any of its cubes started. 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" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"items": [
{
"id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
"organization_id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
"name": "Storefront",
"slug": "storefront",
"description": "The web shop and its API",
"created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
"created_at": "2026-09-14T08:30:12Z",
"updated_at": "2026-10-02T16:45:03Z",
"application_count": 2,
"last_release_at": "2026-10-24T09:12:40Z"
},
{
"id": "e8a41f6b-3d52-4c90-b7a8-5f2c1e90d6a3",
"organization_id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
"name": "Internal tools",
"slug": "internal-tools",
"description": "",
"created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
"created_at": "2026-10-01T10:02:51Z",
"updated_at": "2026-10-01T10:02:51Z",
"application_count": 0,
"last_release_at": null
}
],
"next_cursor": "hStrUFj7kOGKtz4Oq66cc3SuxqbPS3yN_paJdMns"
}{
"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 project
/ v1/ organizations/ {org}/ projectsCreates a project in the organization. A project groups cubes: every cube lives in one project. It needs a key with full access.
Send a name and a slug. Paths can name the project by its slug, so the slug must be unique among the organization's projects. It is made of lowercase letters, digits and single hyphens, up to 80 characters, and it cannot be an ID. A few slugs are reserved and refused: projects, activity, integrations, members, alerts, usage, settings and new. description is optional.
The answer is 201 Created with the project, which has no cubes yet. A slug that another project of the organization already has is refused with 409.
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 |
Body
| Name | Type | Description |
|---|---|---|
namerequired | string | The project's name: 1 to 120 characters, with no space at the start or the end and no control characters. |
slugrequired | string | The project's slug: lowercase letters, digits and single hyphens, such as |
description | string | What the project is for, in free text, up to 4000 characters. Empty when left out. |
Responses
| Status | Description |
|---|---|
| 201 | The project was created. It has no cubes yet. Project object10 fieldsidstringrequiredThe project's ID. organization_idstringrequiredThe ID of the organization the project belongs to. namestringrequiredThe project's name. slugstringrequiredA short, unique name made of lowercase letters, digits and hyphens. Paths accept it in place of the ID. descriptionstringrequiredWhat the project is for, in free text. Empty when none was given. created_bystringrequiredThe ID of the user who created the project. created_atstringrequiredWhen the project was created. updated_atstringrequiredWhen the project was last changed. application_countintegerrequiredHow many cubes the project has, whether they are still being created, running or failed. last_release_atstring | nullrequiredWhen the newest release of any of its cubes started. |
| 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 |
| 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 POST "https://api.cubecen.com/v1/organizations/<org>/projects" \
-H "Authorization: Bearer $CUBECEN_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "Storefront",
"slug": "storefront",
"description": "The web shop and its API"
}'{
"id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
"organization_id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
"name": "Storefront",
"slug": "storefront",
"description": "The web shop and its API",
"created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
"created_at": "2026-10-25T09:12:40Z",
"updated_at": "2026-10-25T09:12:40Z",
"application_count": 0,
"last_release_at": null
}{
"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": "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"
}
}Get a project
/ v1/ organizations/ {org}/ projects/ {project}Returns one project: its name, slug and description, how many cubes it has, and when the newest release of any of them started.
Use it to read a project by the id or slug that you have, or to check a project after updateProject. The cubes of the project are listed at /v1/organizations/{organizationId}/projects/{projectId}/applications.
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. |
Responses
| Status | Description |
|---|---|
| 200 | The project. Project object10 fieldsidstringrequiredThe project's ID. organization_idstringrequiredThe ID of the organization the project belongs to. namestringrequiredThe project's name. slugstringrequiredA short, unique name made of lowercase letters, digits and hyphens. Paths accept it in place of the ID. descriptionstringrequiredWhat the project is for, in free text. Empty when none was given. created_bystringrequiredThe ID of the user who created the project. created_atstringrequiredWhen the project was created. updated_atstringrequiredWhen the project was last changed. application_countintegerrequiredHow many cubes the project has, whether they are still being created, running or failed. last_release_atstring | nullrequiredWhen the newest release of any of its cubes started. |
| 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>" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
"organization_id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
"name": "Storefront",
"slug": "storefront",
"description": "The web shop and its API",
"created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
"created_at": "2026-09-14T08:30:12Z",
"updated_at": "2026-10-02T16:45:03Z",
"application_count": 2,
"last_release_at": "2026-10-24T09:12:40Z"
}{
"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 project
/ v1/ organizations/ {org}/ projects/ {project}Changes a project's name, slug or description. 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. Send "description": null to clear the description. name and slug cannot be null. The rules for each field are those of createProject.
Changing the slug changes the project's address: paths that name the project by its old slug stop working, so use the id in paths that you keep. The IDs of the project and of its cubes do not change. The old slug is free for another project afterwards.
The answer is the project 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. |
Body
| Name | Type | Description |
|---|---|---|
name | string | The project's new name. The rules are those of |
slug | string | The project's new slug. The rules are those of |
description | string | null | The project's new description, up to 4000 characters. |
Responses
| Status | Description |
|---|---|
| 200 | The project, with the changes. Project object10 fieldsidstringrequiredThe project's ID. organization_idstringrequiredThe ID of the organization the project belongs to. namestringrequiredThe project's name. slugstringrequiredA short, unique name made of lowercase letters, digits and hyphens. Paths accept it in place of the ID. descriptionstringrequiredWhat the project is for, in free text. Empty when none was given. created_bystringrequiredThe ID of the user who created the project. created_atstringrequiredWhen the project was created. updated_atstringrequiredWhen the project was last changed. application_countintegerrequiredHow many cubes the project has, whether they are still being created, running or failed. last_release_atstring | nullrequiredWhen the newest release of any of its cubes started. |
| 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 |
| 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>" \
-H "Authorization: Bearer $CUBECEN_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"name": "Web shop", "description": "The web shop and its API"}'{
"id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
"organization_id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
"name": "Web shop",
"slug": "storefront",
"description": "The web shop and its API",
"created_by": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
"created_at": "2026-09-14T08:30:12Z",
"updated_at": "2026-10-25T09:20:31Z",
"application_count": 2,
"last_release_at": "2026-10-24T09:12:40Z"
}{
"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": "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 project
/ v1/ organizations/ {org}/ projects/ {project}Deletes a project and every cube in it. It needs a key with full access. This cannot be undone.
The request answers 204 once the project is deleted, with no body. Its cubes are deleted with it, and the platform then takes down what they were running. The project's slug can be used again. If the project was the organization's default project, the organization has no default project afterwards.
Check what the project holds before you delete it: its cubes are listed at /v1/organizations/{organizationId}/projects/{projectId}/applications.
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. |
Responses
| Status | Description |
|---|---|
| 204 | The project and its cubes were deleted. 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>" \
-H "Authorization: Bearer $CUBECEN_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"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"
}
}