Record an event
documentedRecord an event for a subscriber.
POST /v2/{account_id}/eventsEventsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.getdrip.com/v2/{{$account_id}}/events" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-u {{GETDRIP_API_KEY}}: \
-d @- << EOF
{
"events": [{
"email": "{{$email}}",
"action": "{{$action}}",
"occurred_at": "{{$occurred_at}}",
"properties": {
"affiliate_code": "{{$affiliate_code}}"
}
}]
}
EOF