Skip to content

Discuss channels

Channels, what's said in them, and posting there as yourself. Every request needs an API key; the examples read it from $MAVATU_API_KEY. How lists, dates, money and errors work is in the API guide.

The channel object

A channel in Discuss: public ones anyone on the team can join, and private ones for those added to them.

objectstring

Always channel.

idstring
namestring

Without its #: launch-plan.

kindstring

public: anyone on the team can find and join it; private: only those added to it.

topicstring
purposestring
externalboolean

Shared with people from outside the team.

member_countinteger
joinedboolean

The key's person is in it.

archived_attimeor null

When it was archived: it can be read, not posted in.

last_message_attimeor null
urlstring
created_attime
The channel object
{
"object": "channel",
"id": "chn_01jc8w3n6q0t4x7a1d5g9j2m6p",
"name": "honeybee-rebrand",
"kind": "public",
"topic": "Honeybee's new look, from brief to launch",
"purpose": "Everything about the Honeybee Bakery rebrand.",
"external": false,
"member_count": 6,
"joined": true,
"archived_at": null,
"last_message_at": "2026-11-12T10:06:12Z",
"url": "https://app.mavatu.com/kettle-kite/discuss/chn_01jc8w3n6q0t4x7a1d5g9j2m6p",
"created_at": "2026-10-01T09:30:00Z"
}

List channels

GET/channels

The channels the key's person is in, and the public ones they could join, the newest first. Archived ones only with include_archived. Direct messages aren't listed.

Filters and paging

include_archivedboolean

Archived channels too.

limitinteger

How many to return, 1 to 100. Default 25.

cursorstring

next_cursor from the previous page.

Returns

A list of channels.

GET /channels
curl "https://app.mavatu.com/api/v1/channels?limit=100" \
-H "Authorization: Bearer $MAVATU_API_KEY"

The message object

Something said in a Discuss channel, or a reply in one of its threads.

objectstring

Always message.

idstring
channel{id, name}
kindstring

message: what someone wrote; system: what happened in the channel (someone joined, the topic changed); feed: an update about a record the channel follows; webhook: posted by another tool through the channel's incoming webhook; meeting: a call started there.

author{id, name}or null

Who wrote it; null for feed and webhook posts.

bodystring

Markdown. Mentions are @[Name](mem_…).

thread_root_idstringor null

The first message of the thread it replies in; null for a message in the channel itself.

reply_countinteger

Replies in its thread, for a thread's first message.

viastringor null

What it was posted through: an incoming webhook's name, an AI app, or API.

urlstring
created_attime
edited_attimeor null
The message object
{
"object": "message",
"id": "msg_01jd2k0b4f7j1m5p8s2v6y9c3g",
"channel": {
"id": "chn_01jc8w3n6q0t4x7a1d5g9j2m6p",
"name": "honeybee-rebrand"
},
"kind": "message",
"author": {
"id": "mem_01jcm9s346q3d25vt4f5v37e3s",
"name": "Imogen Hale"
},
"body": "Priya signed the proposal 🎉 @[Wren Abbott](mem_01jc3e28jt97kb6cq643dzvmxx), can you set up the kickoff?",
"thread_root_id": null,
"reply_count": 2,
"via": null,
"url": "https://app.mavatu.com/kettle-kite/discuss/chn_01jc8w3n6q0t4x7a1d5g9j2m6p?m=msg_01jd2k0b4f7j1m5p8s2v6y9c3g",
"created_at": "2026-11-12T10:06:12Z",
"edited_at": null
}

List a channel's messages

GET/channels/{id}/messages

Messages in a channel, thread replies included, the newest first. thread_root_id reads one thread's replies.

Path

idstringrequired

The message's ID.

Filters and paging

thread_root_idstring

Only the replies in this thread, by its first message's ID.

limitinteger

How many to return, 1 to 100. Default 25.

cursorstring

next_cursor from the previous page.

Returns

A list of messages.

GET /channels/{id}/messages
curl "https://app.mavatu.com/api/v1/channels/msg_01jd2k0b4f7j1m5p8s2v6y9c3g/messages?limit=10" \
-H "Authorization: Bearer $MAVATU_API_KEY"

Post a message

POST/channels/{id}/messages

Post in a channel as the key's person, or reply in a thread with thread_root_id. Posting in a public channel they're not in joins it. Markdown works; mention someone with @[Their Name](mem_…), and they're told.

Needs a key that can read and change. Send an Idempotency-Key to try it again safely.

Path

idstringrequired

The message's ID.

Body

idstring

Your own ID for it (msg_…), or leave it out. Sending the same ID again returns the first message.

bodystringrequired

Markdown. Mention someone with @[Their Name](mem_…) and they're told; @channel tells everyone in it.

thread_root_idstring

Reply in a thread: its first message's ID.

Returns

The message, with 201 Created.

POST /channels/{id}/messages
curl -X POST https://app.mavatu.com/api/v1/channels/msg_01jd2k0b4f7j1m5p8s2v6y9c3g/messages \
-H "Authorization: Bearer $MAVATU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": "Priya signed the proposal 🎉 @[Wren Abbott](mem_01jc3e28jt97kb6cq643dzvmxx), can you set up the kickoff?"
}'