POST
/v1/identity/resolveResolve identity
Links an anonymous visitor to a known user and returns the merged profile keys.
Authentication
Requires Authorization: Bearer ${API_KEY}. Create and rotate keys from the TrackLayer dashboard.
Request body schema
{
"anonymous_id": "string",
"user_id": "string",
"traits": "object"
}Response schema · 200
{
"identity_id": "idn_123",
"user_id": "u_123",
"merged": true
}Response example
{
"identity_id": "idn_123",
"user_id": "u_123",
"merged": true
}Code examples
curl https://api.tracklayer.com/v1/identity/resolve \
-X POST \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
-d '{"event_name":"purchase","user_id":"u_123","properties":{"order_id":"100045","value":129}}'Try it out
Use the dashboard to create an API key, then run one of the examples above with TRACKLAYER_API_KEY set in your environment.