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

# Create Workspace Endpoint

> Create a new workspace owned by the current user.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/workspaces
openapi: 3.1.0
info:
  description: >
    Create and run form-filling voice agents, and read back the conversations
    they had.


    Send your API key on every request as `Authorization: Bearer fb_live_...`.

    A key belongs to one workspace and only reaches that workspace's agents.
    Create

    and revoke keys from Settings in the web app; keys cannot manage other keys.
  title: FormBharo API
  version: 1.0.0
servers:
  - description: Production
    url: https://form-fill-agent-backend.artpark.ai
security:
  - apiKey: []
paths:
  /api/v1/workspaces:
    post:
      tags:
        - Workspaces
      summary: Create Workspace Endpoint
      description: Create a new workspace owned by the current user.
      operationId: create_workspace_endpoint_api_v1_workspaces_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWorkspaceRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceListItem'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    CreateWorkspaceRequest:
      description: Name of a new workspace to create.
      properties:
        name:
          title: Name
          type: string
      required:
        - name
      title: CreateWorkspaceRequest
      type: object
    WorkspaceListItem:
      description: >-
        One row of ``GET /workspaces`` (also the shape returned when creating
        one).
      properties:
        agent_count:
          title: Agent Count
          type: integer
        id:
          title: Id
          type: string
        is_personal:
          title: Is Personal
          type: boolean
        name:
          title: Name
          type: string
        owner_email:
          title: Owner Email
          type: string
        role:
          enum:
            - admin
            - limited
          title: Role
          type: string
      required:
        - id
        - name
        - owner_email
        - is_personal
        - role
        - agent_count
      title: WorkspaceListItem
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    apiKey:
      bearerFormat: fb_live_...
      scheme: bearer
      type: http

````