# Incoming webhook: Internal Server Error

**URL:** <https://devforum.zoom.us/t/incoming-webhook-internal-server-error/47666>\
**Category:** API and Webhooks\
**Created:** [April 9, 2021, 7:54pm UTC](https://devforum.zoom.us/t/incoming-webhook-internal-server-error/47666 "2021-04-09T19:54:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![achillean](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@achillean](https://devforum.zoom.us/u/achillean)\
**Post date:** [April 9, 2021, 7:54pm UTC](https://devforum.zoom.us/t/incoming-webhook-internal-server-error/47666/1 "2021-04-09T19:54:59Z")

</div>

I’m trying to send a message to the Incoming Webhook app that we’ve enabled on a channel. I can send the sample message from the article but using the `format=full` causes an `Internal Server Error` (HTTP status 500) response by Zoom.

I’ve tried a few different formats but none of them have worked. I’m guessing that I’m simply not formulating the message correctly. Here is a sample JSON body that is being sent:

```json
{
    "content": {
        "head": {
            "text": "something"
        },
        "body": [{
            "type": "message",
            "text": "content"
        }]
    }
}

```

I’m guessing that Authorization is working correctly as I’m able to send messages in the other formats - only the `full` format is creating the Internal Server Error.

1. Do you have examples of sending more advanced messages (in terms of formatting) to the Incoming Webhook app?
2. Is there a different `format` that I should be using?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 9, 2021, 10:23pm UTC](https://devforum.zoom.us/t/incoming-webhook-internal-server-error/47666/2 "2021-04-09T22:23:26Z")

</div>

Hey @achillean,

Thank you for reaching out to the Zoom Developer Forum. Just to clarify, you are seeing the 500 response when attempting to send a message through a Chat Bot using the method described here:

> **[Send, Edit, and Delete Messages - Chatbots - Documentation](https://marketplace.zoom.us/docs/guides/chatbots/send-edit-and-delete-messages#send-messages)**
>
> Send, Edit, and Delete Messages
> 
> New: Chatbot messages now support Markdown and @mentions!
> 
> In addition to sending messages, Chatbots can edit and delet...

Is that correct? If so, make sure that you are using a request body similar to what is shown in that example - i.e. using the [base JSON structure](https://marketplace.zoom.us/docs/guides/chatbots/customizing-messages#base-json-structure):

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/a/eaadde79f9b8a03fad5337628eae0b5de25df75a.png)

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![achillean](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@achillean](https://devforum.zoom.us/u/achillean)\
**Post date:** [April 9, 2021, 10:38pm UTC](https://devforum.zoom.us/t/incoming-webhook-internal-server-error/47666/3 "2021-04-09T22:38:07Z")

</div>

No, unfortunately it doesn’t. I also tried sending the message:

```auto
{
    "content": {
        "head": {
            "text": "Hello world"
        }
    }
}

```

The above also produced an internal server error for me. Note that the other properties aren’t provided by the webhook information. Can you share an example that would work with the Incoming Webhook URL?

---

<div class="post-metadata">

**Author:** ![achillean](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@achillean](https://devforum.zoom.us/u/achillean)\
**Post date:** [April 11, 2021, 12:37am UTC](https://devforum.zoom.us/t/incoming-webhook-internal-server-error/47666/4 "2021-04-11T00:37:17Z")

</div>

I found the problem. I wasn’t setting the “Content-Type: application/json” header. Once I set that the message JSON in my previous comments worked.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [April 12, 2021, 3:45pm UTC](https://devforum.zoom.us/t/incoming-webhook-internal-server-error/47666/5 "2021-04-12T15:45:32Z")

</div>

Glad you’ve resolved the issue @achillean!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 13, 2021, 1:46am UTC](https://devforum.zoom.us/t/incoming-webhook-internal-server-error/47666/6 "2021-05-13T01:46:21Z")

</div>

Closed on May 13, 2021, 1:46am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
