{"connections":[{"id":"clerk-backend","title":"Clerk Backend SDK (TypeScript)","kind":"sdk","language":"typescript","description":"Point the Clerk Backend SDK at the emulator instance with apiUrl.","template":"import { createClerkClient } from \"@clerk/backend\";\n\nconst clerk = createClerkClient({\n  secretKey: \"{{token}}\",\n  apiUrl: \"{{baseUrl}}\",\n});\n\nconst users = await clerk.users.getUserList();","body":"import { createClerkClient } from \"@clerk/backend\";\n\nconst clerk = createClerkClient({\n  secretKey: \"<token>\",\n  apiUrl: \"https://clerk.your-instance.emulators.dev\",\n});\n\nconst users = await clerk.users.getUserList();"},{"id":"clerk-env","title":"Clerk environment (env)","kind":"env","language":"bash","description":"The Clerk SDKs honor CLERK_API_URL and CLERK_SECRET_KEY.","template":"CLERK_API_URL={{baseUrl}}\nCLERK_SECRET_KEY={{token}}","body":"CLERK_API_URL=https://clerk.your-instance.emulators.dev\nCLERK_SECRET_KEY=<token>"},{"id":"curl","title":"curl","kind":"curl","language":"bash","description":"Call the Backend API directly with the secret key.","template":"curl -s {{baseUrl}}/v1/users -H \"authorization: Bearer {{token}}\"","body":"curl -s https://clerk.your-instance.emulators.dev/v1/users -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":"CLERK_BASE_URL=https://clerk.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://clerk.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://clerk.your-instance.emulators.dev/_emulate/ledger"}]}