Identify the user behind a session
Public endpoint hit by the browser SDK when the merchant calls `identify(email)` to bind a known user to the current tracking session. The identifier is hashed before persistence (SHA-256 hex) so PII never leaves the merchant infrastructure.
Public endpoint hit by the browser SDK when the merchant calls identify(email) to bind a known user to the current tracking session. The identifier is hashed before persistence (SHA-256 hex) so PII never leaves the merchant infrastructure.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://app.refcampaign.com/api/v1/track/identify" \ -H "Content-Type: application/json" \ -d '{ "session_id": "string", "customer_email_hash": "string" }'Empty
{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "string",
"details": null
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z",
"requestId": "string"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "string",
"details": null
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z",
"requestId": "string"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "string",
"details": null
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z",
"requestId": "string"
}
}