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

chat

conversations

dnd

emoji

files

pins

reactions

reminders

stars

team

usergroups

users

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)

Links