cURL
curl --request POST \ --url https://{environment}.userpilot.io/v1/track \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data '{ "user_id": "user_789456", "event_name": "schedule_appointment", "metadata": { "appointment_date": "2024-02-01T10:00:00Z", "appointment_type": "Initial Consultation", "scheduled_by": "Sarah Johnson", "specialty": "Cardiology", "provider_id": "dr_smith_123", "appointment_status": "confirmed" } }'
This response does not have an example.
API authentication token in the format: Token {{API_KEY}} Obtain your API key from the Userpilot Environment Settings.
Token {{API_KEY}}
Accepted - Event tracking successful
Was this page helpful?