Send Messages

Learn to use Slack API calls to send messages.

Overview

We can use the Slack application to automate a daily message to a channel or send a joke to a colleague. We use Slack’s Chat API for this.

Let’s look at the following endpoints in this lesson:

  1. chat.meMessage: This endpoint sends an italicized action text message to a channel.
  2. chat.postMessage: This endpoint sends a message to a channel.
  3. chat.scheduleMessage: This endpoint schedules a message to be sent to a channel in the future.

Send a “me” message

We’ll start with the most straightforward endpoint first—the https://slack.com/api/chat.meMessage endpoint. This endpoint allows us to send an italicized “me” messageA me message is a type of message used to indicate action. to a specific channel. This endpoint is relatively straightforward and has no optional arguments.

Some important query parameters for the chat.meMessage endpoint are the following:

Get hands-on with 1400+ tech skills courses.