Identify
Identify a user and set their traits.
The identify call creates or updates a user in Accoil and sets traits such as email, name, and creation date.
Looking for the legacy v1 endpoint? See POST /v1/users.
Authorization
V2BasicApiKey Use format "Basic API_KEY" where API_KEY is your unique Accoil API key. Found under Account > General settings.
In: header
Request Body
application/json
User identification payload
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://in.accoil.com/v2/identify" \ -H "Content-Type: application/json" \ -d '{ "userId": "user_12345" }'