Body
The event name to trigger
The email of the person to trigger the event on
An optional dictionary of event properties. Used for inserting custom content into the email.
This is an example of a possible property. This data would be inserted into emails in the automation that have a matching data variable in the body.
All custom fields for a person
This is an example of an additional field you may have for your audience. The data_name for each field, if available, can be listed here.
Response
Whether or not the event was successfully triggered
curl --location --request POST 'https://app.audienceful.com/api/automations/event/' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <token>' \
--data-raw '{
"event": "custom-event",
"email": "[email protected]",
"event_properties": {
"reset-link": "https://website.com/reset"
},
"fields": {
"custom_field": "value"
}
}
}'