API

Issue automation and webhooks

Automation rules and their runs, incoming automation webhooks, outgoing webhooks, and notifications.

See Tasks.

Every route below, with its parameters, request and response, errors and samples, is in the API reference.

RouteWhat it does
POST /v1/hooks/issues/:orgId/:ruleId/:tokenRuns an incoming-webhook rule: on issues (keys) when given, otherwise on the rule's query; payload is available as {{payload.…}}.
GET /v1/orgs/:orgId/issues/notificationsNotifications, newest first (unread=1 for unread only); page with cursor.
GET /v1/orgs/:orgId/issues/notifications/countHow many notifications are unread.
POST /v1/orgs/:orgId/issues/notifications/readMarks notifications read (or unread with read: false); all: true for every one.
GET /v1/orgs/:orgId/issues/notifications/settingsEmail on or off, notifications about your own changes, and muted events.
PUT /v1/orgs/:orgId/issues/notifications/settingsChanges what the caller hears about.
GET /v1/orgs/:orgId/issues/automationRules the caller can see (space narrows to one space), with the trigger types there are.
POST /v1/orgs/:orgId/issues/automationCreates a rule. Rules for every space need issues:admin; space admins can automate their spaces.
GET /v1/orgs/:orgId/issues/automation/:ruleIdA rule.
PATCH /v1/orgs/:orgId/issues/automation/:ruleIdChanges a rule; pass baseVersion to avoid overwriting newer edits.
DELETE /v1/orgs/:orgId/issues/automation/:ruleIdDeletes a rule.
GET /v1/orgs/:orgId/issues/automation/:ruleId/runsThe last 50 runs of a rule.
POST /v1/orgs/:orgId/issues/automation/:ruleId/runRuns a manual rule on issues now.
POST /v1/orgs/:orgId/issues/automation/:ruleId/tokenIssues a new token for an incoming-webhook rule and returns its URL (shown once; the old one stops working).
GET /v1/orgs/:orgId/issues/webhooksWebhooks of the organization, with the events they can subscribe to.
POST /v1/orgs/:orgId/issues/webhooksCreates a webhook; the signing secret is in the response this once.
GET /v1/orgs/:orgId/issues/webhooks/:webhookIdA webhook.
PATCH /v1/orgs/:orgId/issues/webhooks/:webhookIdChanges a webhook.
DELETE /v1/orgs/:orgId/issues/webhooks/:webhookIdDeletes a webhook.
POST /v1/orgs/:orgId/issues/webhooks/:webhookId/secretReplaces the signing secret (returned this once).
POST /v1/orgs/:orgId/issues/webhooks/:webhookId/pingSends a ping event now and returns the outcome.
GET /v1/orgs/:orgId/issues/webhooks/:webhookId/deliveriesThe last 50 deliveries.