{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/honeyhive-ai/json-schema/honeyhive-ai-post-workspace-request-schema.json",
  "title": "PostWorkspaceRequest",
  "description": "Request body for creating a workspace",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/honeyhive-ai-main-openapi.yml#/components/schemas/PostWorkspaceRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 200,
      "description": "Workspace display name. Allowed characters are the letters A-Z and a-z (no accented letters), digits, space, underscore, hyphen, apostrophe and ampersand. The name must contain at least one of those letters or a digit, and must not start with a space."
    },
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Globally unique identifier for the workspace, letters, digits and underscores only. Omit it and the server derives one from the name with a random suffix appended. Supply it when the identifier has to match a value maintained outside HoneyHive, such as an identity provider group that grants access to this workspace. A slug already in use returns 409."
    },
    "description": {
      "type": "string",
      "description": "Workspace description"
    },
    "workspace_creator": {
      "type": "string",
      "format": "email",
      "description": "Email of the user to grant the workspace-creator membership to (API key actors only). A signed-in user does not see the new workspace until their session refreshes, which happens on their next request to the control plane."
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}