—Workspace · Security

Create a scoped, expiring key.

Owners and admins manage keys on Control → API keys. Keys get only the scopes you tick: governance, read, check reporting and starting a freeze.

The API keys page in the V19 cockpit in a browser
API keys in the cockpit (browser), shown for a new synthetic workspace. Your workspace shows its own records and the controls your role allows.

01

Create a key

Name the key, choose its permissions and choose when it expires (7 to 90 days). Available permissions: request approvals and report outcomes, check policy and read approval status, read pipeline runs, read the release gate, read webhook endpoints, report deployment check results, read configuration as code, start a deployment freeze (an incident tool can stop deployments; only owners and admins can end a freeze early). Wildcard, trigger and admin permissions are not available here.

Optionally limit where the key can be used: enter up to 20 IP addresses or CIDR ranges (for example 203.0.113.0/24 or 2001:db8::/48) under Allowed IP ranges. A request from any other address is refused with ip_not_allowed and recorded in the audit log. Leave it empty to allow any address. Ranges broader than /8 (IPv4) or /16 (IPv6) are not accepted.

Copy it once

The full key is shown once. V19 stores only a hash and a short prefix, so it cannot show the key again.

02

Separation of duties

The person who creates a key is recorded and cannot approve agent gateway requests made with that key. Another owner or admin must decide them.

03

Revoke a key

Revoke a key from the list as soon as it may have been exposed or is no longer needed. Revocation takes effect immediately and is recorded in the audit log. A workspace can hold up to 20 active keys.

04

Use a key in CI

Two endpoints are built for pipelines. With read pipeline runs, GET /api/v1/environments/{slug}/variables returns an environment's resolved configuration and its fingerprint, so a deployment can load its settings and record which configuration it used. With report deployment check results, POST /api/v1/checks/results records the result of a deployment check for a commit; the workflow generated on the Checks page uses it when the repository has a V19_API_KEY secret.

Store the key as a repository secret, give it only the permissions those calls need, and choose a short expiry. Each key can make up to 120 calls a minute (a 429 response carries Retry-After), and every workspace can make at least 100,000 API calls a month. Every SDK has matching methods.