Skip to content

Commit aae6c3a

Browse files
svelleCopilot
andauthored
Clarify message attachment rendering in webhooks (#1499)
* Clarify message attachment rendering in webhooks Added a section explaining message attachment rendering requirements for webhooks. * Update site/content/integrate/webhooks/incoming/_index.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e63b57d commit aae6c3a

File tree

1 file changed

+3
-0
lines changed
  • site/content/integrate/webhooks/incoming

1 file changed

+3
-0
lines changed

site/content/integrate/webhooks/incoming/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,5 +197,8 @@ Some common error messages include:
197197
198198
If your integration prints the JSON payload data instead of rendering the generated message, make sure your integration is returning the `application/json` content-type.
199199
200+
#### Why aren't my message attachments rendering?
201+
Make sure `attachments` is a **top-level field** in your webhook JSON payload, not nested inside `props`. While the REST API uses `props.attachments`, incoming webhooks expect `attachments` at the top level.
202+
200203
For further assistance, review the {{< newtabref href="https://forum.mattermost.org/t/how-to-use-the-troubleshooting-forum/150" title="Troubleshooting forum" >}} for previously reported errors, or {{< newtabref href="https://mattermost.com/pl/default-ask-mattermost-community/" title="join the Mattermost user community" >}} for troubleshooting help.
201204

0 commit comments

Comments
 (0)