Event
Push a custom event associated with a contact
This API allows you to push a custom event for a specified contact, including any additional properties you wish to associate with the event.
Request Properties
Property | Type | Description |
---|---|---|
name | string | The name of the custom event. |
identifier | string | A unique identifier for the contact (e.g., an email address). |
data | map[string]string | A set of key-value pairs containing additional event properties. |
time | int64 (optional) | Unix timestamp (in seconds since January 1, 1970) representing when the event occurred. If omitted, the current request time will be used. |
Example Request:
{
"name": "abandoned_cart",
"identifier": "john.doe@example.com",
"data": {
"price": "29.99",
"currency": "USD",
"item_count": "3"
},
"time": 1669990400
}
POST
Push a custom event associated with a contact
Authorizations
Body
application/json
Response
201
application/json
Custom event created successfully.
The response is of type object
.
Push a custom event associated with a contact