Create a subscription date trigger
POST /automations/{automationUuid}/automation_triggers/suscription_date
/automations/{automationUuid}/automation_triggers/suscription_dateStarts the automation each year on the anniversary of the date the contact subscribed, optionally a few days or weeks before.
When to use: To mark how long someone has been a subscriber or to send a yearly loyalty message.
When not to use: For a date you store yourself in a custom field, use create_trigger_anniversary_date or create_trigger_specific_date. To welcome a contact when it subscribes, use create_trigger_contact_subscribed.
Side effects: It compares only the day of the year of the subscription date, not the year, so it also fires on the day a contact subscribes. With a delay, it does not wrap around the end of the year (a subscription in early January is not matched in late December). Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact is never started again within 6 months of its previous run, and enters again at all only if workflow_repeat is true.
Permissions: Requires the author role or higher, or the marketing.automations.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the automation, as returned by list_automations.
The new AutomationTrigger resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_triggers/suscription_date" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "delay": true, "delay_value": 0, "delay_unit": "day", "workflow_repeat": true }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "automation": "/entity/1", "trigger_type": "trigger.admin.manual", "active": true, "workflow_repeat": true, "trigger": null, "count_automation_queues": 0, "count_completed_automation_queues": 0, "count_queued_automation_queues": 0, "count_canceled_automation_queues": 0}