The Cubecen API lets you deploy and manage cubes from your own scripts, CI jobs and programs. It does from code what the dashboard does for a cube: create it, build and deploy it, follow a release and roll back.
The base URL is https://api.cubecen.com. Requests and answers are JSON. Every request carries an API key in the Authorization header.
What the dashboard calls a cube, the API calls an application. Paths and field names say applications and application_id; these pages say cube.
Where to start
- Quickstart: make a key, create a cube, start a build and follow it until it's live.
- Authentication: what an API key is, and what it can and can't do.
- Requests: the rules every request follows, such as paths, pages and idempotency keys.
- Errors: the shape of an error, and what to do about each code.
- Rate limits: how many requests a key may make.
The API reference
The reference lists every endpoint with its parameters, answers and examples. It has one page for each group:
- Organization: who your key acts as, and your organization's plan and usage.
- Projects: the projects that group your cubes.
- Databases: Postgres databases next to your cubes, and how cubes connect to them.
- Cubes: create, change and delete cubes.
- Builds: start a build to deploy a commit, follow it, or cancel it.
- Deployments: redeploy or roll back to an earlier build.
- Releases: the history of a cube's builds and deployments.
- Logs and metrics: the logs of builds, deployments and running cubes, and a cube's metrics.
- Environment: a cube's variables and secrets, their versions, and restoring an earlier one.
- Domains: add custom domains to a cube and check their DNS records.
- Previews: previews of a cube's open pull requests, and their settings.
- GitHub: the GitHub connections and repositories you can create cubes from.
Each page is also available as Markdown: add .md to its address.
The same API description is served as OpenAPI, for tools that read it.