Search
POST /api/channels/:channelId/threads
name
parentMessageId
const thread = await client.createThread('channel-id', 'Discussion', 'parent-msg-id')
thread = client.create_thread("channel-id", "Discussion", "parent-msg-id")
GET /api/channels/:channelId/threads
const threads = await client.listThreads('channel-id')
threads = client.list_threads("channel-id")
GET /api/threads/:id
const thread = await client.getThread('thread-id')
thread = client.get_thread("thread-id")
PATCH /api/threads/:id
const updated = await client.updateThread('thread-id', { name: 'New Name' })
updated = client.update_thread("thread-id", name="New Name")
DELETE /api/threads/:id
await client.deleteThread('thread-id')
client.delete_thread("thread-id")
GET /api/threads/:id/messages
limit
cursor
const messages = await client.getThreadMessages('thread-id', 50)
messages = client.get_thread_messages("thread-id", limit=50)
POST /api/threads/:id/messages
content
const msg = await client.sendToThread('thread-id', 'Thread reply!')
msg = client.send_to_thread("thread-id", "Thread reply!")