← Back to Marketplace

Slack

Bearer

Messages, channels, users, and bots. Build on top of where teams work.

https://slack.com/api
OVERVIEW

The Slack Web API provides programmatic access to your Slack workspace. Post messages, read channel history, manage users, upload files, and build interactive bots. Every method is a separate endpoint under /api/.

Bot tokens (xoxb-) are the recommended approach. They have granular OAuth scopes and don't break when a user leaves. The API uses a mix of JSON bodies and query parameters depending on the method.

GET YOUR API KEY

Authentication setup

  1. Go to api.slack.com/apps and click Create New App
  2. Choose From scratch, name your app, pick a workspace
  3. Go to OAuth & Permissions, add bot scopes (e.g. chat:write, channels:read)
  4. Click Install to Workspace and authorize
  5. Copy the Bot User OAuth Token. Starts with xoxb-
Token format xoxb-...
Auth type bearer
QUICK CONNECT

Create a connection in one request.

CONNECT SLACK
POST /connections Authorization: Bearer $TOKEN Content-Type: application/json { "name": "Slack", "base_url": "https://slack.com/api", "auth_type": "bearer", "auth_config": {"token": "xoxb-..."} } → {"id": "cn_xxxxxxxx", "name": "Slack"}
KEY ENDPOINTS

What you can call via proxy.

MethodPathDescription
POST /chat.postMessage Send a message to a channel or DM
GET /conversations.list List channels in the workspace
GET /conversations.history Fetch message history for a channel
GET /users.list List all workspace members
GET /users.info Get a user's profile
POST /reactions.add Add an emoji reaction to a message
POST /files.uploadV2 Upload a file to a channel
GET /team.info Get workspace metadata
EXAMPLE

Post a Message

PROXY CALL
POST /proxy/cn_xxxxxxxx/chat.postMessage Authorization: Bearer $TOKEN Content-Type: application/json { "channel": "C01ABCDEF", "text": "Deployment complete :white_check_mark:", "unfurl_links": false } { "ok": true, "channel": "C01ABCDEF", "ts": "1711234567.000100", "message": { "text": "Deployment complete :white_check_mark:", "type": "message", "subtype": "bot_message" } }
USE CASES

What people build with Slack.

Deploy Notifications

Post to a channel when your CI/CD pipeline deploys, fails, or needs approval.

Alerting Bot

Send alerts from monitoring systems directly to Slack channels.

Channel Analytics

Read message history and user data for workspace analytics and reporting.

Workflow Automation

Build bots that respond to messages, manage approvals, and trigger actions.

# Slack > Messages, channels, users, and bots. Build on top of where teams work. ## Overview The Slack Web API provides programmatic access to your Slack workspace. Post messages, read channel history, manage users, upload files, and build interactive bots. Every method is a separate endpoint under <code>/api/</code>. Bot tokens (<code>xoxb-</code>) are the recommended approach. They have granular OAuth scopes and don't break when a user leaves. The API uses a mix of JSON bodies and query parameters depending on the method. - **Base URL:** https://slack.com/api - **Auth type:** bearer - **Token format:** xoxb-... ## Get Your API Key 1. Go to api.slack.com/apps and click Create New App 2. Choose From scratch, name your app, pick a workspace 3. Go to OAuth & Permissions, add bot scopes (e.g. chat:write, channels:read) 4. Click Install to Workspace and authorize 5. Copy the Bot User OAuth Token. Starts with xoxb- ## Quick Connect bashcurl -X POST https://api.liteio.dev/connections \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Slack", "base_url": "https://slack.com/api", "auth_type": "bearer", "auth_config": {"token": "xoxb-..."} }' ## Key Endpoints MethodPathDescription POST/chat.postMessageSend a message to a channel or DM GET/conversations.listList channels in the workspace GET/conversations.historyFetch message history for a channel GET/users.listList all workspace members GET/users.infoGet a user's profile POST/reactions.addAdd an emoji reaction to a message POST/files.uploadV2Upload a file to a channel GET/team.infoGet workspace metadata ## Example: Post a Message bashcurl -X POST https://api.liteio.dev/proxy/cn_xxx/chat.postMessage \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "channel": "C01ABCDEF", "text": "Deployment complete :white_check_mark:", "unfurl_links": false }' ## Use Cases - **Deploy Notifications**: Post to a channel when your CI/CD pipeline deploys, fails, or needs approval. - **Alerting Bot**: Send alerts from monitoring systems directly to Slack channels. - **Channel Analytics**: Read message history and user data for workspace analytics and reporting. - **Workflow Automation**: Build bots that respond to messages, manage approvals, and trigger actions. ## Links - Back to Marketplace - Developer Guide - Get API Key