Slack API
channels 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 channels 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
Manage Slack Channels
# 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.
Archive a Channel
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
channel
required
string
The name or id of the Channel
current value set to
enter a test value
Create a file
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
filename
required
string
The name of the File
current value set to
enter a test value
channels
required
array
Channels where the File will be shared
current value set to
enter a test value
content
required
buffer
File contents
current value set to
enter a test value
title
string
Optional file title
optional, default value is
null
optional, current value set to
enter a test value
text
string
Optional message body
optional, default value is
null
optional, current value set to
enter a test value
Destroy a file
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
id
required
string
The file id
current value set to
enter a test value
Retrieve a file
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
id
required
string
The file id
current value set to
enter a test value
List Channels
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
limit
number
The maximum number of Channels to return.
optional, default value is
100
optional, current value set to
enter a test value
cursor
string
Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata
optional, default value is
null
optional, current value set to
enter a test value
Send a Message from your Bot to a Channel
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
channel
required
string
The Channel where the Message will be posted
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
List Messages from a Channel
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
channel
required
string
The Channel name where the Messages will be listed from
current value set to
enter a test value
latest
string
The end of time range of Messages to include in results
optional, default value is
null
optional, current value set to
enter a test value
oldest
string
The start of time range of Messages to include in results
optional, default value is
null
optional, current value set to
enter a test value
filterLinks
boolean
Find all links included inside Messages
optional, default value is
false
optional, current value set to
enter a test value
Retrieve a Channel by name
Authenticated   |   Pricing  ·  Free   |   Limit  ·  no rate limit
Unauthenticated   |   Limit  ·  no rate limit
Parameters
channel
required
string
The name of the Channel
current value set to
enter a test value
Made with by the Slack team with the help of Standard Library.