use this route to create or retrieve a client ambassador from his email_tmp, if he doesn't exists, the account and its api key will be created
POST
/chat/ambassadors/shop-customer
curl \
--request POST 'https://domain.tld/api/v2/chat/ambassadors/shop-customer' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-Popsell-Brand: 3" \
--data '{"email_tmp":"string","firstname":"string","lastname":"string"}'
Request examples
# Headers
X-Popsell-Brand: 3
# Payload
{
"email_tmp": "string",
"firstname": "string",
"lastname": "string"
}
Response examples (200)
{
"id_ambassador": 42,
"image": "string",
"firstname": "string",
"lastname": "string",
"username": "string",
"email": "string",
"email_tmp": "string",
"active": 42,
"status": 42,
"online": true,
"last_action_date": "2025-05-04T09:42:00Z",
"customer_id": "string",
"anonymized": true
}