{
  "http": {
    "allowlist": [
      {
        "host": "slack.com",
        "path_prefix": "/api/",
        "methods": ["GET", "POST"]
      }
    ],
    "credentials": {
      "slack_bot_token": {
        "secret_name": "slack_bot_token",
        "location": { "type": "bearer" },
        "host_patterns": ["slack.com"]
      }
    },
    "rate_limit": {
      "requests_per_minute": 50,
      "requests_per_hour": 1000
    },
    "timeout_secs": 30
  },
  "secrets": {
    "allowed_names": ["slack_bot_token"]
  },
  "auth": {
    "secret_name": "slack_bot_token",
    "display_name": "Slack",
    "oauth": {
      "authorization_url": "https://slack.com/oauth/v2/authorize",
      "token_url": "https://slack.com/api/oauth.v2.access",
      "client_id_env": "SLACK_OAUTH_CLIENT_ID",
      "client_secret_env": "SLACK_OAUTH_CLIENT_SECRET",
      "scopes": [
        "chat:write",
        "channels:read",
        "channels:history",
        "groups:read",
        "groups:history",
        "reactions:write",
        "users:read"
      ],
      "use_pkce": false
    },
    "instructions": "1. Create a Slack App at https://api.slack.com/apps\n2. Add Bot Token Scopes under OAuth & Permissions:\n   chat:write, channels:read, channels:history, groups:read,\n   groups:history, reactions:write, users:read\n3. Install the app to your workspace\n4. Copy the Bot User OAuth Token (starts with xoxb-)",
    "setup_url": "https://api.slack.com/apps",
    "token_hint": "Starts with 'xoxb-'",
    "env_var": "SLACK_BOT_TOKEN"
  }
}
