Chatbot Operations

Delete a webhook

Delete the webhook registered with the given URL, together with all of its event subscriptions. The response lists the chatbot's remaining webhooks. If no webhook matches url, nothing is deleted and the response is still 200 with the unchanged list.

post/delete-webhook

Request

  • Base URL: https://api.chat-data.com/api/v2
  • URL: https://api.chat-data.com/api/v2/delete-webhook
  • Auth: HTTP bearer

Request body

chatbotIdstring required

The ID of the chatbot the webhook belongs to.

urlstring required

The URL endpoint that the chatbot delivers events to.

Example request

{
  "chatbotId": "6650f1c2a9e4b83d2c7a1f05",
  "url": "https://example.com/webhooks/chat-data"
}

Response

Successful response.

status'success' required

Example response

{
  "webhooks": [
    {
      "endpoint": "https://example.com/webhooks/chat-data",
      "secret": "4f9a2c7e1b8d3f6a0c5e9b2d7a1f4c8e3b6d9f2a5c8e1b4d7f0a3c6e9b2d5f8a",
      "enable": true,
      "contentType": "text/plain"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.