API referenceAutomations

Activate an automation

POST
/v1/automations/{id}/activate

draft/paused → active. Requires a non-empty, valid step program, a valid trigger, and a verified from_domain_id (send steps need a verified marketing sender).

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key sent as Authorization: Bearer <key>. Looked up by SHA-256 hash (email_core::sha256_hex) against api_keys.hash; revoked keys and keys belonging to a suspended tenant are rejected. See the top-level Authentication section for permission levels.

Path Parameters

id*string

Response Body

Activated.

application/json
  1. response
id?string
name?string
trigger_kind?string
Value in"contact_created""audience_added""manual"
trigger_config?
from_domain_id?string|null
steps?array<|||>
status?string
Value in"draft""active""paused""archived"
created_at?integer
Formatint64
updated_at?integer
Formatint64
curl -X POST "https://example.com/v1/automations/string/activate"
{  "id": "string",  "name": "string",  "trigger_kind": "contact_created",  "trigger_config": {},  "from_domain_id": "string",  "steps": [    {      "type": "send",      "subject": "string",      "body_html": "string",      "body_text": "string"    }  ],  "status": "draft",  "created_at": 0,  "updated_at": 0}