# List a document's children

`GET /v1/workspaces/{workspaceId}/children`

Lists the direct children of a document (or the top level when parentId is omitted) in order, each with its number of live children. Use it to load a tree level by level.

Scope: `docs:read`.

## Request

```bash
curl "https://api.lydie.co/v1/workspaces/01JCQ3TZ0WJ8K4M2X7T9R6N1PA/children" \
  -H "Authorization: Bearer $LYDIE_TOKEN"
```

## Path parameters

- `workspaceId` (string, required): (1–64 chars)

## Query parameters

- `parentId` (ULID, optional): Omit for the top level.
- `includeDeleted` (boolean, optional): Default: `false`.

## Response

- `entries` (ChildEntry[], required)
  - `id` (ULID, required)
  - `workspaceId` (string, required): (1–64 chars)
  - `parentId` (ULID, required, nullable)
  - `title` (string, required): (1–255 chars)
  - `sortKey` (string, required): (1–256 chars)
  - `properties` (object, required)
  - `createdAt` (timestamp, required)
  - `updatedAt` (timestamp, required)
  - `deletedAt` (timestamp, required, nullable)
  - `createdBy` (string, optional, nullable): (≥ 1 chars)
  - `updatedBy` (string, optional, nullable): (≥ 1 chars)
  - `childCount` (integer, required): Live children, so a tree can show a disclosure.
  - `teamspaceId` (string, optional, nullable)
  - `privateOwnerId` (string, optional, nullable)

```json
{
  "entries": [
    {
      "id": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
      "workspaceId": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
      "parentId": null,
      "title": "Meeting notes",
      "sortKey": "a0",
      "properties": {
        "status": "draft"
      },
      "createdAt": "2026-11-12T09:30:00.000Z",
      "updatedAt": "2026-11-12T09:30:00.000Z",
      "deletedAt": null,
      "createdBy": null,
      "updatedBy": null,
      "childCount": 0,
      "teamspaceId": null,
      "privateOwnerId": null
    }
  ]
}
```

Errors use the envelope described at https://developers.lydie.co/errors.md.
