Functions

chat-delete

fn (request: ChatDeleteRequest): ChatDeleteResponse
fn (request: ChatDeleteRequest, opts: Map): ChatDeleteResponse

POST /chat.delete - Delete a message from a channel. Requires the channel ID and message timestamp (ts).

Example

response ::slack::messaging/chat-delete(::slack::messaging/ChatDeleteRequest({
  channel: "C1234567",
  ts: "1234567890.123456"
}))
response.ok  // => true

chat-delete-scheduled-message

fn (request: ChatDeleteScheduledMessageRequest): ChatDeleteScheduledMessageResponse
fn (request: ChatDeleteScheduledMessageRequest, opts: Map): ChatDeleteScheduledMessageResponse

POST /chat.deleteScheduledMessage - Delete a pending scheduled message before it is sent. Requires the scheduled_message_id from the original schedule response.

fn (request: ChatGetPermalinkRequest): ChatGetPermalinkResponse
fn (request: ChatGetPermalinkRequest, opts: Map): ChatGetPermalinkResponse

GET /chat.getPermalink - Retrieve a permalink URL for a specific message. The permalink can be shared and will deep-link to the message in Slack.

Example

response ::slack::messaging/chat-get-permalink(::slack::messaging/ChatGetPermalinkRequest({
  channel: "C1234567",
  message_ts: "1234567890.123456"
}))
response.permalink  // => "https://myteam.slack.com/archives/C1234567/p1234567890123456"

chat-me-message

fn (request: ChatMeMessageRequest): ChatMeMessageResponse
fn (request: ChatMeMessageRequest, opts: Map): ChatMeMessageResponse

POST /chat.meMessage - Send a /me message. These appear as italicized action text (e.g., "user is typing...").

chat-post-ephemeral

fn (request: ChatPostEphemeralRequest): ChatPostEphemeralResponse
fn (request: ChatPostEphemeralRequest, opts: Map): ChatPostEphemeralResponse

POST /chat.postEphemeral - Send an ephemeral message visible only to a specific user. The message disappears when the user navigates away. Requires both channel and user fields.

chat-post-message

fn (request: ChatPostMessageRequest): ChatPostMessageResponse
fn (request: ChatPostMessageRequest, opts: Map): ChatPostMessageResponse

POST /chat.postMessage - Send a message to a channel. Provide text for simple messages or blocks for rich layouts. Use thread_ts to reply in a thread.

Example

response ::slack::messaging/chat-post-message(::slack::messaging/ChatPostMessageRequest({
  channel: "C1234567",
  text: "Hello from Hot!"
}))
response.channel  // => "C1234567"
response.ts       // => "1234567890.123456"

chat-schedule-message

fn (request: ChatScheduleMessageRequest): ChatScheduleMessageResponse
fn (request: ChatScheduleMessageRequest, opts: Map): ChatScheduleMessageResponse

POST /chat.scheduleMessage - Schedule a message for later. The post_at field is a Unix timestamp for when the message should be sent. Returns a scheduled_message_id that can be used to cancel it.

chat-scheduled-messages-list

fn (request: ChatScheduledMessagesListRequest): ChatScheduledMessagesListResponse
fn (request: ChatScheduledMessagesListRequest, opts: Map): ChatScheduledMessagesListResponse

POST /chat.scheduledMessages.list - List pending scheduled messages. Optionally filter by channel and time range. Supports cursor-based pagination.

chat-unfurl

fn (request: ChatUnfurlRequest): ChatUnfurlResponse
fn (request: ChatUnfurlRequest, opts: Map): ChatUnfurlResponse

POST /chat.unfurl - Provide custom unfurl behavior for URLs. Pass a map of URL-to-attachment pairs in unfurls to control how links are previewed.

chat-update

fn (request: ChatUpdateRequest): ChatUpdateResponse
fn (request: ChatUpdateRequest, opts: Map): ChatUpdateResponse

POST /chat.update - Update a message. Pass the channel, message ts, and new text or blocks. The message timestamp is preserved.

Example

response ::slack::messaging/chat-update(::slack::messaging/ChatUpdateRequest({
  channel: "C1234567",
  ts: "1234567890.123456",
  text: "Updated message text"
}))
response.ts  // => "1234567890.123456"

pins-add

fn (request: PinsAddRequest): PinsAddResponse
fn (request: PinsAddRequest, opts: Map): PinsAddResponse

