# List content entries

_NgCms / Content Entries_

`GET /ng-cms/content/{projectId}/{typeKey}`

## Parameters

- `projectId` (string, required) — The unique identifier of the project (bucket)
- `typeKey` (string, required) — The key or ID of the content type to list entries for
- `status` (number, optional) — Filter by entry status: 1 = Draft, 2 = Published, 3 = Archived
- `search` (string, optional) — Full-text search term applied across entry fields
- `fields` (string, optional) — Field filter in key:value format (e.g. fields=title:Hello). Can be repeated for multiple filters.
- `offset` (number, optional, default: `0`) — Number of entries to skip (0-based)
- `limit` (number, optional, default: `50`) — Maximum number of entries to return

## Responses

### `200` — Paginated list of content entries.

Type: `PagedApiResponse<CmsContentEntryDto>`


### `401` — Unauthorized. A valid bearer token is required.


### `412` — Precondition Failed. The project's current plan does not allow access to this resource, or payment is required to proceed.


### `500` — Unexpected server error.

Type: `ApiResponse<T>`

- `success` (boolean) — Always false
- `errors` (ErrorDetail[]) — List of server-side errors
  - `correlationId` (string) — Unique ID for tracing the error
  - `message` (string) — Error message
  - `stack` (string) — Stack trace (non-production only)


## Code Examples

### curl

```curl
curl --request GET \
  --url 'https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}?status=2&offset=0&limit=50' \
  --header 'Authorization: Bearer <token>'
```

### javascript

```js
const options = {
  method: 'GET',
  headers: { Authorization: 'Bearer <token>' }
};

fetch('https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}?status=2&offset=0&limit=50', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
```

### dotnet

```dotnet
var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", "<token>");

var response = await client.GetAsync(
    "https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}?status=2&offset=0&limit=50");
var result = await response.Content
    .ReadFromJsonAsync<PagedApiResponse<CmsContentEntryDto>>();
```

### python

```python
import requests

url = "https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}"
headers = { "Authorization": "Bearer <token>" }
params = {
    "status": 2,
    "offset": 0,
    "limit": 50
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
```

### Response Example (200)

```json
{
  "total": 2,
  "list": [
    {
      "id": "ce_x9y8z7w6v5u4",
      "projectId": "my-project-id",
      "type": "blog-post",
      "status": 2,
      "fields": {
        "title": "My First Post",
        "body": "<p>Hello world</p>"
      },
      "schemaVersion": 2,
      "createdBy": 42,
      "updatedBy": 42,
      "updatedByName": "Jane Smith",
      "publishedBy": 42,
      "createdAt": "2025-05-20T08:00:00Z",
      "updatedAt": "2025-06-01T10:00:00Z",
      "publishedAt": "2025-06-01T10:00:00Z",
      "archivedAt": null
    },
    {
      "id": "ce_a1b2c3d4e5f6",
      "projectId": "my-project-id",
      "type": "blog-post",
      "status": 1,
      "fields": {
        "title": "Draft Post",
        "body": "<p>Work in progress</p>"
      },
      "schemaVersion": 2,
      "createdBy": 42,
      "updatedBy": null,
      "updatedByName": null,
      "publishedBy": null,
      "createdAt": "2025-06-10T14:30:00Z",
      "updatedAt": "2025-06-10T14:30:00Z",
      "publishedAt": null,
      "archivedAt": null
    }
  ]
}
```

## Repositories

- [konso-cms-nodejs](https://gitverse.ru/konso/konso-cms-nodejs)
- [konso-cms-dotnet](https://gitverse.ru/konso/konso-cms-dotnet)

## Packages

- `dotnet add package Konso.Clients.Cms` — [Konso.Clients.Cms](https://nugetprodusnc-northcentralus-01.regional.azure-api.net/packages/Konso.Clients.Cms)
- `npm install @konso/cms-client` — [@konso/cms-client](https://www.npmjs.com/package/@konso/cms-client)
