Organization
These endpoints say who your key acts as and what your organization is on. A key belongs to one organization, so there is only one to look at. Paths name it by its ID or by its slug.
Endpoints
/ v1/ users/ meGETList organizations/ v1/ organizationsGETGet an organization/ v1/ organizations/ {org}GETGet the plan of an organization/ v1/ organizations/ {org}/ planGETGet the usage of an organization/ v1/ organizations/ {org}/ usageGETGet a summary of an organization/ v1/ organizations/ {org}/ summaryStart with GET /v1/users/me to check that a key works: it answers with the person the key acts as. GET /v1/organizations lists the key's organization, which is the quickest way to find its slug. The plan and usage endpoints show what the organization may use and what it has used, so a script can check for room before it creates a cube or starts a build.
curl -sS "https://api.cubecen.com/v1/organizations/<org>/plan" \
-H "Authorization: Bearer $CUBECEN_API_KEY"Get the current user
/ v1/ users/ meReturns the person the API key acts as: the key's owner.
Use it to check that a key works, and to see who the builds and changes made with it are credited to. The id is the one that created_by shows on builds, deployments and projects.
A key acts with its owner's role in its organization. If the owner has left the organization, or can no longer read it, the request is refused.
Responses
| Status | Description |
|---|---|
| 200 | The user the key acts as. User object6 fieldsidstringrequiredThe user's ID. It is the emailstringrequiredThe user's email address. email_verifiedbooleanrequired
first_namestring | nullrequiredThe user's first name. last_namestring | nullrequiredThe user's last name. avatar_urlstring | nullrequiredThe address of the user's profile picture. |
| 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. |
| 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/users/me" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"id": "c41e7a02-93bd-4d58-b0f6-6a1d2e8f4c73",
"email": "ada@example.com",
"email_verified": true,
"first_name": "Ada",
"last_name": "Lovelace",
"avatar_url": null
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Access denied",
"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": "Service temporarily unavailable",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}List organizations
/ v1/ organizationsReturns the organizations the API key can act in.
A key belongs to one organization, so the list holds that organization and no other, whatever others its owner belongs to. Use it to find the id and slug of the key's organization: paths take either one as {organizationId}.
The answer is a page, with data and after. A key lists one organization, so after is always null and the first page is the only page. limit and after are still checked, and a value that is not valid is refused with 400.
Query parameters
| Name | Type | Description |
|---|---|---|
limit | integer | The most organizations to return in a page, from 1 to 100. The default is 25. |
after | string | Where the next page starts: an opaque value of at most 512 characters. Send the |
Responses
| Status | Description |
|---|---|
| 200 | A page with the key's organization. OrganizationPage object2 fieldsdataarray of objectrequiredThe organizations on this page. data items7 fieldsidstringrequiredThe organization's ID. namestringrequiredThe organization's name. slugstringrequiredA short, unique name for the organization. Paths accept it in place of the ID. statusstringrequiredThe organization's state. It is always One of: default_project_idstring | nullrequiredThe ID of the organization's default project: the one that new cubes are put in by default. created_atstringrequiredWhen the organization was created. updated_atstringrequiredWhen the organization was last changed. afterstring | nullrequiredSend 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. |
| 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" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"data": [
{
"id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
"name": "Acme",
"slug": "acme",
"status": "active",
"default_project_id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
"created_at": "2026-09-14T08:25:41Z",
"updated_at": "2026-09-14T08:30:12Z"
}
],
"after": null
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Access denied",
"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": "Service temporarily unavailable",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}Get an organization
/ v1/ organizations/ {org}Returns an organization: its name, slug, default project and dates.
A key can read only its own 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.
default_project_id is the project that new cubes go to by default. It is null when the organization has none.
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 |
Responses
| Status | Description |
|---|---|
| 200 | The organization. Organization object7 fieldsidstringrequiredThe organization's ID. namestringrequiredThe organization's name. slugstringrequiredA short, unique name for the organization. Paths accept it in place of the ID. statusstringrequiredThe organization's state. It is always One of: default_project_idstring | nullrequiredThe ID of the organization's default project: the one that new cubes are put in by default. created_atstringrequiredWhen the organization was created. updated_atstringrequiredWhen the organization 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>" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"id": "5d0f3a8c-2b19-4e7d-a6c4-1f8e9b027d35",
"name": "Acme",
"slug": "acme",
"status": "active",
"default_project_id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
"created_at": "2026-09-14T08:25:41Z",
"updated_at": "2026-09-14T08:30:12Z"
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Access denied",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "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": "Service temporarily unavailable",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
}Get the plan of an organization
/ v1/ organizations/ {org}/ planReturns the plan the organization is on, what the plan allows, and what the organization has used so far.
Use it before you create a cube or start a build, to see how much room is left, or to warn when a limit is close. plan names the plan and the period that its build minutes and bandwidth count in. limits holds what the plan allows, and a limit of null has no ceiling. usage holds what the organization has used. over_limit lists the limits it has passed, and near_limit the ones that are at least 80 percent used but not yet used up. sizes lists the sizes a cube can have.
When plan.overage is false, as on the Free plan, builds stop once the period's build minutes are used up, and the cubes are paused once its bandwidth is used up. suspension is set while they are paused. A cube is not stopped for passing the count of cubes or previews: what already runs keeps running, and no more can be made.
For the use of each day and of each cube, see getOrganizationUsage.
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 |
Responses
| Status | Description |
|---|---|
| 200 | The plan, its limits and what the organization has used. OrganizationPlan object7 fieldsplanobjectrequiredThe plan the organization is on. plan object6 fieldsidstringrequiredThe plan's ID: One of: namestringrequiredThe plan's name, such as overagebooleanrequired
trialbooleanrequired
period_startstringrequiredWhen the current period starts. Build minutes and bandwidth are counted per period: a calendar month in UTC, or the billing period on a paid plan. period_endstringrequiredWhen the current period ends. The next period starts then. limitsobjectrequiredWhat the plan allows. limits object9 fieldscubesinteger | nullrequiredThe most cubes that the organization can have. memory_mib_per_cubeintegerrequiredThe most memory that a cube can have, in MiB. previewsinteger | nullrequiredThe most previews that can be open at once. build_minutesinteger | nullrequiredThe build minutes that the plan includes in each period. bandwidth_gbinteger | nullrequiredThe bandwidth that the plan includes in each period, in GB of 10^9 bytes. metrics_retention_daysintegerrequiredHow many days the metrics of a cube are kept. logs_retention_daysintegerrequiredHow many days the logs of a cube are kept. databasesobjectrequiredWhat the plan allows for databases. All zero on a plan without databases, such as Free. databases object5 fieldscountintegerrequiredThe most databases that the organization can have. max_cunumberrequiredThe most compute each database can scale up to, in compute units: 1 unit is 1 vCPU and 4 GiB of memory. storage_gbintegerrequiredThe storage of each database, in GB of 10^9 bytes. compute_hoursintegerrequiredThe compute each database can use in a calendar month (UTC), in compute-unit hours. transfer_gbintegerrequiredThe data transfer of each database in a calendar month, in GB. sizestringrequiredThe largest size that a cube can have on this plan, for its memory: One of: usageobjectrequiredWhat the organization has used. usage object6 fieldscubesintegerrequiredHow many cubes the organization has. previewsintegerrequiredHow many previews are open. build_minutesinteger | nullrequiredThe build minutes used in the current period, counting a started minute as a whole one. bandwidth_bytesinteger | nullrequiredThe bytes of responses served in the current period. as_ofstringrequiredWhen this answer was made. databasesintegerrequiredHow many databases the organization has. One that is being deleted counts until its deletion ends. over_limitarray of stringrequiredThe limits that the organization has passed: sizesarray of objectrequiredThe sizes that a cube can have, smallest first. A plan allows the sizes up to sizes items5 fieldssizestringrequiredThe size's ID: One of: namestringrequiredThe size's name. One of: memory_mibintegerrequiredThe memory that a cube of this size is limited to, in MiB. cpunumberrequiredThe most CPU that a cube of this size can use, in cores. availablebooleanrequired
near_limitarray of stringrequiredThe limits that are at least 80 percent used but not yet used up: suspensionobject | nullrequiredWhy the organization's cubes are paused, while they are. |
| 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>/plan" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"plan": {
"id": "free",
"name": "Free",
"overage": false,
"trial": false,
"period_start": "2026-10-01T00:00:00Z",
"period_end": "2026-11-01T00:00:00Z"
},
"limits": {
"cubes": 3,
"memory_mib_per_cube": 2048,
"previews": 0,
"build_minutes": 300,
"bandwidth_gb": 10,
"metrics_retention_days": 30,
"logs_retention_days": 7,
"size": "small",
"databases": {
"count": 0,
"max_cu": 0,
"storage_gb": 0,
"compute_hours": 0,
"transfer_gb": 0
}
},
"sizes": [
{
"size": "small",
"name": "Small",
"memory_mib": 2048,
"cpu": 0.5,
"available": true
},
{
"size": "medium",
"name": "Medium",
"memory_mib": 4096,
"cpu": 1,
"available": true
},
{
"size": "large",
"name": "Large",
"memory_mib": 8192,
"cpu": 2,
"available": false
},
{
"size": "xlarge",
"name": "XLarge",
"memory_mib": 16384,
"cpu": 4,
"available": false
}
],
"usage": {
"cubes": 2,
"previews": 0,
"build_minutes": 42,
"bandwidth_bytes": 1834000,
"as_of": "2026-10-25T09:30:00Z",
"databases": 0
},
"over_limit": [],
"near_limit": [],
"suspension": null
}{
"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 the usage of an organization
/ v1/ organizations/ {org}/ usageReturns what the organization used over a range of days: build minutes, bandwidth, the hours its cubes ran and the requests they answered.
Without from and to, the range is the current month. The answer holds the totals of the range, the use of each day in days, and the use of each cube in cubes. A day without any use is left out of days.
Days are UTC days. to is not counted, and the range can be at most 93 days. Usage is collected about every 15 minutes, not as it happens: as_of says when it was last collected, so the latest minutes can be missing.
The amounts the plan counts against its limits are in getOrganizationPlan.
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 |
|---|---|---|
from | string | The first day to count, as a UTC date: |
to | string | The day to stop at, as a UTC date: |
Responses
| Status | Description |
|---|---|
| 200 | The use of the range, in total, by day and by cube. OrganizationUsage object8 fieldsfromstringrequiredThe first day counted. tostringrequiredThe day the range stops at. This day is not counted. as_ofstring | nullrequiredWhen the usage was last collected. totalsobjectrequiredThe use of the whole range. totals object4 fieldsbuild_minutesintegerrequiredMinutes spent building, rounded up to a whole minute. Every figure is rounded on its own, so days and cubes may not add up to the total. bandwidth_bytesintegerrequiredBytes of responses served. instance_hoursnumberrequiredHours that the instances of the cubes ran, rounded down to two decimals. requestsintegerrequiredRequests answered. instance_hours_by_sizeobjectrequiredThe instance hours of instance_hours_by_size object4 fieldssmallnumberrequiredInstance hours of cubes of size mediumnumberrequiredInstance hours of cubes of size largenumberrequiredInstance hours of cubes of size xlargenumberrequiredInstance hours of cubes of size daysarray of objectrequiredThe use of each UTC day that has any, oldest first. A day without use is left out. days items5 fieldsbuild_minutesintegerrequiredMinutes spent building that day, rounded up to a whole minute. bandwidth_bytesintegerrequiredBytes of responses served that day. instance_hoursnumberrequiredHours that the instances of the cubes ran that day, rounded down to two decimals. requestsintegerrequiredRequests answered that day. daystringrequiredThe day, as a date. cubesarray of objectrequiredThe use of each cube in the range, by name. A cube that was deleted is listed while it has use in the range. cubes items10 fieldsbuild_minutesintegerrequiredMinutes spent building the cube, rounded up to a whole minute. bandwidth_bytesintegerrequiredBytes of responses served by the cube. instance_hoursnumberrequiredHours that the instances of the cube ran, rounded down to two decimals. requestsintegerrequiredRequests that the cube answered. application_idstringrequiredThe cube's ID. project_idstringrequiredThe ID of the project the cube is in. namestringrequiredThe cube's name. slugstringrequiredThe cube's slug. deletedbooleanrequired
previewsobjectrequiredThe part of the cube's use that its previews made. It is included in the figures above. previews object4 fieldsbuild_minutesintegerrequiredMinutes spent building, rounded up to a whole minute. Every figure is rounded on its own, so days and cubes may not add up to the total. bandwidth_bytesintegerrequiredBytes of responses served. instance_hoursnumberrequiredHours that the instances of the cubes ran, rounded down to two decimals. requestsintegerrequiredRequests answered. databasesarray of object | nullThe use of each database in the range. A database that was deleted is listed while it has use in the range. |
| 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>/usage" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"from": "2026-10-01",
"to": "2026-11-01",
"as_of": "2026-10-25T09:30:00Z",
"totals": {
"build_minutes": 42,
"bandwidth_bytes": 1834000,
"instance_hours": 57.5,
"requests": 4810
},
"instance_hours_by_size": {
"small": 57.5,
"medium": 0,
"large": 0,
"xlarge": 0
},
"days": [
{
"day": "2026-10-23",
"build_minutes": 12,
"bandwidth_bytes": 600000,
"instance_hours": 24,
"requests": 1500
},
{
"day": "2026-10-24",
"build_minutes": 30,
"bandwidth_bytes": 900000,
"instance_hours": 24,
"requests": 2300
},
{
"day": "2026-10-25",
"build_minutes": 0,
"bandwidth_bytes": 334000,
"instance_hours": 9.5,
"requests": 1010
}
],
"cubes": [
{
"application_id": "b64f2a19-0c83-4d7e-9a15-e2d83c7f5a40",
"project_id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
"name": "api",
"slug": "api",
"deleted": false,
"build_minutes": 12,
"bandwidth_bytes": 500000,
"instance_hours": 24,
"requests": 1000,
"previews": {
"build_minutes": 0,
"bandwidth_bytes": 0,
"instance_hours": 0,
"requests": 0
}
},
{
"application_id": "f1a83d52-6e07-4b9c-8d34-7a0c9e215b68",
"project_id": "9b2c5d1e-7a34-4f6b-8e21-3c0d5a9f1b47",
"name": "web",
"slug": "web",
"deleted": false,
"build_minutes": 30,
"bandwidth_bytes": 1334000,
"instance_hours": 33.5,
"requests": 3810,
"previews": {
"build_minutes": 0,
"bandwidth_bytes": 0,
"instance_hours": 0,
"requests": 0
}
}
]
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "from and to are UTC days (YYYY-MM-DD), from before to, at most 93 days apart",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736",
"field": "from"
}
}{
"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 summary of an organization
/ v1/ organizations/ {org}/ summaryReturns counts for the organization: its projects, its cubes by state, the releases in progress and the connected GitHub installations.
Use it for a quick look at an organization without listing everything in it. applications counts the cubes that still exist: active cubes are ready, creating cubes are still being set up, and failed cubes could not be set up. live counts the cubes that have a deployment serving traffic. releases_in_progress counts the cubes that have a build or a deployment running now.
members and pending_invitations are always null for an API key: a key cannot see the people of an organization.
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 |
Responses
| Status | Description |
|---|---|
| 200 | The counts. OrganizationSummary object6 fieldsprojectsintegerrequiredHow many projects the organization has. applicationsobjectrequiredHow many cubes the organization has, by state. applications object5 fieldstotalintegerrequiredHow many cubes still exist. activeintegerrequiredHow many cubes are ready. creatingintegerrequiredHow many cubes are still being set up. failedintegerrequiredHow many cubes could not be set up. liveintegerrequiredHow many cubes have a deployment serving traffic. releases_in_progressintegerrequiredHow many cubes have a build or a deployment running now. github_installationsintegerrequiredHow many GitHub installations are connected. membersinteger | nullrequiredHow many members the organization has. Always pending_invitationsinteger | nullrequiredHow many invitations are waiting to be accepted. Always |
| 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>/summary" \
-H "Authorization: Bearer $CUBECEN_API_KEY"{
"projects": 2,
"applications": {
"total": 5,
"active": 4,
"creating": 0,
"failed": 1,
"live": 3
},
"releases_in_progress": 1,
"github_installations": 1,
"members": null,
"pending_invitations": null
}{
"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"
}
}