POST
/v1/eventsSend an event
Ingests one customer event, applies identity resolution and consent rules, then queues delivery.
Authentication
Requires Authorization: Bearer ${API_KEY}. Create and rotate keys from the TrackLayer dashboard.
Request body schema
{
"event_name": "string",
"user_id": "string",
"anonymous_id": "string",
"properties": "object",
"timestamp": "timestamp"
}Response schema · 200
{
"id": "evt_123",
"received_at": "2026-05-05T10:30:00Z",
"dedup_status": "accepted"
}Response example
{
"id": "evt_123",
"received_at": "2026-05-05T10:30:00Z",
"dedup_status": "accepted"
}Code examples
curl https://api.tracklayer.com/v1/events \
-X POST \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
-d '{"event_name":"purchase","user_id":"u_123","properties":{"order_id":"100045","value":129}}'Try it out
Use the dashboard to create an API key, then run one of the examples above with TRACKLAYER_API_KEY set in your environment.