Use the Custom Events API to send user actions to use in the Attentive Segment Builder and Journey Builder for both email and text messages. This data cannot contain any sensitive or special categories of information as defined in applicable data protection and privacy laws, including the California Consumer Privacy Act (CCPA) and California Privacy Rights Act (CPRA). See a list of specific categories of data you cannot share with Attentive here.
Make a call to this endpoint for any event-based data representing user actions.
events:write
) type required | string The type of event. This name is case sensitive. "Order shipped" and "Order Shipped" would be considered different event types. The Custom Event type cannot any of the following special characters:
|
object Any metadata associated with the event. Object keys are expected to be strings, and cannot contain any of the following special characters:
Object values can be any type. Note that both object keys and object values are case sensitive. For example, "deliverydate" and "DeliveryDate" would be considered different event properties. Notes:
| |
externalEventId | string A unique identifier representing this specific event. A UUID is recommended. |
occurredAt | string <date-time> Timestamp of when the action occurred in ISO 8601 format. If the timestamp is older than 12 hours, it will not trigger any relevant Journeys. If no timestamp is provided, it is assumed the event occurred when the endpoint is called. |
required | object (EventUser) User associated with the action. Note that this is a visitor to the site and does not need to be actively subscribed to Attentive. Phone, email, or an external identifier (clientUserId or another custom identifier) are required |
Ok
Invalid parameter in request query or body
Unauthorized
Access Denied
The specified resource was not found
The user has sent too many requests in a given amount of time
Internal Server Error
{- "type": "Order Shipped",
- "properties": {
- "delivery_date": "May 10",
- "Order Id": "54321",
- "products": [
- "productId1",
- "productId2"
], - "shipment": {
- "carrier": "fedex",
- "trackingNumber": "12345"
}
}, - "externalEventId": "37fb97a9-6cfd-4983-bd65-68d104d53b70",
- "occurredAt": "2021-03-30T14:38:29+0000",
- "user": {
- "phone": "+13115552368",
- "email": "test@gmail.com",
- "externalIdentifiers": {
- "clientUserId": "string",
- "customIdentifiers": [
- {
- "name": "string",
- "value": "string"
}
]
}
}
}