---
updatedAt: 2026-09-02T17:35:26.000Z
agentTools:
  projectIndex: https://docs.go.v7labs.com/llms.txt
---

# Create a workspace

Creates a new workspace. Refused with 403 `directory_users_cannot_create_workspaces` for a user a customer's directory manages: their organization assigns their workspaces.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "Common.APIErrorDetails": {
        "description": "Additional structured error context. Shape varies by error code.\n\n- For conflict errors: contains a `conflicts` array with conflicting resources\n- For other errors: may contain arbitrary error-specific context",
        "nullable": true,
        "oneOf": [
          {
            "$ref": "#/components/schemas/Common.ConflictErrorDetails"
          },
          {
            "additionalProperties": true,
            "description": "Generic error details for non-conflict errors",
            "type": "object",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "title": "Common.APIErrorDetails",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Common.APIErrorDetails",
        "x-validate": null
      },
      "Common.ConflictErrorDetails": {
        "additionalProperties": false,
        "description": "Details for conflict errors",
        "properties": {
          "conflicts": {
            "description": "List of conflicting resources",
            "items": {
              "additionalProperties": true,
              "type": "object",
              "x-struct": null,
              "x-validate": null
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "conflicts"
        ],
        "title": "Common.ConflictErrorDetails",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Common.ConflictErrorDetails",
        "x-validate": null
      },
      "Workspaces.WorkspaceFeatureSettings": {
        "additionalProperties": false,
        "description": "Workspace-level feature settings",
        "properties": {
          "email_reply_to_copied_recipients": {
            "$ref": "#/components/schemas/Workspaces.EmailReplyToCopiedRecipients"
          },
          "email_send_progress_notification": {
            "$ref": "#/components/schemas/Workspaces.EmailSendProgressNotification"
          }
        },
        "required": [
          "email_reply_to_copied_recipients",
          "email_send_progress_notification"
        ],
        "title": "Workspaces.WorkspaceFeatureSettings",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Workspaces.WorkspaceFeatureSettings",
        "x-validate": null
      },
      "Workspaces.WorkspaceResponse": {
        "additionalProperties": false,
        "description": "A workspace",
        "properties": {
          "created_at": {
            "$ref": "#/components/schemas/Common.DateTime"
          },
          "disabled": {
            "$ref": "#/components/schemas/Workspaces.WorkspaceDisabled"
          },
          "feature_settings": {
            "$ref": "#/components/schemas/Workspaces.WorkspaceFeatureSettings"
          },
          "icon_url": {
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "id": {
            "$ref": "#/components/schemas/Common.UUID"
          },
          "metadata": {
            "$ref": "#/components/schemas/Workspaces.WorkspaceMetadata"
          },
          "name": {
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "organization_id": {
            "description": "The organization that holds the workspace. Null when no organization holds it.",
            "format": "uuid",
            "nullable": true,
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "role": {
            "$ref": "#/components/schemas/Workspaces.WorkspaceRole"
          }
        },
        "required": [
          "id",
          "name",
          "organization_id",
          "feature_settings",
          "metadata",
          "created_at"
        ],
        "title": "Workspaces.WorkspaceResponse",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Workspaces.WorkspaceResponse",
        "x-validate": null
      },
      "Common.UUID": {
        "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
        "format": "uuid",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "title": "Common.UUID",
        "type": "string",
        "x-struct": null,
        "x-validate": null
      },
      "Workspaces.EmailSendProgressNotification": {
        "description": "Whether email requests receive the delayed progress notification",
        "title": "Workspaces.EmailSendProgressNotification",
        "type": "boolean",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Workspaces.EmailSendProgressNotification",
        "x-validate": null
      },
      "Workspaces.CreateWorkspaceRequest": {
        "additionalProperties": false,
        "description": "Create workspace request",
        "properties": {
          "name": {
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "plan": {
            "description": "Superadmin only. Provisions the workspace on the given billing plan instead of the default. Non-admin callers that set it receive a 403.",
            "enum": [
              "free",
              "free_internal",
              "pro",
              "enterprise",
              "standard",
              "business",
              "enterprise_v2"
            ],
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        },
        "title": "Workspaces.CreateWorkspaceRequest",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Workspaces.CreateWorkspaceRequest",
        "x-validate": null
      },
      "Workspaces.WorkspaceDisabled": {
        "description": "Whether the workspace is disabled",
        "title": "Workspaces.WorkspaceDisabled",
        "type": "boolean",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Workspaces.WorkspaceDisabled",
        "x-validate": null
      },
      "Workspaces.WorkspaceMetadata": {
        "additionalProperties": false,
        "description": "Metadata for a workspace",
        "properties": {
          "tolt_referral": {
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        },
        "title": "Workspaces.WorkspaceMetadata",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Workspaces.WorkspaceMetadata",
        "x-validate": null
      },
      "Common.DateTime": {
        "description": "DateTime in RFC3339 format",
        "example": "2020-01-20T14:00:00Z",
        "format": "date-time",
        "title": "Common.DateTime",
        "type": "string",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Common.DateTime",
        "x-validate": null
      },
      "Workspaces.EmailReplyToCopiedRecipients": {
        "description": "Whether email replies include recipients copied on the inbound email",
        "title": "Workspaces.EmailReplyToCopiedRecipients",
        "type": "boolean",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Workspaces.EmailReplyToCopiedRecipients",
        "x-validate": null
      },
      "Common.APIError": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "example": "bad_request",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "details": {
            "$ref": "#/components/schemas/Common.APIErrorDetails"
          },
          "message": {
            "example": "Bad Request",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "Common.APIError",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Common.APIError",
        "x-validate": null
      },
      "Workspaces.WorkspaceRole": {
        "description": "The role of the user in the workspace. Only available when listing all workspaces.",
        "enum": [
          "owner",
          "admin",
          "editor",
          "contributor",
          "reviewer",
          "reader",
          "worker"
        ],
        "nullable": true,
        "title": "Workspaces.WorkspaceRole",
        "type": "string",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Workspaces.WorkspaceRole",
        "x-validate": null
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "in": "header",
        "name": "X-API-KEY",
        "type": "apiKey"
      },
      "BearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "V7 Go API",
    "version": "0.1.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/api/workspaces": {
      "post": {
        "callbacks": {},
        "description": "Creates a new workspace. Refused with 403 `directory_users_cannot_create_workspaces` for a user a customer's directory manages: their organization assigns their workspaces.",
        "operationId": "workspace-create",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Workspaces.CreateWorkspaceRequest"
              }
            }
          },
          "description": "Workspaces.CreateWorkspaceRequest",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workspaces.WorkspaceResponse"
                }
              }
            },
            "description": "Workspaces.WorkspaceResponse"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          }
        },
        "summary": "Create a workspace",
        "tags": [
          "Projects",
          "Workspaces"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "description": "EU",
      "url": "https://go.v7labs.com",
      "variables": {}
    },
    {
      "description": "US",
      "url": "https://go.us.v7labs.com",
      "variables": {}
    },
    {
      "description": "UAE",
      "url": "https://go.uae.v7labs.com",
      "variables": {}
    }
  ]
}
```