v1

latestOpenAPI 3.0.0MIT2026-07-2620028.0 KB

Track Events

post/v1/track

Headers

Content-Typestring
Acceptstring
Authorizationstring required

API authentication token in the format: Token {{API_KEY}} Obtain your API key from the Userpilot Environment Settings.

Request body

user_idstring required

The unique identifier for the user. This is the ID that Userpilot uses to identify the user.

event_namestring required

Name of the event being tracked. Use descriptive names like 'schedule_appointment', 'purchase_completed', etc.

Example request

{
  "user_id": "user_789456",
  "event_name": "schedule_appointment"
}

Response

Accepted - Event tracking successful