Control Plane API is only available in Cube Cloud.
Prerequisites
Authentication
Control Plane API uses API key authentication. Include your API key in theAuthorization header with the Bearer prefix:
Error handling
In case of an error, Control Plane API returns a JSON object with anerror property:
Pagination
Endpoints that return lists support pagination usingoffset and limit query
parameters:
Paginated responses include a
pagination object:
Reference
/api/v1/deployments
Send a GET request to list all deployments accessible to the authenticated user.
Query parameters:
Example request:
/api/v1/deployments/{deployment_id}/environments
Send a GET request to list environments for a specific deployment.
Path parameters:
Query parameters:
Example request:
/api/v1/deployments/{deployment_id}/environments/{environment_id}/tokens-for-meta-sync
Send a POST request to create a JWT token for accessing the
Metadata API. The generated token is scoped specifically
to metadata endpoints (e.g., /v1/data-sources, /v1/entities) and cannot
be used to query data via the REST (JSON) API. This makes it suitable
for integrations such as data catalogs and lineage tools that only need to
read data model metadata.
The security context you provide is embedded in the
token and controls which parts of the data model are visible, following the
same multi-tenancy rules as regular API tokens.
Path parameters:
Request body:
Example request:
/build/api/v1/deployments/{deployment_id}/branches/staging-environment
Send a PUT request to enable or disable a branch, i.e. to control whether its
staging environment stays always active. Disabled
(the default), a staging environment is only active while the branch is viewed
in the Cube UI; enabled, it remains active and accessible regardless of user
activity, and it is reported by
/api/v1/deployments/{deployment_id}/environments
as a staging environment.
Only shared branches can be enabled — personal development branches and the
production branch are rejected.
Note the
/build prefix: data model and branch endpoints are served by the
build API.
Body parameters:
Example request:
cube data-model enable-branch / cube data-model disable-branch.
/api/v1/audit-logs/export
Send a GET request to export audit log events as a CSV
file. This endpoint allows you to programmatically retrieve security-related
events for compliance reviews, external log aggregation, or integration with
SIEM tools.
Requires Audit Log to be enabled on the
Enterprise plan. The authenticated user
must have the
AuditLogManage permission.
The response is a CSV file streamed as an attachment.
Example request: