# Problems trying to post to a chat from Chatbot

**URL:** <https://devforum.zoom.us/t/problems-trying-to-post-to-a-chat-from-chatbot/45854>\
**Category:** API and Webhooks\
**Created:** [March 16, 2021, 8:45pm UTC](https://devforum.zoom.us/t/problems-trying-to-post-to-a-chat-from-chatbot/45854 "2021-03-16T20:45:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![markv](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/markv/32/24480_2.png) [@markv](https://devforum.zoom.us/u/markv)\
**Post date:** [March 16, 2021, 8:45pm UTC](https://devforum.zoom.us/t/problems-trying-to-post-to-a-chat-from-chatbot/45854/1 "2021-03-16T20:45:23Z")

</div>

**Description**  
My goal is to post a chat message to a specific channel from a standalone service using chatbot credentials. The service successfully gets an access token from /oauth/token using the client id/secret. It then uses the token in the Authorization header of a POST /v2/im/chat/messages request like this:

```
{
  "robot_jid": "{my_chatbot_id}@xmpp.zoom.us",
  "to_jid": "{my_user_id}@xmpp.zoom.us",
  "account_id": "{my_user_id}",
  "content": {
    "head": {
      "text": "Hello World"
    }
  }
}

```

According tot he API docs I should be able to send a chat message to a specific user, which is what I think I’ve got in the json above. The chatbot has these scopes:

```
imchat:bot imchat:write:admin

```

**Error**  
The response is 403 with this info:

```
{
    "code": 7004,
    "message": "No channel or user can be found with the given to_jid."
} 

```

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Chatbot (not installed on the client, since that is not our use case)

**Which Endpoint/s?**  
/v2/im/chat/messages

---

<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:** [March 16, 2021, 10:53pm UTC](https://devforum.zoom.us/t/problems-trying-to-post-to-a-chat-from-chatbot/45854/2 "2021-03-16T22:53:02Z")

</div>

Hey @markv,

Thank you for reaching out to the Zoom Developer Forum. Please send an email to [developersupport@zoom.us](mailto:developersupport@zoom.us) with a link to this thread. In that email, please include the full request body that you’re using.

I’ll investigate the issue further from there.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![markv](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/markv/32/24480_2.png) [@markv](https://devforum.zoom.us/u/markv)\
**Post date:** [March 16, 2021, 11:21pm UTC](https://devforum.zoom.us/t/problems-trying-to-post-to-a-chat-from-chatbot/45854/3 "2021-03-16T23:21:22Z")

</div>

Done and done. #10203403

---

<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:** [March 17, 2021, 8:22pm UTC](https://devforum.zoom.us/t/problems-trying-to-post-to-a-chat-from-chatbot/45854/4 "2021-03-17T20:22:08Z")

</div>

Hey @markv,

Thank you for submitting a ticket, I’ll be sure to follow-up with you there.

Thanks,  
Max

---

<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:** [April 17, 2021, 6:22am UTC](https://devforum.zoom.us/t/problems-trying-to-post-to-a-chat-from-chatbot/45854/5 "2021-04-17T06:22:55Z")

</div>

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