# "Required param is null or missing" returned when using chat bot api to send message

**URL:** <https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675>\
**Category:** API and Webhooks\
**Created:** [August 28, 2018, 9:00am UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675 "2018-08-28T09:00:07Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![fei\_yang](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@fei\_yang](https://devforum.zoom.us/u/fei_yang)\
**Post date:** [August 28, 2018, 9:00am UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/1 "2018-08-28T09:00:07Z")

</div>

Followed the chat bot guide, " **{“message”:“Required param is null or missing”,“code”:7001}"** &nbsp;returned when send message to a channel.The&nbsp; request body is below:

{  
&nbsp; &nbsp; “robot\_jid”:“[psjmXXXXXXXiq3w@xmpp.zoom.us](mailto:psjmXXXXXXXiq3w@xmpp.zoom.us)”,&nbsp; &nbsp;----&nbsp;&nbsp; **_the robot id of the market app_**  
&nbsp; &nbsp; “to\_jid”:“[7f9cc71XXXXXXX267007a73@conference.xmpp.zoom.us](mailto:7f9cc71XXXXXXX267007a73@conference.xmpp.zoom.us)”,&nbsp; —&nbsp;&nbsp;**_a group jid of [list channels] command response_**  
&nbsp; &nbsp; “account\_jid”:“XMdUXXXXXXXXXvp2Li8Nw5yw”,&nbsp; &nbsp; —&nbsp;**_a user id of [list users] command respose_**  
_&nbsp; &nbsp;&nbsp;_“content”:{  
&nbsp; &nbsp; &nbsp; &nbsp; “head”:{  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “text”:“main title”,  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “style”:{  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “color”:"#000",  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “bold”:true  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;},  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “subHead”:{  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “text”:“system message”  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }  
&nbsp; &nbsp; &nbsp; &nbsp; },  
&nbsp; &nbsp; &nbsp; &nbsp; “body”:[{  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “type”:“message”,  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;“text”:“Message body”  
&nbsp; &nbsp; &nbsp; &nbsp; }]  
&nbsp; &nbsp; }  
}

Need help…

Further question is [Why the chat channels can be listed with api , but can’t be created] ?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [August 28, 2018, 4:29pm UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/2 "2018-08-28T16:29:26Z")

</div>

Hi Fei,&nbsp;

Can you change account\_jid to account\_id?

Also, you can create chat channels via our Create an IM Group API -&nbsp;[https://devdocs.zoom.us/v1.0/reference#imgroupspost](https://devdocs.zoom.us/v1.0/reference#imgroupspost).

Thanks

---

<div class="post-metadata">

**Author:** ![fei\_yang](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@fei\_yang](https://devforum.zoom.us/u/fei_yang)\
**Post date:** [August 29, 2018, 6:39am UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/3 "2018-08-29T06:39:05Z")

</div>

Thanks Michael. Followed the api reference of “_[https://devdocs.zoom.us/v1.0/reference#imchatmessagespost](https://devdocs.zoom.us/v1.0/reference#imchatmessagespost)_”, the parameter is " **account\_jid**". May be the reference should be corrected。

But after using “account\_id”&nbsp;instead of “account\_jid”,&nbsp; it still not working. " **The user does not have authorization, the application cannot send the message**" returned when using development client id&securet ,&nbsp; and " **token do not match robotJid, the robotJid :XXXXXXXX**" returned when using production client id&securet.

Need your help.

ps:&nbsp;I didn’t summited my app in the market yet, the submit proccess stopped in the last step.&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [August 29, 2018, 9:21pm UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/4 "2018-08-29T21:21:17Z")

</div>

Hi Fei,&nbsp;

I’ll reach out to our Engineers to see why the error is happening and follow up with you asap.&nbsp;

Thanks

---

<div class="post-metadata">

**Author:** ![fei\_yang](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@fei\_yang](https://devforum.zoom.us/u/fei_yang)\
**Post date:** [August 30, 2018, 8:34am UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/5 "2018-08-30T08:34:06Z")

</div>

Thanks…If there is any progress， please contact me asap.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [August 30, 2018, 11:19pm UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/6 "2018-08-30T23:19:30Z")

</div>

Hi Fei,&nbsp;

It appears to be an error on our end, we did not include the redirect url within the [sendbotmessage.js](https://github.com/zoom/zoom-bot-api/blob/master/sendBotMessage.js) file. We have updated it, so now after you go to the redirect url your bot message should work.&nbsp;

Thanks

&nbsp;

---

<div class="post-metadata">

**Author:** ![fei\_yang](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@fei\_yang](https://devforum.zoom.us/u/fei_yang)\
**Post date:** [August 31, 2018, 4:02am UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/7 "2018-08-31T04:02:08Z")

</div>

I had noticed the issue of [sendbotmessage.js], and tested the api by postman with token which returned after user login.

Currently, it still doesn’t working…

I have no idea to [**token do not match robotJid]. I**&nbsp;copied the robotid from below location, and confirmed that I have used the right client id&secret.

![](https://support.zoom.us/hc/user_images/Mm2MiEva4Wrbkfi3p5JeRQ.png)

Did I missed something?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [August 31, 2018, 2:58pm UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/8 "2018-08-31T14:58:36Z")

</div>

Hi Fei,&nbsp;

Could you send us your API request for the chat bot to [developersupport@zoom.us](mailto:developersupport@zoom.us) along with your accountID, token info etc… so that we can take a closer look?

Thanks

---

<div class="post-metadata">

**Author:** ![fei\_yang](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@fei\_yang](https://devforum.zoom.us/u/fei_yang)\
**Post date:** [September 1, 2018, 6:24am UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/9 "2018-09-01T06:24:51Z")

</div>

Detail has been sended by email.Thank you.

---

<div class="post-metadata">

**Author:** ![hancojvr](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@hancojvr](https://devforum.zoom.us/u/hancojvr)\
**Post date:** [April 7, 2019, 6:42pm UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/10 "2019-04-07T18:42:51Z")

</div>

Has this been resolved ?

I ran into the exact same two issues… first the account\_jid/account\_id, and now stuck on “The user does not have authorization, the application cannot send the message”

---

<div class="post-metadata">

**Author:** ![soundaraj.thevan](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@soundaraj.thevan](https://devforum.zoom.us/u/soundaraj.thevan)\
**Post date:** [April 8, 2019, 5:36am UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/11 "2019-04-08T05:36:38Z")

</div>

“message”: “token do not match robotJid

any one help to solve this

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [April 26, 2019, 8:14pm UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/12 "2019-04-26T20:14:49Z")

</div>

Hi @soundaraj.thevan,

When you’re generating a token are you using the test url or the publishable url? Also be sure to your BotJID matches that is in your app matches to what is in your code.

 ![29%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/55bd4548ae50667471063434584077b258104ee1.png)

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [April 26, 2019, 8:20pm UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/13 "2019-04-26T20:20:17Z")

</div>

Hi @hancojvr,

How are you generating your token and is the account\_jid your current accountID?  
Can you send a copy of the payload to [developersupport@zoom.us](mailto:developersupport@zoom.us)?

Thanks

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:07pm UTC](https://devforum.zoom.us/t/required-param-is-null-or-missing-returned-when-using-chat-bot-api-to-send-message/1675/14 "2020-08-21T18:07:45Z")

</div>


