# How to send a chat message to a public channel?

**URL:** <https://devforum.zoom.us/t/how-to-send-a-chat-message-to-a-public-channel/52509>\
**Category:** API and Webhooks\
**Created:** [June 15, 2021, 6:05pm UTC](https://devforum.zoom.us/t/how-to-send-a-chat-message-to-a-public-channel/52509 "2021-06-15T18:05:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsgreen](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jsgreen](https://devforum.zoom.us/u/jsgreen)\
**Post date:** [June 15, 2021, 6:05pm UTC](https://devforum.zoom.us/t/how-to-send-a-chat-message-to-a-public-channel/52509/1 "2021-06-15T18:05:49Z")

</div>

**Description**  
I’m trying to use the /chat/users/:userId/messages API to post a message to a chat channel using postman. The message gets posted fine when using “to\_contact” but doesn’t work when using “to\_channel”

**Error**  
{

```
"code": 4130,

"message": "Channel does not exist: test4."

```

}

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

**Which Endpoint/s?**  
{{baseUrl}}/chat/users/:userId/messages?to\_channel=test4

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Request URL / Headers (with credentials) / Body
2. See error message

**Screenshots (If applicable)**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/6/3676c63fb2fe5b619a82b3e5e5a9b0096aecf34d.png)

The channel test4 exists.

---

<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:** [June 16, 2021, 8:43pm UTC](https://devforum.zoom.us/t/how-to-send-a-chat-message-to-a-public-channel/52509/2 "2021-06-16T20:43:42Z")

</div>

Hi @jsgreen,

Can you confirm you’re passing the correct value for channel ID? I believe this should be an alphanumeric ID, and can be retrieved by calling this endpoint:

> **[List user's channels - Chat Channels - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/chat-channels/getchannels)**
>
> Zoom chat channels allow users to communicate via chat in private or public groups. Use this API to list a user's chat channels. 
> 
> Scope: chat\_channel:r...

Let me know if this helps—Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![jsgreen](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jsgreen](https://devforum.zoom.us/u/jsgreen)\
**Post date:** [June 16, 2021, 9:23pm UTC](https://devforum.zoom.us/t/how-to-send-a-chat-message-to-a-public-channel/52509/3 "2021-06-16T21:23:37Z")

</div>

Tried that already, doesn’t show any data.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/2/922072dc3b3bed6222c7f73e3bc7737aae1547ef.png)

---

<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:** [June 17, 2021, 9:44pm UTC](https://devforum.zoom.us/t/how-to-send-a-chat-message-to-a-public-channel/52509/4 "2021-06-17T21:44:13Z")

</div>

Hi @jsgreen,

Thanks for confirming. Can you send the full raw request with values (user ID, channel ID) to me at [developersupport@zoom.us](mailto:developersupport@zoom.us), along with the account ID? I’d like to take a closer look and will be happy to escalate this to Engineering if needed.

Thanks,  
Will

---

<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:** [July 18, 2021, 7:45am UTC](https://devforum.zoom.us/t/how-to-send-a-chat-message-to-a-public-channel/52509/5 "2021-07-18T07:45:06Z")

</div>

Closed on July 18, 2021, 7:45am UTC

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