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