Skip to main content
POST
Identify

Headers

Content-Type
string
default:application/json
Accept
string
default:application/json
Authorization
string
default:Token ABC_1234_EFGH_5678
required

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

Body

application/json
user_id
string
required

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

Example:

"123987"

metadata
object

Optional user metadata. You can add, remove, or modify any properties as needed for your use case. Note: Only string values are supported (numbers and dates should be sent as strings).

company
object

Company information. If provided, company_id is required. Additional company properties are optional metadata.

Response

401 - application/json

Unauthorized - Invalid API key

errors
object[]