API Reference
POST /api/public/apps/identify
The Identify call lets you tie a user to their actions and record traits about them. It includes a unique User ID and any optional traits you know about the user, like their email, name, and more.
POST
/
api
/
public
/
apps
/
identify
Header
Body
curl --request POST \
--url http://localhost/api/public/apps/identify \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"context": {},
"messageId": "<string>",
"timestamp": "<string>",
"traits": {},
"userId": "<string>"
}'
"<string>"
The following is an example of an identify body.
example body
{
"userId": "532",
"traits": {
"email": "[email protected]"
},
"messageId": "6f5f436d-8534-4070-8023-d18f8b78ed39"
}
Headers
authorization
string
requiredBody
application/json
Option 1
Option 2
context
object
messageId
string
requiredtimestamp
string
traits
object
userId
string
requiredResponse
204 - application/json
An empty String
curl --request POST \
--url http://localhost/api/public/apps/identify \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"context": {},
"messageId": "<string>",
"timestamp": "<string>",
"traits": {},
"userId": "<string>"
}'
"<string>"