Skip to Content
Aperture

Authentication

Login tokens, personal API keys and project keys, and when to use each.

Every authenticated API request sends a token in the Authorization header:

Authorization: Bearer <token>

Aperture accepts three kinds of token.

Login tokenPersonal API keyProject key
Get it fromaperture-cli login, POST /signinDashboard API Keys, POST /users/keysProject settings CI Keys, POST /projects/{id}/keys
Looks likeJWTJWTapk_…
Acts asYouYouThe project only
Can doEverything you canEverything you can, except the websocketOnly its scopes
ExpiresAfter 52 weeksAfter 52 weeksNever
RevokeNot possibleDisable or delete the keyDisable, rotate or delete the key
Use forThe CLI on your machine, the dashboardScripts and integrationsCI/CD pipelines

Tokens are shown once, when they are created (and, for project keys, when rotated). Aperture stores only a hash.

Project key scopes

A project key works only on its own project, and only for the routes its scopes allow. Scopes are chosen when the key is created and can't be changed.

ScopeAllows
deployDeploying jobs (POST /jobs/deploy)
runRunning, scheduling and cancelling (POST /jobs/run, POST /jobs/schedule, PUT /jobs/{execution_id}/cancel)
readListing jobs and reading job details with executions (GET /jobs/project/{project_id}, GET /jobs/{id}/details)

Every other route rejects project keys with 401, including trigger and webhook management. Creating, rotating and deleting project keys requires the owner or admin role.

See Deploying from CI for a full example.

Inbound trigger tokens

Inbound triggers use their own trg_… tokens, which can only start runs of one job. They aren't accepted anywhere else.

On this page