Trigger a web push notification when a new visitor discussion is created

POST /chat/web-push/new-visitor-discussion/{id_chatroom}/ambassador/{id_ambassador}

Headers

Path parameters

Responses

  • 200 application/json

    Returns the web push notification

    Hide response attribute Show response attribute object
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
  • Forbidden - You don't have permission to access this route

  • Not found - The chatroom or the ambassador does not exist

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."
}