The Channel Developers

Welcome to the Channel Developers. You'll find comprehensive guides and documentation to help you start working with Channel-docs as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Quick-reply for a Webhook

Channel provides Quick-reply option for a Webhook. You can easily reply a message with your response for our Webhook event request.

Response Header

If you want to reply a message with your response, you should add a custom HTTP response header

"x-quick-reply" : "true"

Else, we will recognize your response as not a Quick-reply message.

You can set bot-name for your Quick-reply message with a custom HTTP response header

"x-bot-name" : "YOUR_BOT_NAME"

Else, bot name will be your Channel-name.

Response Body

Your response body should look like below, same with Send a message to a Group

{
  "blocks": [
    {
      "type": "text",
      "value": "This is <b>bold</b>, <i>italic</i>, and <b><i>bold+italic</i></b>. Emoji should be in shortcode :+1: :100: "
    },
    {
      "type": "text",
      "value": "<link type=\"manager\" value=\"managerId_goes_here\">@username</link>"
    },
    {
      "type": "text",
      "value": "This is a url <link type=\"url\" value=\"https://channel.io\">https://channel.io</link>"
    },
    {
      "type": "text",
      "value": "This is a link <link type=\"url\" value=\"https://channel.io\">Channel</link>"
    },
    {
      "type": "code",
      "value": "<script>ChannelIO('boot')</script>"
    },
    {
      "type": "bullets",
      "blocks": [
        {
          "type": "text",
          "value": "Bulleted text goes here"
        },
        {
          "type": "text",
          "value": "Next bulleted text goes here"
        }
      ]
    }
  ]
}

Updated 3 months ago

Quick-reply for a Webhook


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.