POST /pins.add - Pin a message to a channel. Pinned messages appear in the channel details panel.

Example

::slack::messaging/pins-add(::slack::messaging/PinsAddRequest({
  channel: "C1234567",
  timestamp: "1234567890.123456"
}))

pins-list

fn (request: PinsListRequest): PinsListResponse
fn (request: PinsListRequest, opts: Map): PinsListResponse

GET /pins.list - List pinned items in a channel. Returns all currently pinned messages.

Example

response ::slack::messaging/pins-list(::slack::messaging/PinsListRequest({
  channel: "C1234567"
}))
response.items  // => [{type: "message", message: {...}, ...}, ...]

pins-remove

fn (request: PinsRemoveRequest): PinsRemoveResponse
fn (request: PinsRemoveRequest, opts: Map): PinsRemoveResponse

POST /pins.remove - Unpin a message from a channel.

Example

::slack::messaging/pins-remove(::slack::messaging/PinsRemoveRequest({
  channel: "C1234567",
  timestamp: "1234567890.123456"
}))

reactions-add

fn (request: ReactionsAddRequest): ReactionsAddResponse
fn (request: ReactionsAddRequest, opts: Map): ReactionsAddResponse

POST /reactions.add - Add an emoji reaction to a message. Use the emoji name without colons (e.g., "thumbsup" not ":thumbsup:").

Example

::slack::messaging/reactions-add(::slack::messaging/ReactionsAddRequest({
  channel: "C1234567",
  timestamp: "1234567890.123456",
  name: "thumbsup"
}))

reactions-get

fn (request: ReactionsGetRequest): ReactionsGetResponse
fn (request: ReactionsGetRequest, opts: Map): ReactionsGetResponse

GET /reactions.get - Get reactions for an item. Specify the item by channel + timestamp, file, or file_comment. Set full: true to include the complete reaction list.

reactions-list

fn (request: ReactionsListRequest): ReactionsListResponse
fn (request: ReactionsListRequest, opts: Map): ReactionsListResponse

GET /reactions.list - List reactions made by a user. Returns items the user has reacted to. Supports cursor-based pagination.

reactions-remove

fn (request: ReactionsRemoveRequest): ReactionsRemoveResponse
fn (request: ReactionsRemoveRequest, opts: Map): ReactionsRemoveResponse

POST /reactions.remove - Remove an emoji reaction from a message. Specify the emoji name and the item by channel + timestamp, file, or file_comment.

Example

::slack::messaging/reactions-remove(::slack::messaging/ReactionsRemoveRequest({
  name: "thumbsup",
  channel: "C1234567",
  timestamp: "1234567890.123456"
}))

reminders-add

fn (request: RemindersAddRequest): RemindersAddResponse
fn (request: RemindersAddRequest, opts: Map): RemindersAddResponse

POST /reminders.add - Create a reminder. The time can be a Unix timestamp or natural language (e.g., "in 15 minutes", "every Thursday"). Optionally set for another user.

reminders-complete

fn (request: RemindersCompleteRequest): RemindersCompleteResponse
fn (request: RemindersCompleteRequest, opts: Map): RemindersCompleteResponse

POST /reminders.complete - Mark a reminder as complete. Pass the reminder ID.

reminders-delete

fn (request: RemindersDeleteRequest): RemindersDeleteResponse
fn (request: RemindersDeleteRequest, opts: Map): RemindersDeleteResponse

POST /reminders.delete - Delete a reminder permanently. Pass the reminder ID.

reminders-info

fn (request: RemindersInfoRequest): RemindersInfoResponse
fn (request: RemindersInfoRequest, opts: Map): RemindersInfoResponse

GET /reminders.info - Get information about a reminder. Returns the reminder text, time, and completion status.

reminders-list

fn (request: RemindersListRequest): RemindersListResponse
fn (request: RemindersListRequest, opts: Map): RemindersListResponse

GET /reminders.list - List all reminders for the current user. Returns both pending and completed reminders.

search-messages

fn (request: SearchMessagesRequest): SearchMessagesResponse
fn (request: SearchMessagesRequest, opts: Map): SearchMessagesResponse

GET /search.messages - Search for messages matching a query. Supports Slack search syntax (e.g., "from:@user in:#channel"). Sort by score or timestamp.

stars-add

