Landing Platform Landing Platform
Developer Subscriber Events
POST /api/subscribers/{token}/events Token + HMAC

Record an event

Record one event against a subscriber, identified by email within the list. Signed with the list's secret, like the other writes on this prefix.

Rate limited.

Path parameters

token
string required
—

Body parameters

event
string optional
What happened, e.g. "Visited". Required. Letters, numbers, spaces, dots, hyphens and underscores; max 64 characters. Using a new name is all it takes to create it.
email
string · email optional
The person it happened to. Required.
occurred_at
string · timestamp optional
When it happened (ISO 8601). Optional — defaults to now. Use it when back-filling.
properties
string optional
Free-form detail to store alongside the event, e.g. which bay or how long. Optional.
first_name
string optional
Used only when the person is not on the list yet. Optional.
last_name
string optional
Used only when the person is not on the list yet. Optional.
create_profile
string optional
Add the person to the list if they are not on it (default true). Send false when back-filling history, so a welcome flow does not fire for people who joined long ago.

Responses

200 { "success": true, "subscriber_id": 4471, "event": "Visited", "occurrence": 3 }
401 { "error": "Invalid signature" }
404 { "error": "Subscriber not found" }
422 { "error": "event is required" }
response
{
  "success": true,
  "subscriber_id": 4471,
  "event": "Visited",
  "occurrence": 3
}