Team messaging: post, read, and manage channels
https://slack.com/api/chat.postMessage
| Param | Type | Required | Description |
|---|---|---|---|
| channel | string | required | Channel ID, private group ID, or user ID for a DM (e.g. 'C0123456') |
| text | string | required | Message text (fallback text if 'blocks' is also given) |
| thread_ts | string | optional | Timestamp of a parent message, to reply in a thread |
| blocks | array | optional | Block Kit layout blocks (rich formatting), as an array of block objects |
| unfurl_links | boolean | optional | Whether to unfurl links in the message |
/conversations.list
| Param | Type | Required | Description |
|---|---|---|---|
| types | string | optional | Comma-separated conversation types to include: public_channel, private_channel, mpim, im (default: public_channel) |
| exclude_archived | boolean | optional | Exclude archived conversations |
| limit | integer | optional | Maximum results to return per page (max 1000, default 100) |
| cursor | string | optional | Pagination cursor from a previous response's response_metadata.next_cursor |
/conversations.history
| Param | Type | Required | Description |
|---|---|---|---|
| channel | string | required | Conversation ID to fetch history for |
| limit | integer | optional | Maximum messages to return (default 100, max 999) |
| oldest | string | optional | Only messages after this Unix timestamp |
| latest | string | optional | Only messages before this Unix timestamp |
| cursor | string | optional | Pagination cursor from a previous response's response_metadata.next_cursor |
/conversations.info
| Param | Type | Required | Description |
|---|---|---|---|
| channel | string | required | Conversation ID to look up |
| include_num_members | boolean | optional | Include the member count in the response |
/conversations.create
| Param | Type | Required | Description |
|---|---|---|---|
| name | string | required | Name for the new channel (lowercase, no spaces, max 80 chars) |
| is_private | boolean | optional | Create a private channel instead of a public one |
/users.list
| Param | Type | Required | Description |
|---|---|---|---|
| limit | integer | optional | Maximum results per page (recommended max 200) |
| cursor | string | optional | Pagination cursor from a previous response's response_metadata.next_cursor |
/users.info
| Param | Type | Required | Description |
|---|---|---|---|
| user | string | required | User ID to look up (e.g. 'U0123456') |
/reactions.add
| Param | Type | Required | Description |
|---|---|---|---|
| channel | string | required | Channel ID where the message was posted |
| timestamp | string | required | Timestamp ('ts') of the message to react to |
| name | string | required | Emoji name without colons (e.g. 'thumbsup') |