Session-Based (Web App)
After logging in through WorkOS, a JWT session cookie (whilst_session) is set automatically. This is used for all web app API calls.
API Key (MCP Server)
For programmatic access via the MCP Server, workspace-scoped API keys are used.Key Format
- Prefix:
whl_(whilst) - Environment:
live_ortest_ - Random: 32 bytes, base64url encoded
Key Management
Generate and manage API keys from Settings → API Keys in the web app. Keys support granular permissions:docs:read— Read documentsdocs:write— Create and edit documentsfolders:read— Read foldersfolders:write— Create and edit folderssearch— Execute search queries
Usage
Pass the API key in the environment when connecting your MCP client:Slack Signature Verification
Bot-facing endpoints verify theX-Slack-Signature header using Slack’s signing secret. This is handled internally by the Event Intake Lambda.
