{"connections":[{"id":"resend-sdk","title":"Resend SDK (TypeScript)","kind":"sdk","language":"typescript","description":"Point the Resend SDK at the emulator. The SDK reads RESEND_BASE_URL for the API base.","template":"import { Resend } from \"resend\";\n\n// The Resend SDK honors RESEND_BASE_URL for the API host.\nprocess.env.RESEND_BASE_URL = \"{{baseUrl}}\";\nconst resend = new Resend(\"{{token}}\");\n\nawait resend.emails.send({\n  from: \"onboarding@example.com\",\n  to: \"test@example.com\",\n  subject: \"Hello from the emulator\",\n  html: \"<p>It works.</p>\",\n});","body":"import { Resend } from \"resend\";\n\n// The Resend SDK honors RESEND_BASE_URL for the API host.\nprocess.env.RESEND_BASE_URL = \"https://resend.your-instance.emulators.dev\";\nconst resend = new Resend(\"<token>\");\n\nawait resend.emails.send({\n  from: \"onboarding@example.com\",\n  to: \"test@example.com\",\n  subject: \"Hello from the emulator\",\n  html: \"<p>It works.</p>\",\n});"},{"id":"resend-env","title":"Resend env","kind":"env","language":"bash","description":"The Resend SDK reads RESEND_BASE_URL and RESEND_API_KEY.","template":"RESEND_BASE_URL={{baseUrl}}\nRESEND_API_KEY={{token}}","body":"RESEND_BASE_URL=https://resend.your-instance.emulators.dev\nRESEND_API_KEY=<token>"},{"id":"curl","title":"curl","kind":"curl","language":"bash","description":"Send an email directly against the REST API.","template":"curl -s -X POST {{baseUrl}}/emails \\\n  -H \"authorization: Bearer {{token}}\" \\\n  -H \"content-type: application/json\" \\\n  -d '{\"from\":\"onboarding@example.com\",\"to\":\"test@example.com\",\"subject\":\"Hello\",\"html\":\"<p>Hi</p>\"}'","body":"curl -s -X POST https://resend.your-instance.emulators.dev/emails \\\n  -H \"authorization: Bearer <token>\" \\\n  -H \"content-type: application/json\" \\\n  -d '{\"from\":\"onboarding@example.com\",\"to\":\"test@example.com\",\"subject\":\"Hello\",\"html\":\"<p>Hi</p>\"}'"},{"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":"RESEND_BASE_URL=https://resend.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://resend.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://resend.your-instance.emulators.dev/_emulate/ledger"}]}