API reference
Every endpoint of the Cubecen API, grouped by resource.
Basics
- Base URL
- https://api.cubecen.com
- Key
- Authorization: Bearer $CUBECEN_API_KEY
Organization
Who your key acts as, your organization, and its plan and usage.
/ 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}/ summaryProjects
Projects group the cubes of an organization.
Databases
Create Postgres databases in a project, connect cubes to them, and read their usage.
Paths start with/
/ databasesPOSTCreate a database/ databasesGETGet a database/ databases/ {database-id}PATCHRename a database/ databases/ {database-id}DELETEDelete a database/ databases/ {database-id}GETGet the connection of a database/ databases/ {database-id}/ connectionPOSTReset the password of a database/ databases/ {database-id}/ reset-passwordCubes
Create, change and delete cubes, the apps you deploy from a repository.
Paths start with/
/ projects/ {project}/ applicationsPOSTCreate a cube/ projects/ {project}/ applicationsGETList the cubes of an organization/ applicationsGETGet a cube/ projects/ {project}/ applications/ {cube}PATCHUpdate a cube/ projects/ {project}/ applications/ {cube}DELETEDelete a cube/ projects/ {project}/ applications/ {cube}GETList the folders of a cube's repository/ projects/ {project}/ applications/ {cube}/ repository-treeBuilds
Start a build to deploy a commit, follow it, or cancel it.
Paths start with/
/ buildsPOSTStart a build/ buildsGETGet a build/ builds/ {build-id}POSTCancel a build/ builds/ {build-id}/ cancelDeployments
Deploy a build again or roll back to an earlier one, and follow the deployment.
Paths start with/
/ deploymentsPOSTDeploy a build again or roll back/ deploymentsGETGet a deployment/ deployments/ {deployment-id}POSTCancel a deployment/ deployments/ {deployment-id}/ cancelReleases
The history of a cube: its builds, deploys, redeploys and rollbacks.
Paths start with/
/ releasesGETGet a release/ releases/ {release-id}Logs and metrics
Build, deployment and runtime logs, and a cube's metrics.
Paths start with/
/ builds/ {build-id}/ logsGETStream the logs of a deployment/ deployments/ {deployment-id}/ logsGETStream the logs of a cube/ logsGETGet the metrics of a cube/ metricsEnvironment
A cube's variables and secrets, their versions, and restoring an earlier one.
Paths start with/
/ envPATCHChange the variables and secrets of a cube/ envGETList the versions of the variables of a cube/ env/ versionsGETCompare two versions of the variables of a cube/ env/ diffPOSTBring back an earlier version of the variables/ env/ restoreDomains
Add custom domains to a cube and check their DNS records.
Paths start with/
/ domainsPOSTAdd a custom domain to a cube/ domainsGETGet a custom domain/ domains/ {domain-id}DELETERemove a custom domain from a cube/ domains/ {domain-id}POSTCheck a custom domain now/ domains/ {domain-id}/ checkPOSTMove a custom domain to the current connection/ domains/ {domain-id}/ reconnectPreviews
Previews of a cube built from its open pull requests, and their settings and logs.
Paths start with/
/ previewsGETGet the preview settings of a cube/ previews/ settingsPUTTurn previews on or off for a cube/ previews/ settingsGETGet a preview/ previews/ {preview-id}DELETERemove a preview/ previews/ {preview-id}POSTBuild a preview again/ previews/ {preview-id}/ redeployGETStream the logs of a preview/ previews/ {preview-id}/ logsGETStream the logs of a preview build/ previews/ {preview-id}/ builds/ {build-id}/ logsGETStream the logs of a preview deployment/ previews/ {preview-id}/ deployments/ {deployment-id}/ logsGitHub
The GitHub connections and repositories you can create cubes from.
Paths start with/
/ installationsGETList the repositories of an installation/ installations/ {installation-id}/ repositoriesGETList the repositories of all installations/ repositoriesGETLook up a public repository/ public-repositoryGETList the folders of a repository/ repository-tree