Records custom events for advanced tracking.
| 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. |
Team API key for authentication. Find your API key in SendX Settings → Team API Key.
Example:
X-Team-ApiKey: your_team_api_key_hereThis is the contact identifier. Contact id and email can be used interchangeably.
Event name
"video_watched"
Event data
{
"video_id": "12345",
"duration": "120",
"completed": "true"
}Unix timestamp (in seconds since January 1, 1970) representing when the event occurred.
1669990400