AccoilAccoil Developer Docs

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
/v2/track

Authorization

V2BasicApiKey
Authorization<token>

Use format "Basic API_KEY" where API_KEY is your unique Accoil API key. Found under Account > General settings.

In: header

Request Body

application/json

User event tracking

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://in.accoil.com/v2/track" \  -H "Content-Type: application/json" \  -d '{    "userId": "user_12345",    "event": "Report_Created"  }'
Empty
Empty
Empty