# No channel or user can be found with the given to\_jid

**URL:** <https://devforum.zoom.us/t/no-channel-or-user-can-be-found-with-the-given-to-jid/55255>\
**Category:** API and Webhooks\
**Created:** [August 5, 2021, 5:00am UTC](https://devforum.zoom.us/t/no-channel-or-user-can-be-found-with-the-given-to-jid/55255 "2021-08-05T05:00:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkymadurai](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@venkymadurai](https://devforum.zoom.us/u/venkymadurai)\
**Post date:** [August 5, 2021, 5:00am UTC](https://devforum.zoom.us/t/no-channel-or-user-can-be-found-with-the-given-to-jid/55255/1 "2021-08-05T05:00:46Z")

</div>

Yes, I have seen the docs for sending and editing and deleting messages.

Firstly, the doc is a bit confusing:

The main table says that required fields are robot\_jid, account\_id and content

However, the example below the table has to\_jid in the request body!

Anyway…

I send a message to a user as a chatbot. This is a one to one chat between a chatbot and a user.

Message gets delivered to user, I can see in the Zoom windows app. When the message is sent from the chatbot, I get a json response which has the message\_id in it with other details.

I shame-lessly use the code from [New-be needs a PHP sample - #2 by Ojus](https://devforum.zoom.us/t/new-be-needs-a-php-sample/4735/2) : with minor changes for editing messages ( I use the message\_id from the previous response, and use the other parameters I used to send the message but I always get the following when I try to edit the previous message:

“{\n\t"code”:7004,\n\t"message":“No channel or user can be found with the given to\_jid.”\n}"

I send the CURL request to my own server and see that all data is being “PUTted” properly.

Please help

Thanks

---

<div class="post-metadata">

**Author:** ![venkymadurai](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@venkymadurai](https://devforum.zoom.us/u/venkymadurai)\
**Post date:** [August 5, 2021, 6:03am UTC](https://devforum.zoom.us/t/no-channel-or-user-can-be-found-with-the-given-to-jid/55255/2 "2021-08-05T06:03:29Z")

</div>

I can’t post multiple links yet… so here’s some additional info;

The JSON I send is

{“robot\_jid”:“my\_actual\_robot\_jid\_AT\_xmpp.zoom.us”,“to\_jid”:“the\_to\_jid\_at\_xmpp.zoom.us”,“account\_id”:“myAccountID”,“content”:{“head”:{“text”:“the\_edited\_text”}}}

Which I send to [https://api.zoom.us/v2/im/chat/messages/myMessageNumber](https://api.zoom.us/v2/im/chat/messages/myMessageNumber)"

---

<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:** [August 6, 2021, 1:22am UTC](https://devforum.zoom.us/t/no-channel-or-user-can-be-found-with-the-given-to-jid/55255/3 "2021-08-06T01:22:39Z")

</div>

Hey @venkymadurai,

Thank you for reaching out to the Zoom Developer Forum. I’m not sure what the problem is here but a good method is to retain the object sent to your endpoint when a user installs your app. You can use that data to send them a message directly and compare it with what you are sending now.

Let me know if that helps. If not, please send an email to [developersupport@zoom.us](mailto:developersupport@zoom.us) with a link to this thread. We can use that to set up a meeting.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![venkymadurai](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@venkymadurai](https://devforum.zoom.us/u/venkymadurai)\
**Post date:** [August 6, 2021, 11:36am UTC](https://devforum.zoom.us/t/no-channel-or-user-can-be-found-with-the-given-to-jid/55255/4 "2021-08-06T11:36:15Z")

</div>

Hi Max

I was trying to edit a message sent by the chatbot.

The user is in a one to one conversation with the bot.

As per your reply, I shall email the Dev Support team

Thanks!

---

<div class="post-metadata">

**Author:** ![venkymadurai](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@venkymadurai](https://devforum.zoom.us/u/venkymadurai)\
**Post date:** [August 6, 2021, 3:31pm UTC](https://devforum.zoom.us/t/no-channel-or-user-can-be-found-with-the-given-to-jid/55255/5 "2021-08-06T15:31:36Z")

</div>

I feel like an idiot

When i was preparing the files to send to your Dev Support email, I discovered an error in my code.

The accountId had been wrong when the bot was editing the message. Though i could have sworn that it was the correct one. I noticed later that the accountId in the previous payload was different than the one i was sending

All good now

Thanks!

---

<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:** [August 9, 2021, 3:51pm UTC](https://devforum.zoom.us/t/no-channel-or-user-can-be-found-with-the-given-to-jid/55255/6 "2021-08-09T15:51:11Z")

</div>

Glad Max could help and that you figured it out!

---

<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:** [August 9, 2021, 3:51pm UTC](https://devforum.zoom.us/t/no-channel-or-user-can-be-found-with-the-given-to-jid/55255/7 "2021-08-09T15:51:14Z")

</div>

Closed on August 9, 2021, 3:51pm UTC


