Trigger a web push notification when a new visitor discussion is created
Headers
-
The id of the target brand
Path parameters
-
The id of the chatroom
-
The id of the ambassador
POST /chat/web-push/new-visitor-discussion/{id_chatroom}/ambassador/{id_ambassador}
curl \
-X POST https://domain.tld/api/v2/chat/web-push/new-visitor-discussion/{id_chatroom}/ambassador/{id_ambassador} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "X-Popsell-Brand: 3"
Response examples (200)
{
"success": true
}
Response examples (401)
{
"message": "Unauthorized."
}