Skip to content

Automations

The “when X, do Y” rules: trigger_key (client.created, appointment.cancelled, invoice.issued, subscription.payment_failed, subscription.cancelled, invoice.overdue, quote.unanswered, contract.expiring, client.inactive, campaign.clicked, contact.unsubscribed, event.registered, event.payment_abandoned, event.attended, event.absent, review.received, stock.low, asset.deadline_due, course.abandoned, stamp.reward_earned, stamp.reward_expiring, points.earned, points.idle), trigger_days, conditions (match all or any, rules: field, op, value), steps (notify, email, task, wait, client_message, chat, webhook, bonus_points), dry_run, daily_limit, is_active. A rule saved with an API key runs with the key scopes. Actions: activate, deactivate, apply_existing.

Module: Automations (automations).

  • GET /api/v1/automations - List with filters, sorting and pagination (scope automations:read)
  • GET /api/v1/automations/{id} - A record by id (scope automations:read)
  • POST /api/v1/automations - Create a record (scope automations:write)
  • PATCH /api/v1/automations/{id} - Modify the submitted fields (scope automations:write)
  • DELETE /api/v1/automations/{id} - Delete or deactivate (scope automations:write)
  • POST /api/v1/automations/{id}/activate - Turn the rule on (from now on) (scope automations:write)
  • POST /api/v1/automations/{id}/deactivate - Turn the rule off (scope automations:write)
  • POST /api/v1/automations/{id}/apply_existing - Apply a date-based rule to records from before it was turned on (scope automations:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • name (string; write, required)
  • is_active (boolean; read): Whether the record is active.
  • trigger_key (string; write, required)
  • trigger_table (string; read)
  • conditions (string; write)
  • steps (string; write)
  • daily_limit (number; write)
  • trigger_days (number; write)
  • dry_run (boolean; write)
  • time_floor (string, date; read)
  • activated_at (string, date-time; read)
  • saved_by (string; read)
  • disabled_reason (string; read)
  • version (integer; read)
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).