Slack
Messaging, channels, and workspace management
Overview
- Version: 1.7.0
- Base URL:
https://slack.com/api - Category: Productivity
- Tools Available: 100
- Rate Limit: Tier-based rate limits
- Documentation: https://api.slack.com/
Quick Start
from ocp_agent import OCPAgent
agent = OCPAgent()
# Register with authentication
await agent.register_api(
'slack',
headers={'Authorization': 'Bearer your_token_here'}
)
# List available tools
tools = agent.list_tools('slack')
print(f"Available: {len(tools)} tools")Authentication
Type: Bearer Token
Use ‘Bearer xoxb-xxxxxxxxxxxx’ with your Slack bot token
See the Authentication Guide for general setup instructions.
Available Tools
This API provides 100 tools across various resource types.
bots
calls
POST
callsAdd
POST
callsEnd
GET
callsInfo
POST
callsParticipantsAdd
POST
callsParticipantsRemove
POST
callsUpdate
chat
POST
chatDelete
POST
chatDeleteScheduledMessage
GET
chatGetPermalink
POST
chatMeMessage
POST
chatPostEphemeral
POST
chatPostMessage
POST
chatScheduleMessage
GET
chatScheduledMessagesList
POST
chatUnfurl
POST
chatUpdate
conversations
POST
conversationsArchive
POST
conversationsClose
POST
conversationsCreate
GET
conversationsHistory
GET
conversationsInfo
POST
conversationsInvite
POST
conversationsJoin
POST
conversationsKick
POST
conversationsLeave
GET
conversationsList
POST
conversationsMark
GET
conversationsMembers
POST
conversationsOpen
POST
conversationsRename
GET
conversationsReplies
POST
conversationsSetPurpose
POST
conversationsSetTopic
POST
conversationsUnarchive
dnd
emoji
files
POST
filesCommentsDelete
POST
filesDelete
GET
filesInfo
GET
filesList
POST
filesRemoteAdd
GET
filesRemoteInfo
GET
filesRemoteList
POST
filesRemoteRemove
GET
filesRemoteShare
POST
filesRemoteUpdate
POST
filesRevokePublicUrl
POST
filesSharedPublicUrl
POST
filesUpload
pins
reactions
reminders
stars
team
usergroups
POST
usergroupsCreate
POST
usergroupsDisable
POST
usergroupsEnable
GET
usergroupsList
POST
usergroupsUpdate
GET
usergroupsUsersList
POST
usergroupsUsersUpdate
users
GET
usersConversations
POST
usersDeletePhoto
GET
usersGetPresence
GET
usersIdentity
GET
usersInfo
GET
usersList
GET
usersLookupByEmail
GET
usersProfileGet
POST
usersProfileSet
POST
usersSetActive
POST
usersSetPhoto
POST
usersSetPresence
views
workflows
Usage Example
from ocp_agent import OCPAgent
# Initialize agent
agent = OCPAgent()
# Register the Slack
api = await agent.register_api('slack')
# List available tools
tools = agent.list_tools('slack')
print(f"Available tools: {len(tools)}")
# Use a tool (example)
# result = await agent.call_tool('tool_name', parameters)