Mby Mailchimp
Add an event for a contact
Records a named event, with optional properties and time, for one audience contact.
Description
The event `name` is 2 to 30 characters, such as `purchased`; `occurred_at` takes an ISO 8601 time. Events can trigger automations; set `is_syncing` to `true` when importing ones that shouldn't.
add-list-member-event.md
Add an event for a contact
Records a named event, with optional properties and time, for one audience contact.
The event name is 2 to 30 characters, such as purchased; occurred_at
takes an ISO 8601 time. Events can trigger automations; set is_syncing to
true when importing ones that shouldn't.
Set up
Use the first option your agent supports.
API (official)
- Base URL: https://{dc}.api.mailchimp.com/3.0
- Endpoint:
POST /lists/{list_id}/members/{subscriber_hash}/events - Auth: send the header
Authorization: Bearer $MAILCHIMP_API_KEY - Get a key: https://us1.admin.mailchimp.com/account/api/
- Docs: https://mailchimp.com/developer/marketing/api/
Before doing anything else, make one read-only call to confirm access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data.
- Never print API keys.
Built from these files in the repository
The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.
Ways in
| Route | Source | Call | Required | Docs |
|---|---|---|---|---|
| Official | POST /lists/{list_id}/members/{subscriber_hash}/events | API key in $MAILCHIMP_API_KEY | Docs |