---
title: "List a knowledge document's direct children"
method: GET
path: "/api/knowledge/{id}/children"
tags: ["Knowledge"]
---

# List a knowledge document's direct children

`GET /api/knowledge/{id}/children`

## Request

- Base URL: `https://core-api.getaptly.com`
- URL: `https://core-api.getaptly.com/api/knowledge/{id}/children`
- Auth: one of:
  - API key in header `x-token`
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/getaptly/apis/aptly-api/docs/api/knowledge/:id/children/get.ts> (a function with typed inputs; its response is checked against the schema)

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

## Path parameters

- `id` string, required

## Query parameters

- `archived` boolean

## Response `200`

The document's direct children.

- object
  - `docs` KnowledgeDocSummary[]
    - `_id` string: Document ID.
    - `name` string: Document title.
    - `emoji` string, nullable
    - `iconUrl` string, nullable
    - `accessType` 'public' | 'publicReadonly' | 'private'
    - `parentId` string, nullable: Parent document ID, or null for a root document.
    - `rank` integer, nullable: Sort order among siblings. May be null.
    - `archived` boolean

## Other responses

- `401`: Invalid or missing API key.
- `404`: Document not found.

---

[API](https://skmtc.dev/getaptly/apis/aptly-api.md) - [All operations](https://skmtc.dev/getaptly/apis/aptly-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaptly/apis/aptly-api/revisions/75c367e0b8e5?raw)
