The Identify User API allows you to create or update user profiles in real time, either individually or in bulk. Use this API to keep your user data in sync with Userpilot for analytics, segmentation, and personalized experiences.
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 | 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 |
user_id
field is required. If you include a company
object, it must have at least an id
field.Header | Value | Required |
---|---|---|
Content-Type | application/json | Yes |
Accept | application/json, text/plain, */* | Yes |
Authorization | Token {YOUR_API_KEY} | Yes |
Field | Type | Required | Description |
---|---|---|---|
users | array | Yes | Array of user objects |
user_id | string | Yes | Unique identifier for the user |
company_id | string | No | Unique identifier for the company (if applicable) |
metadata | object | No | Key-value pairs describing the user (primitives only) |
Header | Value | Required |
---|---|---|
Content-Type | application/json | Yes |
Accept | application/json, text/plain, */* | Yes |
Authorization | Token {YOUR_API_KEY} | Yes |
Header | Value | Required |
---|---|---|
Content-Type | multipart/form-data | Yes |
Accept | application/json, text/plain, */* | Yes |
Authorization | Token {YOUR_API_KEY} | Yes |
file
with your NDJSON file:
user_id
or company_id
) and that metadata is formatted correctly.Authorization
header.