Incoming webhooks
POST https://<server>/hooks/<secret> with a JSON body, or a form with a
payload field holding the JSON — the older shape many tools still send.
text,blocks, or both, with the same rules aschat.postMessage.- Success is HTTP 200 with the body
ok, as on Slack. - The channel is fixed when the webhook is created; a
channelfield is ignored.
| Status | Error | When |
|---|---|---|
| 404 | invalid_webhook | The secret is unknown, replaced, or its app is deactivated |
| 400 | invalid_payload | The body is not JSON |
| 400 | no_text | Nothing to post |
| 404 | channel_not_found | The channel is gone or archived |
| 403 | not_in_channel | A private conversation the bot has since left |
Errors come back as {"ok": false, "error": "<code>"} rather than Slack's bare
text.