Contacts and companies
Record a contact event
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the contacts:write ability
Body
application/jsoncontact_idstringThe person by contact id (ctc_...); or give external_id or email instead.
Maximum length: 64
emailstringAn email address, such as ana@example.com.
Maximum length: 320
eventsobject[] | nullUp to 100 events with the same fields, instead of one at the top level.
Maximum items: 100
Show child attributesHide child attributes
contact_idstringId of the contact who did it, starting with ctc_, such as ctc_01jx2m8k4t. Name the person by exactly one of contact_id, external_id and email.
Maximum length: 64
emailstringEmail address of the contact who did it, such as ana@example.com. Name the person by exactly one of contact_id, external_id and email.
Maximum length: 320
external_idstringYour own system's id of the contact who did it, such as user_8421. Name the person by exactly one of contact_id, external_id and email.
Maximum length: 255
idempotency_keystringA unique text you make up for this event, at most 128 characters, so sending it again within 48 hours does not record it twice, such as order-1042-paid.
Maximum length: 128
metadataobjectDetails of the event, as a flat object of at most 20 keys whose values are text, numbers or true/false, 2 KB in all, such as {"plan": "pro", "amount": 49}.
namestringThe event's name: 1 to 64 lowercase letters, digits, underscores, dots, colons or hyphens, such as order_placed.
Maximum length: 64
occurred_atstringWhen it happened, as an ISO 8601 time, such as 2026-11-20T14:30:00Z. Left out, it is now. Times over 30 days back or over an hour ahead are moved into that range.
Format: date-time
external_idstringYour own system's id of this record, such as user_8421.
Maximum length: 255
idempotency_keystringA key to send the same event again safely; repeats within 48 hours count once.
Maximum length: 128
metadataobjectAn object of details kept with the person's last event of this name.
namestringThe event's name, 64 characters at most, such as signed_up.
Maximum length: 64
occurred_atstringRFC 3339 time, up to 30 days ago; earlier or future times are clamped.
Format: date-time
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
acceptedintegerrequiredHow many of the events sent were accepted.
Format: int64
eventsobject[] | nullrequiredThe result of each event sent, in the order sent.
Show child attributesHide child attributes
contact_idstring | nullrequiredId of the contact the event was recorded for, such as ctc_.... Null when no contact was matched.
occurred_at_clampedbooleanTrue when the event's time was outside the allowed range and was moved into it. Left out otherwise.
statusstringrequiredWhat became of the event: accepted, duplicate, contact_not_found, archived, event_limit_reached or not_allowed.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.