From a9f5918a9df9fca2fcab97e2c7e623187755ae78 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Tue, 29 Sep 2015 08:38:26 -0400 Subject: Update incoming webhooks to hide DMs and accept direct JSON payloads. --- doc/integrations/webhook/incoming.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/integrations/webhook') diff --git a/doc/integrations/webhook/incoming.md b/doc/integrations/webhook/incoming.md index a48448cc5..e391cba92 100644 --- a/doc/integrations/webhook/incoming.md +++ b/doc/integrations/webhook/incoming.md @@ -20,6 +20,11 @@ You can send the message by including a JSON string as the `payload` parameter i payload={"text": "Hello, this is some text."} ``` +In addition, if `Content-Type` is specified as `application/json` in the headers of the HTTP request then the body of the request can be direct JSON. +``` +{"text": "Hello, this is some text."} +``` + It is also possible to post richly formatted messages using [Markdown](../../help/enduser/markdown.md). ``` payload={"text": "# A Header\nThe _text_ below **the** header."} -- cgit v1.2.3-1-g7c22