Skip to content
donutchat.com

Incoming webhooks

An incoming webhook is a private URL that lets an outside service, such as a CI system or a monitoring tool, post messages into one group chat. Chat owners and managers create and manage webhooks in the iPhone, Android and web apps.

In a group chat, the owner and managers can create and manage webhooks. In a feed chat, only the owner can. Other members don’t see the webhook settings.

  1. Open the group, then open Chat info (the info icon).
  2. Select Manage chat. Under Group Management (Feed Management in a feed chat), select Webhooks.
  3. Select +, or Add Webhook if the chat has no webhooks yet.
  4. On the Add Bot screen, fill in the fields described below, then select Create Bot.
  5. In Webhook Created, select Copy URL.
  6. Paste the URL into the outside service’s webhook settings.

The app calls a webhook a “bot” on these screens (Add Bot, Create Bot and the webhook’s page, Bot), but it’s not a bot account.

FieldWhat it’s for
Name *Required. Identifies the webhook in the Webhooks list. Up to 100 bytes.
DescriptionOptional. Up to 500 bytes.
Display NameThe sender name on the webhook’s messages. Up to 32 bytes. If you leave it empty, messages show Webhook.
AvatarThe picture shown with the webhook’s messages.

In byte limits, each English letter, digit or space counts as 1 byte, and accented letters and most other scripts take 2 or 3 bytes. A typical emoji takes 4 bytes, and flags or emoji with a skin tone take more. If a value is too long, creating the webhook fails. You can’t change the name, description or display name later, only the picture.

For the request format, limits and errors, see Incoming webhooks API.

Open Chat info > Manage chat > Webhooks. The list shows each webhook’s name, whether it’s ACTIVE or INACTIVE, how many messages it has posted and when it was created. Select a webhook to open its page, titled Bot:

  • Statistics shows Messages Sent, Last Used and Created.
  • Configuration shows the Display Name and the Rate Limit: the most messages the webhook accepts per minute and per hour. Posts over the limit are refused. You can’t change the rate limit in the app.

Use the switch next to Active on the webhook’s page; it reads Inactive while the webhook is off. While the webhook is inactive, posts to its URL are refused and nothing appears in the chat. Switch it back on to accept posts at the same URL.

  1. On the webhook’s page, select Rotate Token, then Rotate to confirm.
  2. In New Bot URL, select Copy URL.
  3. Give the outside service the new URL.

The old URL stops working immediately, and the new one is also shown only once.

Select the picture on the webhook’s page and choose a new one.

On the webhook’s page, select the trash icon (Delete), then Delete in the Delete Bot dialog. The URL stops working, and you can’t undo this.

  • Each post appears as a new message in the main chat, not in a thread, with the display name, the picture and a BOT label.
  • The outside service can set a different name or picture for each message.
  • Webhooks post plain text. They can’t send files, interactive cards or thread replies.
  • Members are notified as for other messages, unless they’ve muted the chat. The person who created the webhook isn’t notified about its messages.
  • Bots don’t receive webhook messages, so a webhook post never triggers a bot.