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

# Create workspace

> Create a new workspace to organize computers.

Creates a new workspace to organize your computers.

<Info>
  Workspaces are containers for computers. Use them to separate different projects, environments, or teams.
</Info>

## Request

<ParamField body="name" type="string" required>
  Workspace name. Must be unique within your account.
</ParamField>

<ParamField body="icon_url" type="string">
  Optional URL of an icon for the workspace.
</ParamField>

<ParamField body="status" type="string" default="active">
  Workspace status: `active` or `inactive`.
</ParamField>

## Response

<ResponseField name="id" type="string">
  Unique workspace identifier.
</ResponseField>

<ResponseField name="name" type="string">
  Workspace name.
</ResponseField>

<ResponseField name="user_id" type="string">
  Owner user ID.
</ResponseField>

<ResponseField name="status" type="string">
  Workspace status.
</ResponseField>

<ResponseField name="icon_url" type="string">
  Icon URL, if set.
</ResponseField>

<ResponseField name="created_at" type="string">
  ISO 8601 timestamp.
</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://www.orgo.ai/api/workspaces \
    -H "Authorization: Bearer $ORGO_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"name": "production"}'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://www.orgo.ai/api/workspaces",
      headers={
          "Authorization": f"Bearer {api_key}",
          "Content-Type": "application/json"
      },
      json={"name": "production"}
  )

  workspace = response.json()
  print(f"Created: {workspace['id']}")
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://www.orgo.ai/api/workspaces', {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${apiKey}`,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ name: 'production' })
  });

  const workspace = await response.json();
  console.log(`Created: ${workspace.id}`);
  ```
</CodeGroup>

### Response

```json theme={null}
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "production",
  "user_id": "4d96f9a0-7727-4b63-889a-32544c206d7c",
  "status": "active",
  "icon_url": null,
  "created_at": "2026-04-07T10:30:00Z"
}
```

## Errors

* `400` - Name is empty, or a workspace with this name already exists


## OpenAPI

````yaml POST /workspaces
openapi: 3.1.0
info:
  title: Orgo API
  description: >-
    Launch cloud computers that AI agents can control and interact with. Create
    workspaces, provision computers, and control them programmatically.
  version: 2.0.0
  contact:
    name: Orgo Support
    email: spencer@orgo.ai
    url: https://orgo.ai
servers:
  - url: https://www.orgo.ai/api
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: Organize computers into named workspaces
  - name: Computers
    description: Provision and manage virtual computers
  - name: Computer Lifecycle
    description: Start, stop, and restart computers
  - name: Computer Actions
    description: Control mouse, keyboard, and execute commands
  - name: Streaming
    description: Stream computer display via RTMP
  - name: Files
    description: Upload and download files
  - name: Templates
    description: Author, build, and launch reproducible computers from templates
paths:
  /workspaces:
    post:
      tags:
        - Workspaces
      summary: Create workspace
      description: Creates a new workspace. Workspace names must be unique per user.
      operationId: createWorkspace
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Workspace name. Must be unique within your account.
                  minLength: 1
                  example: my-workspace
                icon_url:
                  type: string
                  description: Optional icon URL
                status:
                  type: string
                  enum:
                    - active
                    - inactive
                  default: active
      responses:
        '201':
          description: Workspace created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Workspace'
              example:
                id: 550e8400-e29b-41d4-a716-446655440000
                name: my-workspace
                user_id: 4d96f9a0-7727-4b63-889a-32544c206d7c
                status: active
                icon_url: null
                created_at: '2026-04-07T10:30:00Z'
        '400':
          description: Workspace name already exists or invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Workspace:
      type: object
      properties:
        id:
          type: string
          description: Unique workspace identifier
          example: 550e8400-e29b-41d4-a716-446655440000
        name:
          type: string
          description: Workspace name
          example: production
        user_id:
          type: string
          description: Owner user ID
        status:
          type: string
          enum:
            - active
            - inactive
          example: active
        icon_url:
          type: string
          nullable: true
          description: Optional icon URL
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
  responses:
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Invalid API key
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Get your key at orgo.ai/workspaces

````