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

# Create Workspace

> Creates a new client workspace for the agency. Agency plan required.

<Note>
  **Agency Plan Required** - This endpoint is only available for teams on the Agency plan.
</Note>

## Endpoint

```
POST https://api.kakiyo.com/v1/workspaces
```

## Request Body

| Field  | Type   | Required | Description                    |
| ------ | ------ | -------- | ------------------------------ |
| `name` | string | Yes      | Display name for the workspace |

## Response

```json theme={null}
{
  "id": "69724d900007cfde1d88",
  "name": "Acme Corporation",
  "clientTeamId": "69724d91000403019498",
  "createdAt": "2024-01-15T10:30:00.000Z"
}
```

## Example Request

```bash theme={null}
curl -X POST "https://api.kakiyo.com/v1/workspaces" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Acme Corporation"}'
```


## OpenAPI

````yaml POST /workspaces
openapi: 3.1.0
info:
  title: Kakiyo API
  description: API for automating LinkedIn outreach campaigns with AI-powered conversations
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.kakiyo.com/v1
security:
  - bearerAuth: []
paths:
  /workspaces:
    post:
      tags:
        - Workspaces
      summary: Create Workspace
      description: Creates a new client workspace for the agency. Agency plan required.
      operationId: createWorkspace
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Display name for the client workspace
                  example: Acme Corporation
      responses:
        '201':
          description: Workspace created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Workspace'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not on agency plan
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Workspace:
      type: object
      description: A client workspace for agency management
      properties:
        id:
          type: string
          description: Unique workspace identifier
          example: workspace_abc123def456
        name:
          type: string
          description: Display name of the workspace
          example: Acme Corporation
        clientTeamId:
          type: string
          description: Internal team identifier for client member management
          example: team_xyz789abc123
        createdAt:
          type: string
          format: date-time
          description: Timestamp of workspace creation
          example: '2024-01-15T10:30:00.000Z'
    Error:
      type: object
      properties:
        error:
          type: string
          example: validation_error
        message:
          type: string
          example: The request parameters failed validation
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                example: name
              message:
                type: string
                example: The name field is required
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````