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

# Fetch Sub-Collections

> List all direct child collections of a given collection

Returns all sub-collections directly under the specified collection, owned by the authenticated user.

## Path Parameters

**collectionId** `string` *required*

The ID of the parent collection whose direct children should be returned.

## Response

Returns an array of [Collection](https://docs.sublay.io/v7/data-models/collection.md) objects.

```json theme={null}
[
  {
    "id": "col_abc",
    "name": "To Read",
    "parentId": "col_root",
    "entityCount": 5,
    "createdAt": "2025-01-15T10:00:00.000Z",
    "updatedAt": "2025-01-15T10:00:00.000Z"
  }
]
```

## Error Responses

> [accordion] Server Error — 500
>
> ```json theme={null}
> { "error": "Server error", "code": "collection/server-error" }
> ```


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