# Read public chat channel content from API

**URL:** <https://meta.discourse.org/t/read-public-chat-channel-content-from-api/296218>\
**Category:** Development\
**Tags:** chat, rest-api\
**Created:** [February 21, 2024, 7:10pm UTC](https://meta.discourse.org/t/read-public-chat-channel-content-from-api/296218 "2024-02-21T19:10:24Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jwilkey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jwilkey/32/303698_2.png) [@jwilkey](https://meta.discourse.org/u/jwilkey)\
**Post date:** [March 11, 2024, 9:38pm UTC](https://meta.discourse.org/t/read-public-chat-channel-content-from-api/296218/7 "2024-03-11T21:38:35Z")

</div>

Typed too soon, I figured it out, but I’m guessing this is “unofficial”

```plaintext
curl --location 'https://MY_DISCOURSE.com/chat/4.json' \
--header 'Content-Type: application/json' \
--header 'Api-Key: THE_KEY' \
--header 'Api-Username: THE_ACTING_USER' \
--data '{ "message": "My great chat message!"}'

```

---

_[View the full topic](https://meta.discourse.org/t/read-public-chat-channel-content-from-api/296218)._
