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

# List a knowledge document's direct children

> Returns the direct children of one knowledge document as a flat, lite-shape list.



## OpenAPI

````yaml /openapi.yaml get /api/knowledge/{id}/children
openapi: 3.0.3
info:
  title: Aptly API
  version: '1.0'
  description: |
    The Aptly API lets external systems work with boards, contacts, inboxes,
    tasks, files, and other Aptly resources.

    Most endpoints accept an API key in the `x-token` header. Some endpoints
    also accept a delegate token or partner bearer token, as shown in each
    operation's security requirements, and explicitly public endpoints require
    no credential. API keys are scoped to a company and may be restricted to
    specific boards and read, insert, or update permissions; requests outside
    those restrictions receive a 403 `FORBIDDEN` response.
servers:
  - url: https://core-api.getaptly.com
    description: Production
security:
  - ApiKeyHeader: []
paths:
  /api/knowledge/{id}/children:
    get:
      tags:
        - Knowledge
      summary: List a knowledge document's direct children
      description: >-
        Returns the direct children of one knowledge document as a flat,
        lite-shape list.
      operationId: getKnowledgeDocChildren
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The knowledge document (folder) ID.
      responses:
        '200':
          description: The document's direct children.
          content:
            application/json:
              schema:
                type: object
                properties:
                  docs:
                    type: array
                    items:
                      $ref: '#/components/schemas/KnowledgeDocSummary'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Document not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyHeader: []
        - DelegateToken: []
        - PartnerBearer: []
components:
  schemas:
    KnowledgeDocSummary:
      type: object
      description: >-
        Lite shape returned by the list/tree/children knowledge endpoints (no
        rendered HTML).
      properties:
        _id:
          type: string
          description: Document ID.
        name:
          type: string
          description: Document title.
        emoji:
          type: string
          nullable: true
        iconUrl:
          type: string
          nullable: true
        accessType:
          type: string
          enum:
            - public
            - publicReadonly
            - private
        parentId:
          type: string
          nullable: true
          description: Parent document ID, or null for a root document.
        rank:
          type: integer
          nullable: true
          description: Sort order among siblings. May be null.
        archived:
          type: boolean
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-token
    DelegateToken:
      type: apiKey
      in: header
      name: Authorization
      description: 'Delegate token issued by the platform. Format: `DelegateToken <token>`'
    PartnerBearer:
      type: http
      scheme: bearer
      description: 'Partner token. Format: `Authorization: Bearer <token>`'

````