{"connections":[{"id":"workos-node","title":"WorkOS Node SDK","kind":"sdk","language":"typescript","description":"Point @workos-inc/node at the emulator via apiHostname — sealed sessions, JWKS, everything follows.","template":"import { WorkOS } from \"@workos-inc/node\";\n\nconst url = new URL(\"{{baseUrl}}\");\nconst workos = new WorkOS(\"{{token}}\", {\n  clientId: \"client_emulate\",\n  apiHostname: url.hostname,\n  port: Number(url.port),\n  https: url.protocol === \"https:\",\n});","body":"import { WorkOS } from \"@workos-inc/node\";\n\nconst url = new URL(\"https://workos.your-instance.emulators.dev\");\nconst workos = new WorkOS(\"<token>\", {\n  clientId: \"client_emulate\",\n  apiHostname: url.hostname,\n  port: Number(url.port),\n  https: url.protocol === \"https:\",\n});"},{"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":"WORKOS_BASE_URL=https://workos.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://workos.your-instance.emulators.dev/_emulate/credentials \\\n  -H \"content-type: application/json\" \\\n  -d '{\"type\":\"api-key\"}'"},{"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://workos.your-instance.emulators.dev/_emulate/ledger"}]}