cURL
curl --request POST \ --url https://api.smile.io/v1/customer_identities/create_or_update \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "customer_identity": { "email": "jane@doe.com", "distinct_id": "cust_19238475", "first_name": "Jane", "last_name": "Doe", "properties": {} } } '
{ "customer_identity": { "id": 863291377, "first_name": "Jane", "last_name": "Doe", "email": "jane@doe.com", "distinct_id": "cust_19238475", "properties": {}, "customer_id": 123 } }
Creates a new customer identity or updates an existing one.
distinct_id
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show child attributes
Customer identity successfully updated.