Skip to content
dimmiDocs

Contacts and companies

Record a contact event

POST/api/v1/contact-events

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the contacts:write ability

Body

application/json
contact_idstring

The person by contact id (ctc_...); or give external_id or email instead.

Maximum length: 64

emailstring

An email address, such as ana@example.com.

Maximum length: 320

eventsobject[] | null

Up to 100 events with the same fields, instead of one at the top level.

Maximum items: 100

Show child attributes
contact_idstring

Id 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

emailstring

Email 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_idstring

Your 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_keystring

A 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

metadataobject

Details 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}.

namestring

The event's name: 1 to 64 lowercase letters, digits, underscores, dots, colons or hyphens, such as order_placed.

Maximum length: 64

occurred_atstring

When 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_idstring

Your own system's id of this record, such as user_8421.

Maximum length: 255

idempotency_keystring

A key to send the same event again safely; repeats within 48 hours count once.

Maximum length: 128

metadataobject

An object of details kept with the person's last event of this name.

namestring

The event's name, 64 characters at most, such as signed_up.

Maximum length: 64

occurred_atstring

RFC 3339 time, up to 30 days ago; earlier or future times are clamped.

Format: date-time

Response 200

OK
dataobjectrequired
Show child attributes
acceptedintegerrequired

How many of the events sent were accepted.

Format: int64

eventsobject[] | nullrequired

The result of each event sent, in the order sent.

Show child attributes
contact_idstring | nullrequired

Id of the contact the event was recorded for, such as ctc_.... Null when no contact was matched.

occurred_at_clampedboolean

True when the event's time was outside the allowed range and was moved into it. Left out otherwise.

statusstringrequired

What became of the event: accepted, duplicate, contact_not_found, archived, event_limit_reached or not_allowed.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.