{"connections":[{"id":"web-api","title":"Slack Web API client (TypeScript)","kind":"sdk","language":"typescript","description":"Point @slack/web-api at the emulator instance.","template":"import { WebClient } from \"@slack/web-api\";\n\nconst slack = new WebClient(\"{{token}}\", {\n  slackApiUrl: \"{{baseUrl}}/api/\",\n});","body":"import { WebClient } from \"@slack/web-api\";\n\nconst slack = new WebClient(\"<token>\", {\n  slackApiUrl: \"https://slack.your-instance.emulators.dev/api/\",\n});"},{"id":"slack-env","title":"Slack env","kind":"env","language":"bash","description":"Many Slack SDKs honor SLACK_API_URL and a bot token.","template":"SLACK_API_URL={{baseUrl}}/api/\nSLACK_BOT_TOKEN={{token}}","body":"SLACK_API_URL=https://slack.your-instance.emulators.dev/api/\nSLACK_BOT_TOKEN=<token>"},{"id":"curl","title":"curl","kind":"curl","language":"bash","description":"Call a Web API method directly.","template":"curl -s -X POST {{baseUrl}}/api/auth.test \\\n  -H \"authorization: Bearer {{token}}\"","body":"curl -s -X POST https://slack.your-instance.emulators.dev/api/auth.test \\\n  -H \"authorization: Bearer <token>\""},{"id":"base-url","title":"Base URL (env)","kind":"env","language":"bash","description":"Point your SDK or app at the emulator instead of the real provider.","template":"{{SERVICE_UPPER}}_BASE_URL={{baseUrl}}","body":"SLACK_BASE_URL=https://slack.your-instance.emulators.dev"},{"id":"create-credential","title":"Create a credential","kind":"curl","language":"bash","description":"Mint a working credential for this instance.","template":"curl -s -X POST {{controlBaseUrl}}/credentials \\\n  -H \"content-type: application/json\" \\\n  -d '{\"type\":\"{{defaultAuthType}}\"}'","body":"curl -s -X POST https://slack.your-instance.emulators.dev/_emulate/credentials \\\n  -H \"content-type: application/json\" \\\n  -d '{\"type\":\"bearer-token\"}'"},{"id":"inspect-ledger","title":"Inspect requests","kind":"curl","language":"bash","description":"Read the request ledger to validate how your app called the service.","template":"curl -s {{controlBaseUrl}}/ledger","body":"curl -s https://slack.your-instance.emulators.dev/_emulate/ledger"}]}