> ## Documentation Index
> Fetch the complete documentation index at: https://docs-preview.webcompute.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Stage a browser file



## OpenAPI

````yaml /openapi/webcompute.json post /v1/browsers/{id}/files
openapi: 3.0.0
info:
  title: Webcompute API
  description: >-
    Public Webcompute REST API for managed browsers, browser-control execution,
    resources, quick actions, and health checks.
  version: 0.1.0
servers:
  - url: https://api.webcompute.dev
    description: Webcompute production API
security:
  - bearer: []
tags:
  - name: Health
    description: Public liveness and readiness checks.
  - name: Browsers
    description: >-
      Managed browser lifecycle, browser control, status, blockers, and
      resources.
  - name: Quick Actions
    description: Ephemeral browser actions for scrape, screenshot, and PDF generation.
paths:
  /v1/browsers/{id}/files:
    post:
      tags:
        - Browsers
      summary: Stage a browser file
      operationId: BrowserController_createBrowserFile
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateBrowserFileDto'
      responses:
        '201':
          description: File staged
      security:
        - bearer: []
components:
  schemas:
    CreateBrowserFileDto:
      type: object
      properties:
        name:
          type: string
          description: Original file name to expose to the browser upload target
        mimeType:
          type: string
          description: Optional MIME type for upload target accept checks
        base64:
          type: string
          description: Base64-encoded file bytes to stage into browser-controlled storage
      required:
        - name
        - base64
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http

````