—Workspace · Security
Create a scoped, expiring key.
Owners and admins manage keys on Control → API keys, or in the desktop app under Settings → API keys. Keys get only the permissions you tick, from reading status to requesting governed deployments.

01
Create a key
Name the key, choose its permissions and choose when it expires (7 to 90 days). Permissions are grouped by job:
- Approvals and policy: request approvals and report outcomes, check policy and read approval status, propose policy changes (a different admin approves them in Governance).
- Read: pipeline runs and environment variables, the release gate, webhook endpoints, configuration as code, certificates and their expiry, and the audit log.
- CI and deployments: report deployment check results, request governed deployments (every gate still applies), report deployment outputs and read the previous stage's, tag deployments and add notes.
- Changes outside code: record change ticket approvals, submit config, flag, policy, database and IAM changes through the gates, and deliver cloud and cluster audit records for bypass detection.
- Operations: start a deployment freeze (only owners and admins can end one early), report SLO request counts, and ask to run a runbook from an alert or script (a person always approves the run).
- Owners and admins only: stream the audit log, set config contracts, reset an error budget with a reason, manage tracked certificates, manage deployment status badges, and provision users with SCIM.
Wildcard, trigger and admin permissions are not available here.
To release without the desktop app, choose Release agent preset. It fills in a 90-day key that can request deployments and add notes. Its deployments run as you through every gate, and you can't approve them yourself.
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.
An administrator can also sign in to the desktop app with a key when no one can pair a desktop (Sign in with an administrator key). That key needs release_gate:read, plus pipeline:read for workflow screens and governance:read for approvals. If a permission is missing, the sign-in screen says which one. A recovery session acts as the workspace, not a person, so screens that need a paired person (people, approvals, deployments and settings) stay unavailable.
Copy it once
02
Separation of duties
The person who creates a key is recorded. Its creator can't approve deployments requested with that key. Agent gateway requests made with the key must be decided by another owner or admin. The one exception is a workspace with a single owner or admin whose team hasn't changed in the last 24 hours: that person may decide, and the audit log marks the decision as theirs.
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
Rotate a key before it expires
Keys always expire, so a pipeline stops working the day its key runs out. Fourteen days before a key expires, every verified owner and admin gets one email listing the keys about to stop, with when each was last used, and the api_key.expiring webhook fires for each key. The key list says the same thing next to the key, and marks keys nobody has used for 30 days so you can revoke what isn't needed.
To replace a key, choose Rotate on it, in the cockpit's API keys page or in the desktop app under Settings → API keys, and pick when the old key stops: after one day, after seven days, or now. V19 makes a new key with the same name, permissions, environment and IP ranges, lasting as long as the original was given, and shows its secret once. Put the new secret where the old one is used before the overlap ends; the old key never works past its own expiry. Rotating with the old key stopping now also cancels anything an agent asked for with it that hasn't started, as revoking does.
A key can be rotated once; after that, rotate its replacement. While both keys overlap they count toward the 20 active keys, and a workspace enrolled in Governance can only rotate with the old key stopping now. Each rotation is in the audit log with who did it and when the old key ends, sends the api_key.rotated webhook, and, because it makes a new key, raises a security alert for owners and admins.
05
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.
With request governed deployments from CI, a pipeline asks V19 to deploy and every gate still applies (freezes, change windows, branch policy, approvals, checks). A gate refusal returns its code, for example deploy_approval_required; retry with the same Idempotency-Key after people approve. From Bash, use the vxl CLI:
export VXL_API_KEY="$V19_API_KEY"
vxl ask deploy --env production --target acme/web@main --summary "Release 2.4" --wait 900
vxl deploy --repo acme/web --env production --ref main --idempotency-key "$GITHUB_RUN_ID" --waitIn GitHub Actions, the V19 governed deploy action does the same in one step: it requests the deployment, waits while people approve it in V19, follows it to the result and fails the job unless it succeeded. Re-running the job returns the same deployment instead of starting a second one.
- uses: visionxixlabs/v19-deploy-action@v1
with:
api-key: ${{ secrets.V19_API_KEY }}
environment: productionOn Windows runners, call the same API from PowerShell:
$H = @{ Authorization = "Bearer $env:V19_API_KEY"; "Idempotency-Key" = "$env:GITHUB_RUN_ID" }
$Body = @{ repository = "acme/web"; environment = "production"; ref = "main" } | ConvertTo-Json
Invoke-RestMethod -Method Post -Uri "https://visionxixlabs.com/api/v1/deployments" -Headers $H -ContentType "application/json" -Body $BodyStore 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.