API referenceAutomations
Manually enroll a contact
POST
The automation must be active. Idempotent — UNIQUE(automation_id, contact_id) makes re-enrolling a no-op (200), a genuine enrollment is 201.
bearerAuthheader
AuthorizationBearer <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.
id*stringapplication/json- body
contact_id*stringAlready enrolled.
application/json- response
automation_id?stringcontact_id?stringenrolled?booleancurl -X POST "https://example.com/v1/automations/string/enroll" \ -H "Content-Type: application/json" \ -d '{ "contact_id": "string" }'{ "automation_id": "string", "contact_id": "string", "enrolled": true}