Slack API
messages public
0
Node
JavaScript
Python beta
Ruby beta
Shell
curl
Hey! Want to build awesome, scalable APIs like this one?
Sign up with Standard Library today and build your own API or connect to others in seconds.
We hope you enjoy documentation for the Slack messages API on Standard Library! This API can be used via the command line (shell), Node, Ruby, Python or as a generic HTTP call in any language. Check the code examples on the right associated with each API method for how to use this API in your language of choice.
API Description
Create, Update, or Destroy Messages
# API Documentation This file should contain documentation introducing your API to **end-users**. It will display on your service's [Standard Library](https://stdlib.com/) documentation page if you choose to publish it. Usage examples and additional information around calling your API belong here.
Create a new Message from your Bot
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
id
required
string
The Channel or User id that will receive the Message
current value set to
enter a test value
text
string
The body of the Message
optional, default value is
null
optional, current value set to
enter a test value
attachments
array
Optional Message Attachments
optional, default value is
null
optional, current value set to
enter a test value
as_user
boolean
Pass true to post the message as the authed user
optional, default value is
false
optional, current value set to
enter a test value
Create a new Message from your Bot in response to an event
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
response_url
required
string
The url from the event payload
current value set to
enter a test value
text
string
The body of the Message
optional, default value is
null
optional, current value set to
enter a test value
attachments
array
Optional Message Attachments
optional, default value is
null
optional, current value set to
enter a test value
Destroy a Message
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
id
required
string
The Channel or User id where is the Message is located
current value set to
enter a test value
ts
required
string
The timestamp of the message
current value set to
enter a test value
Create a new Ephemeral Message from your Bot
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
channelId
required
string
The Channel, Private Group, or IM Channel to send message to
current value set to
enter a test value
userId
required
string
The id of the user who will receive the ephemeral message. The user should be in the channel specified by the channelId argument
current value set to
enter a test value
text
string
The body of the Message
optional, default value is
null
optional, current value set to
enter a test value
attachments
array
Optional Message Attachments
optional, default value is
null
optional, current value set to
enter a test value
as_user
boolean
Pass true to post the message as the authed user
optional, default value is
false
optional, current value set to
enter a test value
Get a permalink to a Message
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
id
required
string
The Channel id where the message is located
current value set to
enter a test value
ts
required
string
The timestamp of the Message
current value set to
enter a test value
Schedule a Message for delivery
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
id
required
string
The Channel or User id that will receive the Message
current value set to
enter a test value
postAt
required
string
Unix EPOCH timestamp of time in future to send the message
current value set to
enter a test value
text
string
The body of the Message
optional, default value is
null
optional, current value set to
enter a test value
attachments
array
Optional Message Attachments
optional, default value is
null
optional, current value set to
enter a test value
threadTs
string
Provide another message's ts value to make this message a reply
optional, default value is
null
optional, current value set to
enter a test value
Update a Message
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
id
required
string
The Channel or User id where is the Message is located
current value set to
enter a test value
ts
required
string
The timestamp of the Message
current value set to
enter a test value
text
string
The new Message body
optional, default value is
null
optional, current value set to
enter a test value
attachments
array
Optional Message Attachments
optional, default value is
null
optional, current value set to
enter a test value
Made with by the Slack team with the help of Standard Library.