Create a Webhook

Create a Webhook object

Parameter

Accessible via URL https://api.channel.io/open/v4/webhooks and HTTP POST

๐Ÿ“˜

Present parameters in POST body. This method accepts application/json

ParameterExampleRequiredDescriptionParameter type
namechannelWHRequiredname of WebhookBody
urlhttp://www.channel.io/Requireda URL for WebhookBody

Example

POST https://api.channel.io/open/v4/webhooks

Your POST request body should look like

{
  "name": "string",
  "url": "string",
  "keywords": [
    "string"
  ],
  "watchUserChats": true,
  "watchGroups": true,
  "apiVersion": "string",
  "blocked": true
}

Response

Returns a newly created Webhook object.

{
  "webhook": {
    "id": "string",
    "channelId": "string",
    "name": "string",
    "url": "string",
    "token": "string",
    "keywords": [
      "string"
    ],
    "createdAt": 1624414654616,
    "watchUserChats": true,
    "watchGroups": true,
    "apiVersion": "string",
    "lastBlockedAt": 1624414654616,
    "blocked": true
  }
}