# Chatbot to\_jid and account\_id

**URL:** <https://devforum.zoom.us/t/chatbot-to-jid-and-account-id/28002>\
**Category:** API and Webhooks\
**Created:** [August 24, 2020, 6:26pm UTC](https://devforum.zoom.us/t/chatbot-to-jid-and-account-id/28002 "2020-08-24T18:26:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dayan.sivarajah](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@dayan.sivarajah](https://devforum.zoom.us/u/dayan.sivarajah)\
**Post date:** [August 24, 2020, 6:26pm UTC](https://devforum.zoom.us/t/chatbot-to-jid-and-account-id/28002/1 "2020-08-24T18:26:54Z")

</div>

**Description**  
i’ve created a chant bot and i want to send custom message to users. how do i get the to\_jid and account\_id

**Error**  
{

```
"code": 7004,

"message": "No channel or user can be found with the given to_jid."

```

}

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
oAuth

**Which Endpoint/s?**  
[https://api.zoom.us/v2/im/chat/messages](https://api.zoom.us/v2/im/chat/messages)

**How To Reproduce (If applicable)**  
{  
“robot\_jid”: “[v15mxio5cotocjrhq6gtzqhq@xmpp.zoom.us](mailto:v15mxio5cotocjrhq6gtzqhq@xmpp.zoom.us)”,  
“to\_jid”: “z2Q0eesYSgiA2WFMk5hU5A”,  
“account\_id”: “tWUc33MVRuiIxJ0IqnXPYA”,  
“content”: {  
“head”: {  
“text”: “Hello from dayan.S”  
}  
}  
}

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
i want to send chat messages to users, but since you guys don’t have a in meeting custom chat to users im trying to use the chatbot.  
if i use  
/chat/users/me/messages

i get an  
{

```
"id": "8363458f-332f-4568-9423-677019fd4cef"

```

}  
as a reply but i don’t see any chant messages on chat client. Please help, which is the appropriate way to send custom message to users.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 27, 2020, 6:00pm UTC](https://devforum.zoom.us/t/chatbot-to-jid-and-account-id/28002/2 "2020-08-27T18:00:02Z")

</div>

Hey @dayan.sivarajah,

Checkout our docs here about how to get the to\_jid and account\_id:

> **[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...

You can also get a users jid and account\_id via the Get User endpoint:

> **[Get a User - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user)**
>
> A Zoom account can have one or more users. Use this API to view information of a specific user on a Zoom account.
> Scopes: user:read:admin user:read
> 
> Ra...

Let me know if that helps! 🙂

Thanks,  
Tommy

---

<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:** [September 27, 2020, 4:00am UTC](https://devforum.zoom.us/t/chatbot-to-jid-and-account-id/28002/3 "2020-09-27T04:00:06Z")

</div>

Closed on September 27, 2020, 4:00am UTC

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