send_event
Fire a custom event to trigger automations for a contact. Include a payload to pass data to automation conditions.
Instructions
Fire a custom event for a contact. Automations whose trigger is {type:'custom_event', eventName:'<name>'} will enroll the contact and start running. Payload is exposed to condition steps as event.<key>.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Event name (e.g. 'trial_started', 'order.placed') | |
| apiKey | No | Send16 API key (overrides SEND16_API_KEY env var) | |
| payload | No | Arbitrary JSON metadata available to automation conditions | |
| contactId | No | Contact UUID (provide either this or contactEmail) | |
| occurredAt | No | ISO-8601 timestamp; defaults to now | |
| contactEmail | No | Contact email (provide either this or contactId) |