The gateway worker (worker-gateway) is the single entry point for all API requests. It handles session verification, request routing, and header injection for downstream workers.
Base URL
http://localhost:8787 (development)
https://api.example.com (production)
Authentication
Most endpoints require a valid Better Auth session cookie (better-auth.session_token). The gateway verifies the session by calling worker-auth internally and injects user context headers before proxying.
Injected Headers
When a session is valid, the gateway adds these headers to downstream requests: