{"connections":[{"id":"openapi-schema","title":"OpenAPI schema","kind":"env","language":"bash","description":"Use this URL in OpenAPI clients that support discovery.","template":"POSTHOG_OPENAPI_URL={{baseUrl}}/api/schema/","body":"POSTHOG_OPENAPI_URL=https://posthog.your-instance.emulators.dev/api/schema/"},{"id":"oauth-metadata","title":"OAuth metadata","kind":"env","language":"bash","description":"Protected resource metadata for OAuth discovery.","template":"POSTHOG_RESOURCE_METADATA_URL={{baseUrl}}/.well-known/oauth-protected-resource","body":"POSTHOG_RESOURCE_METADATA_URL=https://posthog.your-instance.emulators.dev/.well-known/oauth-protected-resource"},{"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":"POSTHOG_BASE_URL=https://posthog.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://posthog.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://posthog.your-instance.emulators.dev/_emulate/ledger"}]}