> ## Documentation Index
> Fetch the complete documentation index at: https://tbd-6fc993ce-hypeship-stagehand-v4-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Make an HTTP request through the browser's network stack

> Sends an HTTP request through Chrome's HTTP request stack, inheriting
the browser's TLS fingerprint, cookies, proxy configuration, and headers.
Returns a structured JSON response with status, headers, body, and timing.




## OpenAPI

````yaml https://api.onkernel.com/spec.json post /browsers/{id}/curl
openapi: 3.1.0
info:
  description: Developer tools and cloud infrastructure for AI agents to use web browsers
  title: Kernel API
  version: 0.1.0
servers:
  - description: API Server
    url: https://api.onkernel.com
security:
  - bearerAuth: []
tags:
  - description: Create and manage browser sessions.
    name: Browsers
  - description: Control mouse, keyboard, and screen on the browser instance.
    name: Browser Computer Controls
  - description: Execute Playwright code against the browser instance.
    name: Browser Playwright
  - description: Read, write, and manage files on the browser instance.
    name: Browser Filesystem
  - description: Execute and manage processes on the browser instance.
    name: Browser Processes
  - description: Record and manage browser session video replays.
    name: Browser Replays
  - description: Stream logs from the browser instance.
    name: Browser Logs
  - description: >-
      Stream live telemetry events from a browser session, and manage the
      destinations sessions export them to.
    name: Browser Telemetry
  - description: Create, list, retrieve, and delete browser profiles.
    name: Profiles
  - description: Create and manage proxy configurations for routing browser traffic.
    name: Proxies
  - description: Create, list, retrieve, and delete browser extensions.
    name: Extensions
  - description: Create and manage browser pools for acquiring and releasing browsers.
    name: Browser Pools
  - description: Inspect the identity and authorization context for the current request.
    name: Authentication
  - description: >-
      Create and manage auth connections for automated credential capture and
      login.
    name: Managed Auth
  - description: Create and manage credentials for authentication.
    name: Credentials
  - description: Configure external credential providers like 1Password.
    name: Credential Providers
  - description: List applications and versions.
    name: Apps
  - description: Create and manage app deployments and stream deployment events.
    name: Deployments
  - description: Invoke actions and stream or query invocation status and events.
    name: Invocations
  - description: Read and manage organization-level limits.
    name: Organization
  - description: |
      Create and manage projects for resource isolation within an organization.
      When projects are disabled for the organization, project operations return
      `404` with code `projects_disabled`.
    name: Projects
  - description: Create and manage API keys for organization and project-scoped access.
    name: API Keys
  - description: Read audit log records for the authenticated organization.
    name: Audit Logs
  - description: Resolve browser and proxy recommendations for bot-protected sites.
    name: Site Configs
paths:
  /browsers/{id}/curl:
    post:
      tags:
        - Browsers
      summary: Make an HTTP request through the browser's network stack
      description: >
        Sends an HTTP request through Chrome's HTTP request stack, inheriting

        the browser's TLS fingerprint, cookies, proxy configuration, and
        headers.

        Returns a structured JSON response with status, headers, body, and
        timing.
      operationId: browserCurl
      parameters:
        - description: Browser session ID
          in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BrowserCurlRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrowserCurlResult'
          description: Response from target URL
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
        '502':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrowserCurlTransportError'
          description: Upstream transport failure
      security:
        - bearerAuth: []
components:
  schemas:
    BrowserCurlRequest:
      additionalProperties: false
      description: Request to make an HTTP request through the browser's network stack.
      properties:
        body:
          description: Request body (for POST/PUT/PATCH).
          type: string
        headers:
          additionalProperties:
            type: string
          description: Custom headers merged with browser defaults.
          type: object
        method:
          default: GET
          description: HTTP method.
          enum:
            - GET
            - HEAD
            - POST
            - PUT
            - PATCH
            - DELETE
            - OPTIONS
          type: string
        response_encoding:
          default: utf8
          description: Encoding for the response body. Use base64 for binary content.
          enum:
            - utf8
            - base64
          type: string
        timeout_ms:
          default: 30000
          description: Request timeout in milliseconds.
          maximum: 60000
          minimum: 1000
          type: integer
        url:
          description: Target URL (must be http or https).
          type: string
      required:
        - url
      type: object
    BrowserCurlResult:
      additionalProperties: false
      description: Structured response from the browser curl request.
      properties:
        body:
          description: Response body (UTF-8 string or base64 depending on request).
          type: string
        duration_ms:
          description: Total request duration in milliseconds.
          type: integer
        headers:
          additionalProperties:
            items:
              type: string
            type: array
          description: Response headers (multi-value).
          type: object
        status:
          description: HTTP status code from target.
          type: integer
      required:
        - status
        - headers
        - body
        - duration_ms
      type: object
    BrowserCurlTransportError:
      additionalProperties: false
      description: Transport-level error when the request could not complete.
      properties:
        message:
          description: Human-readable error description.
          type: string
        net_error:
          description: Chromium net error code.
          type: integer
        net_error_name:
          description: Chromium net error name.
          type: string
      required:
        - message
      type: object
    Error:
      properties:
        code:
          description: Application-specific error code (machine-readable)
          example: bad_request
          type: string
        details:
          description: Additional error details (for multiple errors)
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
        inner_error:
          $ref: '#/components/schemas/ErrorDetail'
        message:
          description: Human-readable error description for debugging
          example: 'Missing required field: app_name'
          type: string
      required:
        - code
        - message
      type: object
    ErrorDetail:
      properties:
        code:
          description: Lower-level error code providing more specific detail
          example: invalid_input
          type: string
        message:
          description: Further detail about the error
          example: Provided version string is not semver compliant
          type: string
      type: object
  responses:
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Bad Request – invalid input
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Resource not found
    InternalError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Internal Server Error
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````