{"connections":[{"id":"vercel-sdk","title":"Vercel SDK (TypeScript)","kind":"sdk","language":"typescript","description":"Point the Vercel SDK at the emulator instance via serverURL.","template":"import { Vercel } from \"@vercel/sdk\";\n\nconst vercel = new Vercel({\n  serverURL: \"{{baseUrl}}\",\n  bearerToken: \"{{token}}\",\n});\n\nconst { projects } = await vercel.projects.getProjects({});","body":"import { Vercel } from \"@vercel/sdk\";\n\nconst vercel = new Vercel({\n  serverURL: \"https://vercel.your-instance.emulators.dev\",\n  bearerToken: \"<token>\",\n});\n\nconst { projects } = await vercel.projects.getProjects({});"},{"id":"vercel-fetch","title":"fetch (TypeScript)","kind":"sdk","language":"typescript","description":"Call the REST API directly with the emulator base URL.","template":"const res = await fetch(\"{{baseUrl}}/v2/user\", {\n  headers: { authorization: \"Bearer {{token}}\" },\n});\nconst { user } = await res.json();","body":"const res = await fetch(\"https://vercel.your-instance.emulators.dev/v2/user\", {\n  headers: { authorization: \"Bearer <token>\" },\n});\nconst { user } = await res.json();"},{"id":"vercel-env","title":"Vercel API base URL (env)","kind":"env","language":"bash","description":"Point the Vercel CLI or your app at the emulator instead of api.vercel.com.","template":"VERCEL_API_URL={{baseUrl}}\nVERCEL_TOKEN={{token}}","body":"VERCEL_API_URL=https://vercel.your-instance.emulators.dev\nVERCEL_TOKEN=<token>"},{"id":"curl","title":"curl","kind":"curl","language":"bash","description":"Call the REST API directly.","template":"curl -s {{baseUrl}}/v2/user -H \"authorization: Bearer {{token}}\"","body":"curl -s https://vercel.your-instance.emulators.dev/v2/user -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":"VERCEL_BASE_URL=https://vercel.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://vercel.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://vercel.your-instance.emulators.dev/_emulate/ledger"}]}