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

# Create Site

> Create a new site.



## OpenAPI

````yaml /api-reference/openapi.json post /api/knowledge/sites
openapi: 3.1.0
info:
  title: Big Panda — Public API
  description: >-
    Externe REST-API für Connector-Plugins (JTL, Shopware), n8n-Integrationen
    und Custom-Clients. Tenant-Routing über Subdomain, Auth über Bearer-Token.
  version: 0.1.0
servers:
  - url: https://{tenant}.app.big-panda.ai
    description: Big Panda — Tenant-Subdomain. Ersetze {tenant} durch deinen Tenant-Slug.
    variables:
      tenant:
        default: demo
        description: Dein Big-Panda-Tenant-Slug (z.B. 'acme').
security:
  - BearerAuth: []
tags:
  - name: Products
  - name: Knowledge Entries
  - name: Categories
  - name: Sites
  - name: Search
  - name: OAuth
    description: >-
      OAuth-2.1-Authentifizierung — Discovery, Dynamic Client Registration,
      Authorize, Token, Revoke.
paths:
  /api/knowledge/sites:
    post:
      tags:
        - Sites
      summary: Create Site
      description: Create a new site.
      operationId: create_site_sites_post
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SiteCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SiteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SiteCreate:
      properties:
        slug:
          type: string
          maxLength: 100
          minLength: 1
          pattern: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$
          title: Slug
          description: URL-safe identifier (e.g. 'werkzeug-de')
        name:
          type: string
          maxLength: 200
          minLength: 1
          title: Name
        domain:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Domain
        language:
          type: string
          maxLength: 5
          minLength: 2
          title: Language
        site_type:
          type: string
          maxLength: 50
          title: Site Type
          default: shop
        platform:
          anyOf:
            - type: string
              maxLength: 50
            - type: 'null'
          title: Platform
        config:
          additionalProperties: true
          type: object
          title: Config
        is_default:
          type: boolean
          title: Is Default
          default: false
      type: object
      required:
        - slug
        - name
        - language
      title: SiteCreate
      description: Payload for creating a new site.
    SiteResponse:
      properties:
        id:
          type: string
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        slug:
          type: string
          title: Slug
        name:
          type: string
          title: Name
        domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Domain
        language:
          type: string
          title: Language
        site_type:
          type: string
          title: Site Type
        platform:
          anyOf:
            - type: string
            - type: 'null'
          title: Platform
        config:
          additionalProperties: true
          type: object
          title: Config
        is_default:
          type: boolean
          title: Is Default
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - tenant_id
        - slug
        - name
        - domain
        - language
        - site_type
        - platform
        - config
        - is_default
        - created_at
      title: SiteResponse
      description: Site data returned in responses.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API-Token aus dem Big-Panda-Admin-UI unter Einstellungen → API-Keys.
        Header: `Authorization: Bearer <token>`.

````