# Add a new workspace

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /workspaces/add/:
    post:
      summary: Add a new workspace
      deprecated: false
      description: >-
        Adds a new workspace to PlusVibe.ai using an existing workspace ID for
        reference.
      operationId: Workspace_workspace/add-a-new-workspace
      tags:
        - Workspace
        - Workspace
      parameters:
        - name: x-api-key
          in: header
          description: Your PlusVibe.ai account's API Key
          required: true
          example: ''
          schema:
            type: string
            description: Your PlusVibe.ai account's API Key
            default: ''
            examples:
              - your-api-key
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                workspace_id:
                  type: string
                  description: >-
                    The ID of any existing workspace to authenticate the API
                    key.
                  examples:
                    - 66c5860c0d3839cddfe96a31
                workspace_name:
                  type: string
                  description: The name of the new workspace to be created.
                  examples:
                    - New Workspace 1
              required:
                - workspace_id
                - workspace_name
              x-apidog-orders:
                - workspace_id
                - workspace_name
      responses:
        '200':
          description: Workspace created successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: The status of the operation.
                    examples:
                      - success
                  _id:
                    type: string
                    description: The unique ID of the newly created workspace.
                    examples:
                      - 675fb8aca8d7a0a931119c58
                x-apidog-orders:
                  - status
                  - _id
          headers: {}
          x-apidog-name: OK
        '401':
          description: Failed to create the workspace.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: Error code indicating the failure reason.
                  message:
                    type: string
                    description: A message describing the reason for the failure.
                    examples:
                      - >-
                        Maximum allowed limit reached for Workspace. Please
                        upgrade your Plan
                  data:
                    type: object
                    description: Additional data related to the failure, if any.
                    properties: {}
                    x-apidog-orders: []
                x-apidog-orders:
                  - code
                  - message
                  - data
          headers: {}
          x-apidog-name: Unauthorized
      security:
        - ApiKeyAuth: []
          x-apidog:
            schemeGroups:
              - id: uS5KiuC4wfZHK42AzOfA_
                schemeIds:
                  - ApiKeyAuth
            required: true
            use:
              id: uS5KiuC4wfZHK42AzOfA_
            scopes:
              uS5KiuC4wfZHK42AzOfA_:
                ApiKeyAuth: []
      x-apidog-folder: Workspace
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/929054/apis/api-17237994-run
components:
  schemas: {}
  securitySchemes:
    ApiKeyAuth:
      type: apikey
      in: header
      name: x-api-key
      description: |
        API key issued in the PlusVibe dashboard. The server reads it
        from the `x-api-key` header and injects it into the request as
        the `api_key` query parameter, which is why you will see
        `api_key` referenced in validation errors.
    apiKey:
      type: apikey
      in: body
      name: api_key
      description: API key passed in request body
servers:
  - url: https://api.plusvibe.ai/api/v1
    description: Prod Env
security:
  - ApiKeyAuth: []
    x-apidog:
      schemeGroups:
        - id: uS5KiuC4wfZHK42AzOfA_
          schemeIds:
            - ApiKeyAuth
      required: true
      use:
        id: uS5KiuC4wfZHK42AzOfA_
      scopes:
        uS5KiuC4wfZHK42AzOfA_:
          ApiKeyAuth: []

```
