# List content

Canonical page: https://docs.ovok.com/api/cms-(fhir-legacy)/list-content

`GET /cms/{type}/{language}`

Lists content items of one type in one language, with optional fuzzy search and paging.

**Auth:** bearer token.
**Scope:** the caller's project (from the token). Only items in that project are listed.

## Behaviour

- `type` is one of `blog`, `video`, `audio`, `template` or `export-template`.
- `language` must be one of the languages in your project's locale settings.
- Items are sorted by `date`, newest first.
- `search` is a fuzzy match over title, author name, category, section titles and text, and key.
- `code` keeps only items with that content code.
- `_count` defaults to `10` and `_offset` to `0`. `total` is the number of matching items before paging.
- At most 10,000 items per type and language are considered.
- The route is also served under `/internal/cms/{type}`.

## Example

```bash
curl -X GET 'https://api.sandbox.ovok.com/cms/blog/en-US?search=sleep&_count=20&_offset=0' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk'
```
