{
  "schemaVersion": "1.0",
  "item": {
    "slug": "slack-api",
    "name": "Slack",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/byungkyu/slack-api",
    "canonicalUrl": "https://clawhub.ai/byungkyu/slack-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/slack-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=slack-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/slack-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/slack-api",
    "agentPageUrl": "https://openagent3.xyz/skills/slack-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/slack-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/slack-api/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Slack",
        "body": "Access the Slack API with managed OAuth authentication. Send messages, manage channels, list users, and automate Slack workflows."
      },
      {
        "title": "Quick Start",
        "body": "# Post a message to a channel\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'channel': 'C0123456789', 'text': 'Hello from Maton!'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/slack/api/chat.postMessage', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/slack/{method}\n\nThe gateway proxies requests to slack.com and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your Slack OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=slack&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'slack'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"slack\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple Slack connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'channel': 'C0123456789', 'text': 'Hello!'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/slack/api/chat.postMessage', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "Authentication",
        "body": "Auth Test\n\nGET /slack/api/auth.test\n\nReturns current user and team info."
      },
      {
        "title": "Messages",
        "body": "Post Message\n\nPOST /slack/api/chat.postMessage\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"text\": \"Hello, world!\"\n}\n\nWith blocks:\n\nPOST /slack/api/chat.postMessage\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"blocks\": [\n    {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\", \"text\": \"*Bold* and _italic_\"}}\n  ]\n}\n\nPost Thread Reply\n\nPOST /slack/api/chat.postMessage\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"thread_ts\": \"1234567890.123456\",\n  \"text\": \"This is a reply in a thread\"\n}\n\nUpdate Message\n\nPOST /slack/api/chat.update\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"ts\": \"1234567890.123456\",\n  \"text\": \"Updated message\"\n}\n\nDelete Message\n\nPOST /slack/api/chat.delete\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"ts\": \"1234567890.123456\"\n}\n\nSchedule Message\n\nPOST /slack/api/chat.scheduleMessage\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"text\": \"Scheduled message\",\n  \"post_at\": 1734567890\n}\n\nList Scheduled Messages\n\nGET /slack/api/chat.scheduledMessages.list\n\nDelete Scheduled Message\n\nPOST /slack/api/chat.deleteScheduledMessage\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"scheduled_message_id\": \"Q1234567890\"\n}\n\nGet Permalink\n\nGET /slack/api/chat.getPermalink?channel=C0123456789&message_ts=1234567890.123456"
      },
      {
        "title": "Conversations (Channels)",
        "body": "List Channels\n\nGET /slack/api/conversations.list?types=public_channel,private_channel&limit=100\n\nTypes: public_channel, private_channel, im, mpim\n\nGet Channel Info\n\nGET /slack/api/conversations.info?channel=C0123456789\n\nGet Channel History\n\nGET /slack/api/conversations.history?channel=C0123456789&limit=100\n\nWith time range:\n\nGET /slack/api/conversations.history?channel=C0123456789&oldest=1234567890&latest=1234567899\n\nGet Thread Replies\n\nGET /slack/api/conversations.replies?channel=C0123456789&ts=1234567890.123456\n\nGet Channel Members\n\nGET /slack/api/conversations.members?channel=C0123456789&limit=100\n\nCreate Channel\n\nPOST /slack/api/conversations.create\nContent-Type: application/json\n\n{\n  \"name\": \"new-channel-name\",\n  \"is_private\": false\n}\n\nJoin Channel\n\nPOST /slack/api/conversations.join\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\"\n}\n\nLeave Channel\n\nPOST /slack/api/conversations.leave\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\"\n}\n\nArchive Channel\n\nPOST /slack/api/conversations.archive\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\"\n}\n\nUnarchive Channel\n\nPOST /slack/api/conversations.unarchive\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\"\n}\n\nRename Channel\n\nPOST /slack/api/conversations.rename\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"name\": \"new-name\"\n}\n\nSet Channel Topic\n\nPOST /slack/api/conversations.setTopic\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"topic\": \"Channel topic here\"\n}\n\nSet Channel Purpose\n\nPOST /slack/api/conversations.setPurpose\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"purpose\": \"Channel purpose here\"\n}\n\nInvite to Channel\n\nPOST /slack/api/conversations.invite\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"users\": \"U0123456789,U9876543210\"\n}\n\nKick from Channel\n\nPOST /slack/api/conversations.kick\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"user\": \"U0123456789\"\n}\n\nMark Channel Read\n\nPOST /slack/api/conversations.mark\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"ts\": \"1234567890.123456\"\n}"
      },
      {
        "title": "Direct Messages",
        "body": "Open DM Conversation\n\nPOST /slack/api/conversations.open\nContent-Type: application/json\n\n{\n  \"users\": \"U0123456789\"\n}\n\nFor group DM:\n\nPOST /slack/api/conversations.open\nContent-Type: application/json\n\n{\n  \"users\": \"U0123456789,U9876543210\"\n}\n\nList DM Channels\n\nGET /slack/api/conversations.list?types=im\n\nList Group DM Channels\n\nGET /slack/api/conversations.list?types=mpim\n\nMy Conversations\n\nGET /slack/api/users.conversations?limit=100"
      },
      {
        "title": "Users",
        "body": "List Users\n\nGET /slack/api/users.list?limit=100\n\nGet User Info\n\nGET /slack/api/users.info?user=U0123456789\n\nGet User Presence\n\nGET /slack/api/users.getPresence?user=U0123456789\n\nSet User Presence\n\nPOST /slack/api/users.setPresence\nContent-Type: application/json\n\n{\n  \"presence\": \"away\"\n}\n\nLookup User by Email\n\nGET /slack/api/users.lookupByEmail?email=user@example.com"
      },
      {
        "title": "Reactions",
        "body": "Add Reaction\n\nPOST /slack/api/reactions.add\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"name\": \"thumbsup\",\n  \"timestamp\": \"1234567890.123456\"\n}\n\nRemove Reaction\n\nPOST /slack/api/reactions.remove\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"name\": \"thumbsup\",\n  \"timestamp\": \"1234567890.123456\"\n}\n\nGet Reactions on Message\n\nGET /slack/api/reactions.get?channel=C0123456789&timestamp=1234567890.123456\n\nList My Reactions\n\nGET /slack/api/reactions.list?limit=100"
      },
      {
        "title": "Stars",
        "body": "List Stars\n\nGET /slack/api/stars.list?limit=100\n\nAdd Star\n\nPOST /slack/api/stars.add\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"timestamp\": \"1234567890.123456\"\n}\n\nRemove Star\n\nPOST /slack/api/stars.remove\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"timestamp\": \"1234567890.123456\"\n}"
      },
      {
        "title": "Bots",
        "body": "Get Bot Info\n\nGET /slack/api/bots.info?bot=B0123456789"
      },
      {
        "title": "Files",
        "body": "Upload File\n\nPOST /slack/api/files.upload\nContent-Type: multipart/form-data\n\nchannels=C0123456789\ncontent=file content here\nfilename=example.txt\ntitle=Example File\n\nUpload File v2 (Get Upload URL)\n\nGET /slack/api/files.getUploadURLExternal?filename=example.txt&length=1024\n\nComplete File Upload\n\nPOST /slack/api/files.completeUploadExternal\nContent-Type: application/json\n\n{\n  \"files\": [{\"id\": \"F0123456789\", \"title\": \"My File\"}],\n  \"channel_id\": \"C0123456789\"\n}\n\nDelete File\n\nPOST /slack/api/files.delete\nContent-Type: application/json\n\n{\n  \"file\": \"F0123456789\"\n}\n\nGet File Info\n\nGET /slack/api/files.info?file=F0123456789"
      },
      {
        "title": "Search",
        "body": "Search Messages\n\nGET /slack/api/search.messages?query=keyword"
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch('https://gateway.maton.ai/slack/api/chat.postMessage', {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n  },\n  body: JSON.stringify({ channel: 'C0123456', text: 'Hello!' })\n});\nconst result = await response.json();\nconsole.log(result);"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.post(\n    'https://gateway.maton.ai/slack/api/chat.postMessage',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    json={'channel': 'C0123456', 'text': 'Hello!'}\n)\nprint(response.json())"
      },
      {
        "title": "Notes",
        "body": "Channel IDs: C (public), G (private/group), D (DM)\nUser IDs start with U, Bot IDs start with B, Team IDs start with T\nMessage timestamps (ts) are unique identifiers\nUse mrkdwn type for Slack-flavored markdown formatting\nThread replies use thread_ts to reference the parent message\nCursor-based pagination: use cursor from response_metadata.next_cursor"
      },
      {
        "title": "Shell Notes",
        "body": "IMPORTANT: When using curl commands, use curl -g when URLs contain brackets (fields[], sort[], records[]) to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments. You may get \"Invalid API key\" errors when piping."
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Missing Slack connection401Invalid or missing Maton API key429Rate limited (10 req/sec per account)4xx/5xxPassthrough error from Slack API\n\nMissing Scope Errors: If you encounter missing_scope errors, contact Maton Support to request additional scopes for your connection."
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with slack. For example:\n\nCorrect: https://gateway.maton.ai/slack/api/chat.postMessage\nIncorrect: https://gateway.maton.ai/api/chat.postMessage"
      },
      {
        "title": "Resources",
        "body": "Slack API Methods\nWeb API Reference\nBlock Kit Reference\nMessage Formatting\nRate Limits\nMaton Community\nMaton Support"
      }
    ],
    "body": "Slack\n\nAccess the Slack API with managed OAuth authentication. Send messages, manage channels, list users, and automate Slack workflows.\n\nQuick Start\n# Post a message to a channel\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'channel': 'C0123456789', 'text': 'Hello from Maton!'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/slack/api/chat.postMessage', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/slack/{method}\n\n\nThe gateway proxies requests to slack.com and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your Slack OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=slack&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'slack'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"slack\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSpecifying Connection\n\nIf you have multiple Slack connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'channel': 'C0123456789', 'text': 'Hello!'}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/slack/api/chat.postMessage', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\nAPI Reference\nAuthentication\nAuth Test\nGET /slack/api/auth.test\n\n\nReturns current user and team info.\n\nMessages\nPost Message\nPOST /slack/api/chat.postMessage\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"text\": \"Hello, world!\"\n}\n\n\nWith blocks:\n\nPOST /slack/api/chat.postMessage\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"blocks\": [\n    {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\", \"text\": \"*Bold* and _italic_\"}}\n  ]\n}\n\nPost Thread Reply\nPOST /slack/api/chat.postMessage\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"thread_ts\": \"1234567890.123456\",\n  \"text\": \"This is a reply in a thread\"\n}\n\nUpdate Message\nPOST /slack/api/chat.update\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"ts\": \"1234567890.123456\",\n  \"text\": \"Updated message\"\n}\n\nDelete Message\nPOST /slack/api/chat.delete\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"ts\": \"1234567890.123456\"\n}\n\nSchedule Message\nPOST /slack/api/chat.scheduleMessage\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"text\": \"Scheduled message\",\n  \"post_at\": 1734567890\n}\n\nList Scheduled Messages\nGET /slack/api/chat.scheduledMessages.list\n\nDelete Scheduled Message\nPOST /slack/api/chat.deleteScheduledMessage\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"scheduled_message_id\": \"Q1234567890\"\n}\n\nGet Permalink\nGET /slack/api/chat.getPermalink?channel=C0123456789&message_ts=1234567890.123456\n\nConversations (Channels)\nList Channels\nGET /slack/api/conversations.list?types=public_channel,private_channel&limit=100\n\n\nTypes: public_channel, private_channel, im, mpim\n\nGet Channel Info\nGET /slack/api/conversations.info?channel=C0123456789\n\nGet Channel History\nGET /slack/api/conversations.history?channel=C0123456789&limit=100\n\n\nWith time range:\n\nGET /slack/api/conversations.history?channel=C0123456789&oldest=1234567890&latest=1234567899\n\nGet Thread Replies\nGET /slack/api/conversations.replies?channel=C0123456789&ts=1234567890.123456\n\nGet Channel Members\nGET /slack/api/conversations.members?channel=C0123456789&limit=100\n\nCreate Channel\nPOST /slack/api/conversations.create\nContent-Type: application/json\n\n{\n  \"name\": \"new-channel-name\",\n  \"is_private\": false\n}\n\nJoin Channel\nPOST /slack/api/conversations.join\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\"\n}\n\nLeave Channel\nPOST /slack/api/conversations.leave\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\"\n}\n\nArchive Channel\nPOST /slack/api/conversations.archive\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\"\n}\n\nUnarchive Channel\nPOST /slack/api/conversations.unarchive\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\"\n}\n\nRename Channel\nPOST /slack/api/conversations.rename\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"name\": \"new-name\"\n}\n\nSet Channel Topic\nPOST /slack/api/conversations.setTopic\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"topic\": \"Channel topic here\"\n}\n\nSet Channel Purpose\nPOST /slack/api/conversations.setPurpose\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"purpose\": \"Channel purpose here\"\n}\n\nInvite to Channel\nPOST /slack/api/conversations.invite\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"users\": \"U0123456789,U9876543210\"\n}\n\nKick from Channel\nPOST /slack/api/conversations.kick\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"user\": \"U0123456789\"\n}\n\nMark Channel Read\nPOST /slack/api/conversations.mark\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"ts\": \"1234567890.123456\"\n}\n\nDirect Messages\nOpen DM Conversation\nPOST /slack/api/conversations.open\nContent-Type: application/json\n\n{\n  \"users\": \"U0123456789\"\n}\n\n\nFor group DM:\n\nPOST /slack/api/conversations.open\nContent-Type: application/json\n\n{\n  \"users\": \"U0123456789,U9876543210\"\n}\n\nList DM Channels\nGET /slack/api/conversations.list?types=im\n\nList Group DM Channels\nGET /slack/api/conversations.list?types=mpim\n\nMy Conversations\nGET /slack/api/users.conversations?limit=100\n\nUsers\nList Users\nGET /slack/api/users.list?limit=100\n\nGet User Info\nGET /slack/api/users.info?user=U0123456789\n\nGet User Presence\nGET /slack/api/users.getPresence?user=U0123456789\n\nSet User Presence\nPOST /slack/api/users.setPresence\nContent-Type: application/json\n\n{\n  \"presence\": \"away\"\n}\n\nLookup User by Email\nGET /slack/api/users.lookupByEmail?email=user@example.com\n\nReactions\nAdd Reaction\nPOST /slack/api/reactions.add\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"name\": \"thumbsup\",\n  \"timestamp\": \"1234567890.123456\"\n}\n\nRemove Reaction\nPOST /slack/api/reactions.remove\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"name\": \"thumbsup\",\n  \"timestamp\": \"1234567890.123456\"\n}\n\nGet Reactions on Message\nGET /slack/api/reactions.get?channel=C0123456789&timestamp=1234567890.123456\n\nList My Reactions\nGET /slack/api/reactions.list?limit=100\n\nStars\nList Stars\nGET /slack/api/stars.list?limit=100\n\nAdd Star\nPOST /slack/api/stars.add\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"timestamp\": \"1234567890.123456\"\n}\n\nRemove Star\nPOST /slack/api/stars.remove\nContent-Type: application/json\n\n{\n  \"channel\": \"C0123456789\",\n  \"timestamp\": \"1234567890.123456\"\n}\n\nBots\nGet Bot Info\nGET /slack/api/bots.info?bot=B0123456789\n\nFiles\nUpload File\nPOST /slack/api/files.upload\nContent-Type: multipart/form-data\n\nchannels=C0123456789\ncontent=file content here\nfilename=example.txt\ntitle=Example File\n\nUpload File v2 (Get Upload URL)\nGET /slack/api/files.getUploadURLExternal?filename=example.txt&length=1024\n\nComplete File Upload\nPOST /slack/api/files.completeUploadExternal\nContent-Type: application/json\n\n{\n  \"files\": [{\"id\": \"F0123456789\", \"title\": \"My File\"}],\n  \"channel_id\": \"C0123456789\"\n}\n\nDelete File\nPOST /slack/api/files.delete\nContent-Type: application/json\n\n{\n  \"file\": \"F0123456789\"\n}\n\nGet File Info\nGET /slack/api/files.info?file=F0123456789\n\nSearch\nSearch Messages\nGET /slack/api/search.messages?query=keyword\n\nCode Examples\nJavaScript\nconst response = await fetch('https://gateway.maton.ai/slack/api/chat.postMessage', {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n  },\n  body: JSON.stringify({ channel: 'C0123456', text: 'Hello!' })\n});\nconst result = await response.json();\nconsole.log(result);\n\nPython\nimport os\nimport requests\n\nresponse = requests.post(\n    'https://gateway.maton.ai/slack/api/chat.postMessage',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    json={'channel': 'C0123456', 'text': 'Hello!'}\n)\nprint(response.json())\n\nNotes\nChannel IDs: C (public), G (private/group), D (DM)\nUser IDs start with U, Bot IDs start with B, Team IDs start with T\nMessage timestamps (ts) are unique identifiers\nUse mrkdwn type for Slack-flavored markdown formatting\nThread replies use thread_ts to reference the parent message\nCursor-based pagination: use cursor from response_metadata.next_cursor\nShell Notes\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets (fields[], sort[], records[]) to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments. You may get \"Invalid API key\" errors when piping.\nError Handling\nStatus\tMeaning\n400\tMissing Slack connection\n401\tInvalid or missing Maton API key\n429\tRate limited (10 req/sec per account)\n4xx/5xx\tPassthrough error from Slack API\n\nMissing Scope Errors: If you encounter missing_scope errors, contact Maton Support to request additional scopes for your connection.\n\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with slack. For example:\nCorrect: https://gateway.maton.ai/slack/api/chat.postMessage\nIncorrect: https://gateway.maton.ai/api/chat.postMessage\nResources\nSlack API Methods\nWeb API Reference\nBlock Kit Reference\nMessage Formatting\nRate Limits\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/slack-api",
    "publisherUrl": "https://clawhub.ai/byungkyu/slack-api",
    "owner": "byungkyu",
    "version": "1.0.8",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/slack-api",
    "downloadUrl": "https://openagent3.xyz/downloads/slack-api",
    "agentUrl": "https://openagent3.xyz/skills/slack-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/slack-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/slack-api/agent.md"
  }
}