Skip to main content
Routines create repeatable task runs from schedules, authenticated webhooks, API triggers, or manual requests. They are company-scoped and keep a revision and run history. For the board-operator workflow, see How to Automate Recurring Work with Routines.

List, Create, and Update

Example create payload:
Statuses are active, paused, and archived. Priorities are urgent, high, medium, and low. Concurrency policies are coalesce_if_active, always_enqueue, and skip_if_active. Catch-up policies are skip_missed and enqueue_missed_with_cap. Variable names begin with a letter and contain only letters, digits, and underscores. Types are text, textarea, number, boolean, and select. Templates interpolate variables as {{name}}; {{date}} is built in. Only human operators with task-assignment authority can set agentCompletionPolicyOverride (review_required, agent_can_complete, or null). It participates in the task completion-policy precedence described in the Tasks API; the resolved policy is snapshotted on each generated task.

Revision History

Restoring a revision requires board authentication and task-assignment authority.

Triggers

Trigger kinds:
  • schedule — cron expression and timezone
  • webhook — public endpoint protected by bearer-token or HMAC-SHA256 signing
  • api — run through the authenticated API
Creating or rotating a webhook secret returns the plaintext secret once. Store it securely. Rotation invalidates the previous secret. Webhook signing modes are bearer and hmac_sha256. HMAC triggers validate the request timestamp and replay window; the replay window can be configured from 0 to 86,400 seconds and defaults to 300 seconds. Deleting a trigger returns 204.

Start a Run

Sources are schedule, manual, api, and webhook. Accepted runs return 202. Use an idempotency key when a caller may retry.
Lists recent runs.

Public Webhook

For HMAC triggers, compute the SHA-256 HMAC over {timestamp}.{rawBody}. Send the timestamp in X-AoA-Timestamp and the hex digest (optionally prefixed with sha256=) in X-AoA-Signature. Valid requests return 202. Public webhook callers do not otherwise need board or agent authentication.

Authorization

Company access is required for routine reads. Human operators need task-assignment authority to create routines, change assignment, activate or run them, create or update triggers, restore revisions, and set completion-policy overrides. Deleting a trigger or rotating its secret uses the existing-routine management check but does not currently add the task-assignment permission check. An agent may manage a routine assigned to itself where the route permits, but cannot set completion policy.