> ## 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 Sub Tenant



## OpenAPI

````yaml /openapi/groundforge-openapi-v1.json post /v1/sub-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/sub-tenants:
    post:
      tags:
        - SubTenants
      summary: Create Sub Tenant
      operationId: create_sub_tenant_v1_sub_tenants_post
      parameters:
        - name: tenant_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Tenant Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSubTenantRequest'
      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:
    CreateSubTenantRequest:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        tenantId:
          anyOf:
            - type: string
            - type: 'null'
          title: Tenantid
        name:
          type: string
          title: Name
        displayName:
          anyOf:
            - type: string
            - type: 'null'
          title: Displayname
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        status:
          $ref: '#/components/schemas/SubTenantStatus'
          default: active
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
      type: object
      required:
        - name
      title: CreateSubTenantRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SubTenantStatus:
      type: string
      enum:
        - active
        - disabled
        - blocked
        - archived
      title: SubTenantStatus
    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
  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 Tenant](/api-reference/endpoints/tenants/create-tenant.md)
- [Get Sub Tenant](/api-reference/endpoints/subtenants/get-sub-tenant.md)
- [Delete Sub Tenant](/api-reference/endpoints/subtenants/delete-sub-tenant.md)
- [Update Sub Tenant](/api-reference/endpoints/subtenants/update-sub-tenant.md)
