# Incoming webhooks

Post into one channel from anywhere with a single address: no token, no code beyond one request.

## Make a webhook

1. **Open the app’s Webhooks tab** In **Apps and integrations**, open the app, then **Webhooks**.
2. **Pick a channel** Choose the **Channel** it posts in and press **Make webhook**. You can only pick a channel you can read. The app’s bot joins it, so people can see who posts there.
3. **Copy the address** The **Webhook address** is shown once. Treat it like a password: anyone who has it can post.

An app can have 25 webhooks. Revoke one on the same tab, or under **Admin**, **Apps and tokens**.

## Send a message

```bash
curl -X POST "<your webhook address>" \
  -H "Content-Type: application/json" \
  -d '{"text": "Build *passed* on main"}'
```

| Field | What it is |
| --- | --- |
| `text` | The message, with [Kinnlo’s formatting](https://www.kinnlo.com/docs/messages#formatting). |
| `blocks` | Optional [blocks](https://www.kinnlo.com/docs/apps/blocks). |
| `threadRootId` | Optional: post as a reply in that message’s thread. |

The message comes from the app’s bot, with its name and colour.

## Answers

| Status | Means |
| --- | --- |
| 200 | Posted: `{ok: true, messageId, channelId}`. |
| 400 | The body isn’t readable, or has no text or blocks. |
| 403 | The channel is archived, or the app’s bot is turned off. |
| 404 | The webhook was revoked, or never existed. |
| 405 | Anything but `POST`. |
| 429 | More than 60 posts in a minute. |

A body can be up to 128 KB.