fn (request: StarsAddRequest): StarsAddResponse
fn (request: StarsAddRequest, opts: Map): StarsAddResponse

POST /stars.add - Star an item. Specify the item by channel + timestamp, file, or file_comment. This API is deprecated but still available.

stars-list

fn (request: StarsListRequest): StarsListResponse
fn (request: StarsListRequest, opts: Map): StarsListResponse

GET /stars.list - List starred items for the authenticated user. Results are paginated. This API is deprecated but still available.

stars-remove

fn (request: StarsRemoveRequest): StarsRemoveResponse
fn (request: StarsRemoveRequest, opts: Map): StarsRemoveResponse

POST /stars.remove - Remove a star from an item. Specify the item by channel + timestamp, file, or file_comment. This API is deprecated but still available.

Types

ChatDeleteRequest

ChatDeleteRequest type {
    channel: Str,
    ts: Str,
    as_user: Bool?
}

ChatDeleteResponse

ChatDeleteResponse type {
    ok: Bool?,
    error: Str?,
    channel: Str?,
    ts: Str?
}

ChatDeleteScheduledMessageRequest

ChatDeleteScheduledMessageRequest type {
    channel: Str,
    scheduled_message_id: Str,
    as_user: Bool?
}

ChatDeleteScheduledMessageResponse

ChatDeleteScheduledMessageResponse type {
    ok: Bool?,
    error: Str?
}

ChatGetPermalinkRequest

ChatGetPermalinkRequest type {
    channel: Str,
    message_ts: Str
}

ChatGetPermalinkResponse

ChatGetPermalinkResponse type {
    ok: Bool?,
    error: Str?,
    channel: Str?,
    permalink: Str?
}

ChatMeMessageRequest

ChatMeMessageRequest type {
    channel: Str,
    text: Str
}

ChatMeMessageResponse

ChatMeMessageResponse type {
    ok: Bool?,
    error: Str?,
    channel: Str?,
    ts: Str?
}

ChatPostEphemeralRequest

ChatPostEphemeralRequest type {
    channel: Str,
    user: Str,
    text: Str?,
    blocks: Vec<Map>?,
    attachments: Vec<Map>?,
    thread_ts: Str?,
    as_user: Bool?
}

ChatPostEphemeralResponse

ChatPostEphemeralResponse type {
    ok: Bool?,
    error: Str?,
    message_ts: Str?
}

ChatPostMessageRequest

ChatPostMessageRequest type {
    channel: Str,
    text: Str?,
    blocks: Vec<Map>?,
    attachments: Vec<Map>?,
    thread_ts: Str?,
    reply_broadcast: Bool?,
    unfurl_links: Bool?,
    unfurl_media: Bool?,
    mrkdwn: Bool?,
    metadata: Map?
}

ChatPostMessageResponse

ChatPostMessageResponse type {
    ok: Bool?,
    error: Str?,
    channel: Str?,
    ts: Str?,
    message: Map?
}

ChatScheduleMessageRequest

ChatScheduleMessageRequest type {
    channel: Str,
    post_at: Int,
    text: Str?,
    blocks: Vec<Map>?,
    attachments: Vec<Map>?,
    thread_ts: Str?,
    reply_broadcast: Bool?,
    unfurl_links: Bool?,
    unfurl_media: Bool?,
    metadata: Map?
}

ChatScheduleMessageResponse

ChatScheduleMessageResponse type {
    ok: Bool?,
    error: Str?,
    channel: Str?,
    scheduled_message_id: Str?,
    post_at: Int?,
    message: Map?
}

ChatScheduledMessagesListRequest

ChatScheduledMessagesListRequest type {
    channel: Str?,
    latest: Str?,
    oldest: Str?,
    limit: Int?,
    cursor: Str?
}

ChatScheduledMessagesListResponse

ChatScheduledMessagesListResponse type {
    ok: Bool?,
    error: Str?,
    scheduled_messages: Vec<Map>?,
    response_metadata: Map?
}

ChatUnfurlRequest

ChatUnfurlRequest type {
    channel: Str,
    ts: Str,
    unfurls: Map
}

ChatUnfurlResponse

ChatUnfurlResponse type {
    ok: Bool?,
    error: Str?
}

ChatUpdateRequest

ChatUpdateRequest type {
    channel: Str,
    ts: Str,
    text: Str?,
    blocks: Vec<Map>?,
    attachments: Vec<Map>?,
    as_user: Bool?,
    metadata: Map?
}

