Skip to main content
The Hyperbrowser REST API is organized around resource-oriented URLs, accepts JSON request bodies (and multipart/form-data for file/extension uploads), returns JSON responses, and uses standard HTTP status codes.

Authentication

Pass your API key in the x-api-key HTTP header on every /api/* request:
Create unrestricted or least-privilege scoped API keys in the Hyperbrowser Dashboard. See Authentication & Scoped API Keys for the full scope catalog, OAuth 2.0 Bearer auth for Hosted MCP, and X402 pay-per-request JWT auth (/x402/*).
GET /api/secrets/public-key is publicly readable without authentication so SDKs can fetch the encryption key before uploading secrets.

Content Types & Versioning

  • Request & response format: Set Content-Type: application/json for JSON bodies. File upload endpoints (POST /api/session/{id}/uploads, POST /api/extensions/add) use multipart/form-data.
  • Timestamps: ISO 8601 UTC strings (for example, "2026-04-01T12:00:00.000Z") or Unix epoch milliseconds where noted in the endpoint schema.
  • Identifiers: UUID v4 strings unless a resource explicitly supports human-readable names/keys (such as sandbox images, snapshots, volumes, secrets, and vaults).
  • API stability: New optional fields may be added to responses without a breaking version bump. Ignore unknown response fields when deserializing.

Error Envelope & Status Codes

Failed requests return a JSON error body with a message string explaining the cause (authentication and scope rejections use error instead):
See Rate Limits & Errors for concurrency ceilings, retry templates, and troubleshooting.

Pagination

List endpoints accept page (1-indexed) and limit query parameters (or offset + limit on /api/disks) and return totalCount alongside the requested page. GET /api/session/{id}/event-logs also supports optional startTimestamp and endTimestamp filters alongside page and limit:

Async Jobs & Idempotency

  • Async jobs (200/201 with jobId): Endpoints such as POST /api/web/fetch/job, POST /api/web/batch-fetch, POST /api/web/crawl, POST /api/task/*, and legacy scraping endpoints enqueue background work. Poll the sibling /status endpoint (pending -> running -> completed | failed | stopped) before fetching full results.
  • Idempotency: Persistent disk creation (POST /api/disks) and disk snapshots (POST /api/disks/{id}/snapshot) accept a client-supplied UUID id for safe idempotent retries. PUT /api/session/{id}/stop and PUT /api/sandbox/{id}/stop are idempotent on already-stopped resources.
  • Cleanup invariant: Always stop active browser sessions (PUT /api/session/{id}/stop) and sandboxes (PUT /api/sandbox/{id}/stop) in a finally block to avoid idle billing.