# 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:** 5

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [February 22, 2024, 1:30pm UTC](https://meta.discourse.org/t/read-public-chat-channel-content-from-api/296218/5 "2024-02-22T13:30:08Z")

</div>

We don’t have any official API documentation for chat ATM.

To get the channel information the endpoint is: `/chat/api/channels/:id.json`

If you want to access the messages: `/chat/api/channels/:id/messages.json` with available params being:

```plaintext
fetch_from_last_read=true
page_size=10
target_message_id=23323
direction=past/future

```

---

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