Track
Record a user event. Only the event name is accepted -- no properties.
The track call records a user event in Accoil. Only the event name is accepted -- Accoil does not support custom event properties. Event names should describe the action the user performed, such as Feature Activated or Report Exported.
Looking for the legacy v1 endpoint? See POST /v1/events.
POST
V2BasicApiKeyheader
Authorization<token>Use format "Basic API_KEY" where API_KEY is your unique Accoil API key. Found under Account > General settings.
User event tracking
application/json- body
timestamp?stringISO 8601 Formatted date string. Will default to UTC now if not supplied.
Format
date-timeuserId*stringA unique identifier for the user performing the event.
event*stringThe name of the event being tracked.
- Use a consistent Noun-Verb format for event names (e.g.,
"Report_Created").
Accepted
curl -X POST 'https://in.accoil.com/v2/track' \ -H 'Content-Type: application/json' \ -d '{ "userId": "user_12345", "event": "Report_Created"}'Example Response
Empty