// api reference
Slack archive API, CLI, and MCP reference
Slackscraper exposes the same governed Slack history through REST routes, CLI commands, and MCP tools for agent workflows.
REST surfaces
The API server includes routes for Slack install/backfill, workspace and channel listing, access profiles, retrieval search and expand, exports, deletion requests, operations, credentials, and auth sessions.
GET /v1/workspaces
GET /v1/channels
POST /v1/search
POST /v1/expand
POST /v1/exports
CLI commands
The CLI wraps operator workflows for setup, retrieval, export, deletion, operations, access profiles, diagnostics, and MCP bridging.
slackscraper status
slackscraper access-profiles list
slackscraper jobs list
slackscraper operations metrics
MCP tools
Hosted and local MCP surfaces expose Slack retrieval to agents while preserving workspace-bound credentials and access-profile scoping.
search_slack_messages
expand_slack_result
list_slack_channels
get_slack_sync_status
Authentication
Protected routes require bearer credentials. Admin-issued sessions, service credentials, role scopes, and access profile bindings keep retrieval tied to approved actors.