browser-gateway
REST API

REST API Reference

Every HTTP endpoint the gateway exposes, grouped by resource, auto-generated from source.

The gateway exposes three categories of HTTP endpoints:

  • Action endpoints (/v1/screenshot, /v1/content, /v1/scrape): one-shot browser actions, no client code needed.
  • Control endpoints (/v1/providers, /v1/config, /v1/profiles, /v1/replays, /v1/sessions, /v1/status): manage the gateway itself.
  • Compat + dashboard (/health, /json/version, /web/*): Chrome-compat endpoints and the dashboard.

All /v1/* endpoints require the BG_TOKEN header (or ?token= query param) if BG_TOKEN is set. /health and /json/version are always public.

All endpoints

MethodPathResource
GET/v1/auth/infoAuth Info
GET/v1/configConfig
PUT/v1/configConfig
POST/v1/config/validateConfig
POST/v1/contentContent
GET/healthHealth
GET/json/versionChrome Compat
GET/v1/profilesProfiles
DELETE/v1/profiles/:idProfiles
GET/v1/profiles/:idProfiles
GET/v1/profiles/:id/exportProfiles
POST/v1/profiles/createProfiles
POST/v1/profiles/importProfiles
POST/v1/profiles/setupProfiles
GET/v1/providersProviders
POST/v1/providersProviders
DELETE/v1/providers/:idProviders
PUT/v1/providers/:idProviders
GET/v1/providers/:id/capabilitiesProviders
POST/v1/providers/:id/capabilities/revalidateProviders
POST/v1/providers/:id/testProviders
GET/v1/replaysReplays
DELETE/v1/replays/:idReplays
GET/v1/replays/:idReplays
GET/v1/replays/:id/manifestReplays
GET/v1/replays/:id/targets/:targetId/export.mp4Replays
GET/v1/replays/:id/targets/:targetId/frames/:frameReplays
GET/v1/replays/:id/targets/:targetId/manifestReplays
POST/v1/replays/ffmpeg/installReplays
GET/v1/replays/ffmpeg/statusReplays
POST/v1/scrapeScrape
POST/v1/screenshotScreenshot
GET/v1/sessionsSessions
GET/v1/statusStatus
GET/webDashboard
GET/web/*Dashboard
POST/web/authDashboard
GET/web/auth/checkDashboard
POST/web/logoutDashboard

By resource

  • Auth Info: Report whether the gateway requires an auth token.
  • Config: Read, validate, and update gateway.yml over HTTP.
  • Content: Extract page content (HTML, markdown, or text) from any URL.
  • Health: Liveness probe. Always public, no auth required.
  • Chrome Compat: Chrome-compatible /json/version endpoint.
  • Profiles: Create, export, import, delete stored browser profiles.
  • Providers: CRUD for provider entries in gateway.yml.
  • Replays: List, fetch, delete session replay frames.
  • Scrape: Structured data extraction from a page.
  • Screenshot: One-shot screenshot of any URL, no client code required.
  • Sessions: Read-only view of active WebSocket sessions.
  • Status: Aggregate gateway status (providers, sessions, pool).
  • Dashboard: Dashboard static files + login endpoints.

On this page