Authorization header with every request:
Get a personal access token
You create personal access tokens in the Secrets section of your workspace settings, and choose what each token can reach and do. See Creating an access token for the steps.Use a workspace API key
On an Enterprise workspace, owners and admins can create workspace API keys in the Secrets section of the workspace settings. A workspace API key belongs to the workspace rather than to a person, so it keeps working when people leave. Send it in theapi_key header, or as a Bearer token in the Authorization header:
- Workspace-wide access: The key acts as the workspace owner, across every app in the workspace. A Read-only key can call the same endpoints as a read-only personal access token. A Full access key can call every endpoint that accepts workspace API keys. See Using workspace-wide access.
- Specific scopes: The key can call only the endpoints its scopes cover, such as Deploy an app with Deploy apps, or Provision an app user with Provision app users.
Example request
The request body is optional. Omit
checkpoint_id to deploy the app’s current version.