Skip to content
API referenceb037b65 · docs(api): projects

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

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

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

Returns 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

NameTypeDescription
orgrequiredstring

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

Query parameters

NameTypeDescription
limitinteger

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

cursorstring

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

qstring

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.

sortstring

The order of the list. name is A to Z, created is newest first and updated is newest change first. Without sort, projects come oldest first.

Responses

StatusDescription
200

One page of projects, oldest first unless sort says otherwise.

ProjectPage object2 fields
itemsarray of objectrequired

The projects on this page.

items items10 fields
idstringrequired

The project's ID.

organization_idstringrequired

The ID of the organization the project belongs to.

namestringrequired

The project's name.

slugstringrequired

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

descriptionstringrequired

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

created_bystringrequired

The ID of the user who created the project.

created_atstringrequired

When the project was created.

updated_atstringrequired

When the project was last changed.

application_countintegerrequired

How many cubes the project has, whether they are still being created, running or failed.

last_release_atstring | nullrequired

When the newest release of any of its cubes started. null before the first release.

next_cursorstring

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

400

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

401

The API key is missing, unknown, expired or revoked.

403

The key may not do this. Its access level or its owner's role does not allow it, or the organization is not the key's.

404

Nothing was found at this address. An organization ID that matches no organization is 404, and so is a project, cube or other ID or slug in the path that matches nothing in the organization (or in the project or cube that the path names). An organization slug that matches nothing, and another organization by ID or by slug, is 403, not 404.

429

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

500

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

503

The service is temporarily unavailable. Retry the same request with backoff: wait a little longer after each failed attempt. The error code can differ from the one shown.

Example

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

Create a project

POST/v1/organizations/{org}/projects

Creates 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

NameTypeDescription
orgrequiredstring

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

Body

NameTypeDescription
namerequiredstring

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

slugrequiredstring

The project's slug: lowercase letters, digits and single hyphens, such as my-shop, up to 80 characters. It must not be an ID, nor one of the reserved slugs, and no other project of the organization may have it.

descriptionstring

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

Responses

StatusDescription
201

The project was created. It has no cubes yet.

Project object10 fields
idstringrequired

The project's ID.

organization_idstringrequired

The ID of the organization the project belongs to.

namestringrequired

The project's name.

slugstringrequired

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

descriptionstringrequired

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

created_bystringrequired

The ID of the user who created the project.

created_atstringrequired

When the project was created.

updated_atstringrequired

When the project was last changed.

application_countintegerrequired

How many cubes the project has, whether they are still being created, running or failed.

last_release_atstring | nullrequired

When the newest release of any of its cubes started. null before the first release.

400

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

401

The API key is missing, unknown, expired or revoked.

403

The key may not do this. Its access level or its owner's role does not allow it, or the organization is not the key's.

404

Nothing was found at this address. An organization ID that matches no organization is 404, and so is a project, cube or other ID or slug in the path that matches nothing in the organization (or in the project or cube that the path names). An organization slug that matches nothing, and another organization by ID or by slug, is 403, not 404.

409

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

413

The request body is larger than 1 MiB.

415

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

429

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

500

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

503

The service is temporarily unavailable. Retry the same request with backoff: wait a little longer after each failed attempt. The error code can differ from the one shown.

Example

Shell
curl -sS -X 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"
     }'
Response
{
  "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
}

Get a project

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

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

NameTypeDescription
orgrequiredstring

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

projectrequiredstring

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

Responses

StatusDescription
200

The project.

Project object10 fields
idstringrequired

The project's ID.

organization_idstringrequired

The ID of the organization the project belongs to.

namestringrequired

The project's name.

slugstringrequired

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

descriptionstringrequired

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

created_bystringrequired

The ID of the user who created the project.

created_atstringrequired

When the project was created.

updated_atstringrequired

When the project was last changed.

application_countintegerrequired

How many cubes the project has, whether they are still being created, running or failed.

last_release_atstring | nullrequired

When the newest release of any of its cubes started. null before the first release.

401

The API key is missing, unknown, expired or revoked.

403

The key may not do this. Its access level or its owner's role does not allow it, or the organization is not the key's.

404

Nothing was found at this address. An organization ID that matches no organization is 404, and so is a project, cube or other ID or slug in the path that matches nothing in the organization (or in the project or cube that the path names). An organization slug that matches nothing, and another organization by ID or by slug, is 403, not 404.

429

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

500

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

503

The service is temporarily unavailable. Retry the same request with backoff: wait a little longer after each failed attempt. The error code can differ from the one shown.

Example

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

Update a project

PATCH/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

NameTypeDescription
orgrequiredstring

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

projectrequiredstring

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

Body

NameTypeDescription
namestring

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

slugstring

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

descriptionstring | null

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

Responses

StatusDescription
200

The project, with the changes.

Project object10 fields
idstringrequired

The project's ID.

organization_idstringrequired

The ID of the organization the project belongs to.

namestringrequired

The project's name.

slugstringrequired

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

descriptionstringrequired

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

created_bystringrequired

The ID of the user who created the project.

created_atstringrequired

When the project was created.

updated_atstringrequired

When the project was last changed.

application_countintegerrequired

How many cubes the project has, whether they are still being created, running or failed.

last_release_atstring | nullrequired

When the newest release of any of its cubes started. null before the first release.

400

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

401

The API key is missing, unknown, expired or revoked.

403

The key may not do this. Its access level or its owner's role does not allow it, or the organization is not the key's.

404

Nothing was found at this address. An organization ID that matches no organization is 404, and so is a project, cube or other ID or slug in the path that matches nothing in the organization (or in the project or cube that the path names). An organization slug that matches nothing, and another organization by ID or by slug, is 403, not 404.

409

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

413

The request body is larger than 1 MiB.

415

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

429

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

500

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

503

The service is temporarily unavailable. Retry the same request with backoff: wait a little longer after each failed attempt. The error code can differ from the one shown.

Example

Shell
curl -sS -X PATCH "https://api.cubecen.com/v1/organizations/<org>/projects/<project>" \
  -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"}'
Response
{
  "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"
}

Delete a project

DELETE/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

NameTypeDescription
orgrequiredstring

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

projectrequiredstring

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

Responses

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

429

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

500

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

503

The service is temporarily unavailable. Retry the same request with backoff: wait a little longer after each failed attempt. The error code can differ from the one shown.

Example

Shell
curl -sS -X DELETE "https://api.cubecen.com/v1/organizations/<org>/projects/<project>" \
  -H "Authorization: Bearer $CUBECEN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
Response
{
  "error": {
    "code": "UNAUTHENTICATED",
    "message": "Authentication required",
    "requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
  }
}