ChatUpdateResponse

ChatUpdateResponse type {
    ok: Bool?,
    error: Str?,
    channel: Str?,
    ts: Str?,
    text: Str?,
    message: Map?
}

PinsAddRequest

PinsAddRequest type {
    channel: Str,
    timestamp: Str?
}

PinsAddResponse

PinsAddResponse type {
    ok: Bool?,
    error: Str?
}

PinsListRequest

PinsListRequest type {
    channel: Str
}

PinsListResponse

PinsListResponse type {
    ok: Bool?,
    error: Str?,
    items: Vec<Map>?
}

PinsRemoveRequest

PinsRemoveRequest type {
    channel: Str,
    timestamp: Str?
}

PinsRemoveResponse

PinsRemoveResponse type {
    ok: Bool?,
    error: Str?
}

ReactionsAddRequest

ReactionsAddRequest type {
    channel: Str,
    timestamp: Str,
    name: Str
}

ReactionsAddResponse

ReactionsAddResponse type {
    ok: Bool?,
    error: Str?
}

ReactionsGetRequest

ReactionsGetRequest type {
    channel: Str?,
    file: Str?,
    file_comment: Str?,
    full: Bool?,
    timestamp: Str?
}

ReactionsGetResponse

ReactionsGetResponse type {
    ok: Bool?,
    error: Str?,
    type: Str?,
    message: Map?,
    file: Map?,
    comment: Map?
}

ReactionsListRequest

ReactionsListRequest type {
    user: Str?,
    full: Bool?,
    count: Int?,
    page: Int?,
    cursor: Str?,
    limit: Int?
}

ReactionsListResponse

ReactionsListResponse type {
    ok: Bool?,
    error: Str?,
    items: Vec<Map>?,
    paging: Map?,
    response_metadata: Map?
}

ReactionsRemoveRequest

ReactionsRemoveRequest type {
    name: Str,
    channel: Str?,
    timestamp: Str?,
    file: Str?,
    file_comment: Str?
}

ReactionsRemoveResponse

ReactionsRemoveResponse type {
    ok: Bool?,
    error: Str?
}

RemindersAddRequest

RemindersAddRequest type {
    text: Str,
    time: Str,
    user: Str?
}

RemindersAddResponse

RemindersAddResponse type {
    ok: Bool?,
    error: Str?,
    reminder: Map?
}

RemindersCompleteRequest

RemindersCompleteRequest type {
    reminder: Str
}

RemindersCompleteResponse

RemindersCompleteResponse type {
    ok: Bool?,
    error: Str?
}

RemindersDeleteRequest

RemindersDeleteRequest type {
    reminder: Str
}

RemindersDeleteResponse

RemindersDeleteResponse type {
    ok: Bool?,
    error: Str?
}

RemindersInfoRequest

RemindersInfoRequest type {
    reminder: Str
}

RemindersInfoResponse

RemindersInfoResponse type {
    ok: Bool?,
    error: Str?,
    reminder: Map?
}

RemindersListRequest

RemindersListRequest type Map

RemindersListResponse

RemindersListResponse type {
    ok: Bool?,
    error: Str?,
    reminders: Vec<Map>?
}

SearchMessagesRequest

SearchMessagesRequest type {
    query: Str,
    count: Int?,
    highlight: Bool?,
    page: Int?,
    sort: Str?,
    sort_dir: Str?
}

SearchMessagesResponse

SearchMessagesResponse type {
    ok: Bool?,
    error: Str?,
    query: Str?,
    messages: Map?
}

StarsAddRequest

StarsAddRequest type {
    channel: Str?,
    timestamp: Str?,
    file: Str?,
    file_comment: Str?
}

StarsAddResponse

StarsAddResponse type {
    ok: Bool?,
    error: Str?
}

StarsListRequest

StarsListRequest type {
    count: Int?,
    page: Int?,
    cursor: Str?,
    limit: Int?
}

StarsListResponse

StarsListResponse type {
    ok: Bool?,
    error: Str?,
    items: Vec<Map>?,
    paging: Map?
}

StarsRemoveRequest

StarsRemoveRequest type {
    channel: Str?,
    timestamp: Str?,
    file: Str?,
    file_comment: Str?
}

StarsRemoveResponse

StarsRemoveResponse type {
    ok: Bool?,
    error: Str?
}