---
title: "List a folder's children"
method: GET
path: "/folders/{id}/children"
tags: ["Folders"]
---

# List a folder's children

`GET /folders/{id}/children`

## Request

- Base URL: `https://app.gc.ai/api/external/v1`
- URL: `https://app.gc.ai/api/external/v1/folders/{id}/children`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/gc-ai/apis/gc-ai-external-api/docs/folders/:id/children/get.ts> (a function with typed inputs; its response is checked against the schema)

List the direct children of a folder. The response items are a discriminated union of subfolders and files: subfolders are returned first (alphabetical), then files (alphabetical).

## Path parameters

- `id` string, uuid, required: The folder ID

## Response `200`

Direct children of the folder

- FolderChildrenResponse
  - `items` FolderChild[], required: Direct children of the folder. Subfolders first (alphabetical), then files (alphabetical).
    - union
      - object
        - `id` string, uuid, required: Unique folder identifier
        - `name` string, required: Folder name
        - `description` string, nullable, required: Folder description, or null if unset
        - `path` string, required: Path through ancestors visible to the requester. Inaccessible ancestors are skipped, so this may not reflect absolute depth. Use `parent_folder_id` to traverse hierarchy.
        - `parent_folder_id` string, uuid, nullable, required: Parent folder ID, or null for root
        - `folder_type` string, required: Folder type (custom, my-files, etc.)
        - `created_at` string, required: ISO 8601 creation timestamp
        - `type` 'folder', required
      - object
        - `id` string, uuid, required: Unique file identifier
        - `name` string, required: Original filename
        - `size` number, required: File size in bytes
        - `content_type` string, required: MIME type of the file
        - `status` 'extracting' | 'embedding' | 'ready' | 'failed', required: Current processing status
        - `created_at` string, required: ISO 8601 creation timestamp
        - `type` 'file', required

## Other responses

- `401`: Missing or malformed API key
- `403`: Invalid API key
- `404`: Folder not found
- `429`: Rate limit exceeded. See [Rate Limits](https://docs.gc.ai/api-reference/concepts/rate-limits) for the tiers, limits, and how to back off.
- `500`: Internal server error
- `503`: Service temporarily unavailable

---

[API](https://skmtc.dev/gc-ai/apis/gc-ai-external-api.md) - [All operations](https://skmtc.dev/gc-ai/apis/gc-ai-external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gc-ai/apis/gc-ai-external-api/revisions/2bbdfddf7107?raw)
