Skip to Content
Aperture
REST API

Secrets

Manage a project's encrypted secrets.

User tokens only; any team member can manage secrets. Jobs receive only the secrets their manifest declares. Keys are unique per project and can't start with APERTURE_.

GET /secrets/{project_id}

Lists the project's secrets with their decrypted values, and which jobs declare each one:

{
  "data": [
    { "id": "f0a1…", "key": "SLACK_WEBHOOK_URL", "value": "https://hooks.slack.com/…", "project_id": "c2a9…", "used_by": ["nightly-report"] }
  ]
}

POST /secrets

{ "secret": { "project_id": "c2a9…", "key": "SLACK_WEBHOOK_URL", "value": "https://hooks.slack.com/…" } }

201 with the secret, including the value you set. Sends secret.created.

PUT /secrets/{id}

Updates the secret in the path. Send the fields to change:

{ "secret": { "value": "https://hooks.slack.com/new" } }

201 with the updated secret. Sends secret.updated.

Invalid input (a missing or duplicate key, or one starting with APERTURE_) returns 422 with field errors.

DELETE /secrets/{id}

204. Sends secret.deleted.

On this page