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:
Authorizations
Team API key for authentication. Find your API key in SendX Settings → Team API Key.
Example:
X-Team-ApiKey: your_team_api_key_here
Body
application/json
This is the contact identifier. Contact id and email can be used interchangeably.
Example:
"user@example.com"
Event name
Example:
"video_watched"
Event data
Example:
{
"video_id": "12345",
"duration": "120",
"completed": "true"
}
Unix timestamp (in seconds since January 1, 1970) representing when the event occurred.
Example:
1669990400