Skip to Content
Aperture
REST API

Triggers

Manage a job's inbound triggers, and the public endpoint that fires them.

See Inbound triggers for how triggers work. Management endpoints need a user token (login or personal API key); any team member can use them. {job_name} is the job's name.

Trigger object

{
  "id": "3b0e…",
  "name": "budgets",
  "type": "sns",
  "enabled": true,
  "topic_arn": "arn:aws:sns:us-east-1:123456789012:budget-alerts",
  "last_fired_at": null,
  "url": "https://aperture-server.mountaindev.com/api/v1/triggers/3b0e…",
  "inserted_at": "2026-11-23T10:00:00Z",
  "updated_at": "2026-11-23T10:00:00Z"
}

Create and rotate responses also contain the token, once:

  • generic: "token": "trg_…", "token_header": "X-Aperture-Trigger-Token"
  • sns: "token": "trg_…", "subscription_url": "<url>?token=trg_…"

GET /projects/{project_id}/jobs/{job_name}/triggers

Lists the job's triggers, oldest first.

POST /projects/{project_id}/jobs/{job_name}/triggers

{ "trigger": { "name": "budgets", "type": "sns", "topic_arn": "arn:aws:sns:…", "enabled": true } }
FieldRequiredNotes
nameyes1 to 100 characters, unique per job.
typeyesgeneric or sns. Can't be changed later.
topic_arnsns onlyA valid SNS topic ARN. Not allowed on generic triggers.
enablednoDefaults to true.

201 with the trigger and its token.

POST /projects/{project_id}/jobs/{job_name}/triggers/{id}/rotate

Issues a new token and invalidates the old one. 200 with the trigger and its new token.

PATCH /projects/{project_id}/jobs/{job_name}/triggers/{id}

{ "trigger": { "enabled": false } }

Updates name, enabled or topic_arn.

DELETE /projects/{project_id}/jobs/{job_name}/triggers/{id}

204.

POST /triggers/{trigger_id}

The public endpoint that starts a run. It uses the trigger's token instead of the Authorization header. See Inbound triggers for the request format and every response.

On this page