Skip to main content
POST
Track a customer event

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
event_name
string
required

Name of the event: 2 to 60 letters, digits, ., _ or -. Names starting with instantly. are reserved and give 400. Journey triggers and conversions match on this name.

Required string length: 2 - 60
Pattern: ^[A-Za-z0-9._-]+$
Example:

"form.submitted"

email
string<email>
required

Email address of the contact the event is about. Send exactly one of email and subscriber_id.

Maximum string length: 254
Example:

"jane@acme.com"

event_id
string

Your unique ID for this event, up to 128 characters, used to deduplicate retries. Sending the same event_id with the same body again returns the first receipt with deduplicated: true; the same event_id with a different body gives 409. Without event_id nothing is deduplicated, so a retried request is recorded twice. All API keys of a workspace share one namespace, so use globally unique values such as a UUID.

Required string length: 1 - 128
Example:

"form-submission-8371"

subscriber_id
string<uuid>

ID of the contact the event is about, as returned by the contacts endpoints (a lowercase UUID v7). Send exactly one of email and subscriber_id.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
Example:

"0198c2a4-3f1e-7000-8000-000000000000"

properties
object

Event properties: up to 50 names of up to 100 characters each. All properties together may be at most 16 KB (16,384 bytes) as JSON; more gives 400.

Example:
occurred_at
string<date-time>

When the event happened, as an ISO 8601 date-time. Defaults to the time it is received.

Example:

"2026-08-12T10:00:00.000Z"

is_backfill
boolean
default:false

Marks a historical event. It is stored and counted, but it does not enrol anyone in a journey, complete a goal, record a conversion or trigger an exit rule, and its subscriber fields are ignored: a new contact is created with no name and no consent.

Example:

false

subscriber
object

Profile fields to set on the contact. Ignored when is_backfill is true.

Response

The event was accepted, or was a repeat of an accepted event

receipt_id
string<uuid>
required

ID of the stored event

Example:

"0198c2a4-3f1e-7000-8000-000000000000"

deduplicated
boolean
required

True when this event_id was already received with the same body, so the first receipt is returned

Example:

false