This site is no longer updated.Go to new Conversational Cloud docs

setWebhook


The method sets the webhook where events will be routed to be processed by JAICP. For instance, it can be a message processed by the agent or the chat closed.

Request

Request:

POST {apiUrl}/setWebhook

Request body:

{
  "url": "https://example.com/webhooks/{ApiKey}",
}

Request parameters:

Parameter Type Description
apiUrl string API URL where Operator API requests will be routed to.
url string The webhook set by the setWebhook method. It will later be used to accept events routed to JAICP.
ApiKey string Channel ID.

Answer

Response format:

200 (OK)    // request successfully completed