Track custom events for users in real time using Userpilot’s HTTP API.
Header | Value | Required |
---|---|---|
Content-Type | application/json | Yes |
Authorization | Token {YOUR_API_KEY} | Yes |
X-API-Version | 2020-09-22 | Yes |
Field | Type | Required | Description |
---|---|---|---|
user_id | string | Yes | Identifier of the user associated with the event |
event_name | string | Yes | Name of the event to track |
metadata | object | No | Key-value pairs providing additional event details |