The App Management API is available on Business and Enterprise plans. Workspace API keys are managed in the Secrets section of your workspace settings.
Required role
Only workspace owners and admins can create and manage workspace API keys. Regular workspace members do not have access to the Secrets page in workspace settings. To learn about workspace roles, see Managing your workspace members.Workspace API key
Include your workspace API key in theapi_key header with all requests:
Scopes
Each endpoint requires a specific scope on the key. Grant a key only the scopes it needs.
When a scope requires app access, the key must be granted access to the apps it can act on, either all apps in your workspace or a selected set. A key can only act on apps within its grant.
Example request
The request body is optional. Omit
checkpoint_id to deploy the most recent saved version of the app.Get your workspace API key
- Click your workspace name at the top left and click Settings.
- Click Secrets in the sidebar.
- Click + Create API Key.
- Enter a name for the key and an optional description.
- Grant the scopes the key needs. For a scope that requires app access, choose whether the key can access all apps or only a selected set.
- Click Create Key, then copy the key immediately and store it securely.