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

# Create Tenant



## OpenAPI

````yaml /openapi/groundforge-openapi-v1.json post /v1/tenants
openapi: 3.1.0
info:
  title: GroundForge REST API
  version: 86Y.5p.6v.6aq
  description: >-
    Current GroundForge SaaS administration, Agent, Channel, MCP, governance,
    observability, and LangChain integration endpoints.
servers:
  - url: https://platform.groundforge.ai
    description: GroundForge SaaS
security: []
paths:
  /v1/tenants:
    post:
      tags:
        - Tenants
      summary: Create Tenant
      operationId: create_tenant_v1_tenants_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTenantRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    CreateTenantRequest:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        name:
          type: string
          title: Name
        status:
          $ref: '#/components/schemas/TenantStatus'
          default: active
        securityProfile:
          anyOf:
            - $ref: '#/components/schemas/TenantSecurityProfile'
            - type: 'null'
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
      type: object
      required:
        - name
      title: CreateTenantRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TenantStatus:
      type: string
      enum:
        - active
        - disabled
        - archived
      title: TenantStatus
    TenantSecurityProfile:
      properties:
        tenantId:
          type: string
          title: Tenantid
        isolationMode:
          $ref: '#/components/schemas/IsolationMode'
          default: pooled
        complianceProfile:
          anyOf:
            - type: string
            - type: 'null'
          title: Complianceprofile
        dataResidencyRegion:
          anyOf:
            - type: string
            - type: 'null'
          title: Dataresidencyregion
        retentionPolicyDays:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retentionpolicydays
        auditRetentionDays:
          anyOf:
            - type: integer
            - type: 'null'
          title: Auditretentiondays
        containsPhi:
          type: boolean
          title: Containsphi
          default: false
        containsPii:
          type: boolean
          title: Containspii
          default: false
        kmsKeyRef:
          anyOf:
            - type: string
            - type: 'null'
          title: Kmskeyref
        auditLevel:
          anyOf:
            - type: string
            - type: 'null'
          title: Auditlevel
        dataClassification:
          $ref: '#/components/schemas/DataClassification'
          default: confidential
      type: object
      required:
        - tenantId
      title: TenantSecurityProfile
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    IsolationMode:
      type: string
      enum:
        - pooled
        - siloed
      title: IsolationMode
    DataClassification:
      type: string
      enum:
        - public
        - internal
        - confidential
        - restricted
      title: DataClassification
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OIDC access token for users and CLI clients.
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Scoped service-account API key for external Agents and runtime clients.

````

## Related topics

- [Create Sub Tenant](/api-reference/endpoints/subtenants/create-sub-tenant.md)
- [Create User](/api-reference/endpoints/create-user.md)
- [Create Group](/api-reference/endpoints/create-group.md)
- [Create Grant](/api-reference/endpoints/create-grant.md)
