Events API
Track a single event
/trackAccepts a single event object and records it for ingestion.
If messageId is not provided, the server will generate one automatically.
Authorizations
AuthorizationstringheaderrequiredInclude your API key as:
TextAuthorization: Bearer YOUR_API_KEY
Request
curl --request POST \
--url https://YOUR_EVENTS_API_HOST/v1/track \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"messageId": "8b0f62f9-1e8e-4f15-8c2a-9d23c9c6c0e2",
"event": "signup",
"timestamp": "2025-10-29T22:00:00.778Z",
"properties": {
"plan": "basic",
"accountType": "email",
"freeTrial": true
}
}'Body
application/json
messageIdstringUnique identifier for this event. If not provided by the client, the server will generate one automatically. Used for deduplication and traceability through downstream systems.
eventstringrequiredThe name/type of the event.
timestampstring<date-time>requiredWhen the event occurred.
propertiesobjectrequiredEvent-specific key/value pairs.
Responses
200Request accepted and processed successfully.application/json
Option 1objectResponse for a single event.
Show child attributes
statusstringmessageIdstringUnique ID assigned to the processed event.
Option 2objectResponse for a bulk request.
Show child attributes
statusstringmessageIdsstring[]List of message IDs corresponding to successfully processed events.
400Invalid request payload.application/json
errorstring
401Missing or invalid API key.application/json
errorstring
413Request body too large.application/json
errorstring
429Too many requests; rate limit exceeded.application/json
errorstring
500Unexpected server error.application/json
errorstring
{
"status": "ok",
"messageId": "8b0f62f9-1e8e-4f15-8c2a-9d23c9c6c0e2"
}Was this page helpful?
- Need help? Message us on Slack or email [email protected].
- Want a walkthrough? Book a demo.
- LLM? Read llms.txt.