AttuneMail DocsTroubleshooting
API

Customer Events API reference

Reference the Segment-compatible event routes, common fields, responses, and canonical compatibility endpoint.

Updated 2026-08-2310 min

Base URL and content type

All request bodies must be JSON and use Content-Type: application/json.

API base
Copy
Base URLNode.jsPython
https://www.attunemail.com/v1

Routes

RoutePurposeRequired fields
POST /trackRecord customer behaviorevent and one customer identifier
POST /identifyUpdate identity and traitsuserId or anonymousId
POST /groupAssociate company or account contextgroupId and a customer identifier
POST /aliasLink a previous identifier to a new userIdpreviousId and userId
POST /pageRecord deliberate server-side page activityname or properties plus an identifier
POST /screenRecord deliberate server-side screen activityname or properties plus an identifier
POST /batchSend up to 500 mixed compatible messagesbatch array

Common fields

FieldMeaning
messageIdProducer-generated idempotency key
userIdDurable customer ID
anonymousIdPre-authentication customer ID
timestampOriginal event timestamp when supplied
contextBounded source context
propertiesEvent-specific values
traitsCustomer or group attributes

Successful response

A successful HTTP response confirms durable acceptance, not that a journey sent an email. Inspect processing state and journey enrollments separately.

Single or batch response
Copy
JSONNode.jsPython
{
  "success": true,
  "batchId": "018f...",
  "received": 2,
  "duplicates": 0
}

Canonical compatibility endpoint

Existing plain HTTP integrations can use POST /v1/events/{connection_id} with Bearer or X-AttuneMail-Webhook-Secret authentication. New integrations should normally choose the Segment-compatible routes or a native provider webhook.