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

# Collections

> Discover enabled collections, available content types, and collection-scoped item routes.

## Endpoints

```bash theme={null}
GET /collections
GET /collections/:collection-slug
```

## Query parameters

Collections endpoints currently do not support pagination/search/sort query parameters.

## What collections are for

Collections expose content spaces within an organization.

Each enabled collection includes metadata such as:

* `preset_id`
* `slug`
* `display_name`
* `path_prefix`
* `default_content_type`
* `allowed_content_types`

Use collection metadata to decide which public list endpoint to call:

* Built-in articles feed: `/articles`
* Collection-specific feed: `/collections/:collection-slug/items`

Plan note:

* `Articles` is available on all plans.
* Additional non-article collections require the `Authority` plan.

## Related collection routes

```bash theme={null}
GET /collections/:collection-slug/items
GET /collections/:collection-slug/items/:id-or-slug
```

## Example list request

```bash theme={null}
curl "https://api.skayle.ai/v1/ORG_ID/collections"
```

## Example list response

```json theme={null}
{
  "data": [
    {
      "id": "col_01J...",
      "type": "collections",
      "attributes": {
        "preset_id": "articles",
        "slug": "articles",
        "display_name": "Articles",
        "path_prefix": "/blog",
        "enabled": true,
        "is_built_in": true,
        "default_content_type": "blog_post",
        "allowed_content_types": ["blog_post", "comparison_post"],
        "created_at": "2026-02-26T11:40:00.000Z",
        "updated_at": "2026-03-01T09:12:00.000Z"
      },
      "links": {
        "self": "/v1/ORG_ID/collections/articles"
      }
    }
  ],
  "meta": {
    "total": 1
  }
}
```

## Example single request

```bash theme={null}
curl "https://api.skayle.ai/v1/ORG_ID/collections/articles"
```

## Response notes

* Only enabled collections are returned.
* Collections are ordered with the `articles` collection first, then remaining enabled collections by creation time.
* Use the collection `slug` for collection-scoped item endpoints.

## Error responses

### Collection not found

```json theme={null}
{
  "errors": [
    {
      "status": "404",
      "title": "Not Found",
      "detail": "Collection \"missing\" not found"
    }
  ]
}
```


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