Documentation Index
Fetch the complete documentation index at: https://docs.userpilot.com/llms.txt
Use this file to discover all available pages before exploring further.
When to Use
Use the HTTP Identify API when:- Creating users from server-side code (e.g., after signup in your backend)
- Updating user properties without a page load
- Syncing user data from external systems
- Your application doesn’t run in a browser (backend services, mobile apps without SDK)
- Users are interacting with your web application in a browser
- You need to display Userpilot content immediately after identification
Prerequisites
- Userpilot API Key (not App Token) from Settings > Environment
- Knowledge of your API environment (US or EU)
Individual Identify
Endpoint
The endpoint URL uses the
analytex environment. For EU data residency, use
analytex-eu instead. See Environment
Settings for your specific endpoint.Headers
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Authorization | Token {YOUR_API_KEY} | Yes |
X-API-Version | 2020-09-22 | Yes |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | Unique identifier for the user |
metadata | object | No | Key-value pairs describing the user |
company | object | No | Object with at least an id field for company association |
Example
Response
A successful identification returns HTTP status code 202 Accepted.Bulk Operations
For bulk user identification and updates, see the dedicated documentation:- Bulk Identify Users - For bulk user operations
Common Issues
| Error | Cause | Solution |
|---|---|---|
| 401 Unauthorized | Invalid API key | Verify API key (not App Token) from Environment settings |
| 400 Bad Request | Missing user_id | Include user_id field in request body |
| 400 Bad Request | Company without id | If company object included, it must have id field |
| User not appearing | Wrong environment | Verify endpoint matches your environment (US vs EU) |
Related
- Track Event API - Track user actions
- Identify Company API - Create/update companies
- Bulk Identify Users - High-volume user operations
- Data Model Reference - User and company schema details
- JavaScript SDK identify() - Browser-based identification