> ## Documentation Index
> Fetch the complete documentation index at: https://browseruse-0aece648-larsen-v1-unified-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Agent Workspace

> Create an agent workspace. Pass its id into runs to share one disk across sessions.



## OpenAPI

````yaml /cloud/openapi/v1.json post /agent-workspaces
openapi: 3.1.0
info:
  title: Browser Use API v1
  summary: Unified /api/v1 preview spec, non-production only
  version: 1.0.0
servers:
  - url: https://api-staging-ufcbwvyv9yifyyvc3.browser-use.com/api/v1
    description: Browser Use API v1 (staging)
security: []
paths:
  /agent-workspaces:
    post:
      tags:
        - Agent workspaces
      summary: Create Agent Workspace
      description: >-
        Create an agent workspace. Pass its id into runs to share one disk
        across sessions.
      operationId: create_agent_workspace_agent_workspaces_post
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/CreateAgentWorkspace'
                - type: 'null'
              title: Body
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentWorkspace'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    CreateAgentWorkspace:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: Name
          description: Human-readable label for the workspace.
      additionalProperties: false
      type: object
      title: CreateAgentWorkspace
    AgentWorkspace:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Workspace id — pass this to share a disk across runs.
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: Human-readable label, if set.
        createdAt:
          type: string
          format: date-time
          title: Createdat
          description: When the workspace was created.
      type: object
      required:
        - id
        - createdAt
      title: AgentWorkspace
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Browser-Use-API-Key

````