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

# create knowledge group

> Create a new knowledge group



## OpenAPI

````yaml https://api.anam.ai/swagger.json post /v1/knowledge/groups
openapi: 3.1.0
info:
  title: Anam AI API
  version: '1.0'
servers:
  - url: https://api.anam.ai
    description: Anam API
security:
  - BearerAuth: []
tags:
  - name: Sessions
  - name: Avatar Videos
  - name: Meetings
  - name: Personas
  - name: Avatars
  - name: Voices
  - name: Pronunciation Dictionaries
  - name: LLMs
  - name: Knowledge
  - name: Tools
  - name: Share Links
  - name: Engine
paths:
  /v1/knowledge/groups:
    post:
      tags:
        - Knowledge
      summary: create knowledge group
      description: Create a new knowledge group
      operationId: createKnowledgeGroup
      requestBody:
        description: >-
          Name and optional description for the new knowledge group. The group
          starts empty — upload documents separately via `POST
          /v1/knowledge/groups/{id}/documents`.
        required: true
        content:
          application/json:
            examples:
              default:
                $ref: '#/components/examples/KnowledgeGroupCreate'
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                description:
                  type: string
                chunkSize:
                  type:
                    - integer
                    - 'null'
                  minimum: 100
                  maximum: 2000
                  description: >-
                    Default maximum tokens per chunk for this folder's
                    documents; 350 when left out or null.
                chunkOverlap:
                  type:
                    - integer
                    - 'null'
                  minimum: 0
                  maximum: 1000
                  description: >-
                    Default token overlap between this folder's chunks, at most
                    half of `chunkSize` (175 without one); 0 when left out or
                    null.
      responses:
        '201':
          description: Successfully created knowledge group
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeGroup'
              examples:
                default:
                  $ref: '#/components/examples/KnowledgeGroupResponse'
        '400':
          description: Bad request - Invalid data
        '401':
          description: Unauthorized - Invalid or missing API key
        '403':
          description: Forbidden - API key lacks the required permission
        '500':
          description: Server error
        '503':
          description: >-
            The API key could not be checked because of a temporary server
            problem. The key may be valid; retry after `Retry-After` seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableError'
components:
  examples:
    KnowledgeGroupCreate:
      summary: Create an empty knowledge group with default chunk settings
      value:
        name: Product docs
        description: Help-centre articles and API reference.
        chunkSize: 800
        chunkOverlap: 100
    KnowledgeGroupResponse:
      summary: A single knowledge group
      value:
        id: 00000000-0000-0000-0000-000000000000
        name: Product docs
        description: Help-centre articles and API reference.
        documentCount: 12
        chunkSize: 800
        chunkOverlap: 100
        createdAt: '2026-04-20T10:00:00.000Z'
        updatedAt: '2026-04-20T10:00:00.000Z'
  schemas:
    KnowledgeGroup:
      type: object
      description: A folder of documents that a persona can search via RAG tools.
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the knowledge group.
        name:
          type: string
          description: Human-readable name for the group.
        description:
          type:
            - string
            - 'null'
          description: Free-form description of what the group contains.
        documentCount:
          type: integer
          description: Number of non-deleted documents currently in the group.
        chunkSize:
          type:
            - integer
            - 'null'
          description: >-
            Default maximum tokens per chunk for documents in this group. Null
            means documents use the default of 350.
        chunkOverlap:
          type:
            - integer
            - 'null'
          description: >-
            Default token overlap for documents in this group. Null means
            documents use the default of 0.
        createdAt:
          type: string
          format: date-time
          description: Timestamp when the group was created.
        updatedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: Timestamp when the group was last updated.
    ServiceUnavailableError:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          example: Service temporarily unavailable
        message:
          type: string
          example: We could not check your API key. Please retry shortly.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.