AccoilAccoil Developer Docs

Track (v1)

Legacy endpoint for event tracking.

This is the legacy v1 endpoint. We recommend using POST /v2/track for new integrations.

The v1 track endpoint requires the API key in the request body as api_key rather than in the Authorization header.

POST
/v1/events

Request Body

application/json

User event tracking

api_key*string

Your unique Accoil API key. Found under Account > General settings.

timestamp*integer

Unix timestamp in milliseconds. Example: 1500000000000

Formatint64
user_id*string

A unique identifier for the user performing the event.

event*string

The name of the event being tracked.

  • Use a consistent Noun-Verb format for event names (e.g., "Report_Created").

Response Body

curl -X POST "https://in.accoil.com/v1/events" \  -H "Content-Type: application/json" \  -d '{    "api_key": "f6ed0379283b149a2fd87a069d2b0d623c601272",    "timestamp": 1500000000000,    "user_id": "user_12345",    "event": "Report_Created"  }'
Empty
Empty
Empty