# Get a content entry by ID

_NgCms / Content Entries_

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

## Parameters

- `projectId` (string, required) — The unique identifier of the project (bucket)
- `typeKey` (string, required) — The key or ID of the content type
- `entryId` (string, required) — The unique identifier of the content entry

## Responses

### `200` — The requested content entry.

Type: `CmsContentEntryDto`

- `id` (string) — Unique identifier of the entry
- `projectId` (string) — Project (bucket) this entry belongs to
- `type` (string) — Key of the content type this entry is based on
- `status` (number) — Entry status: 1 = Draft, 2 = Published, 3 = Archived
- `fields` (object) — Key-value map of field data matching the content type schema
- `schemaVersion` (number) — Schema version at the time the entry was last saved
- `createdBy` (number) — ID of the user who created the entry
- `updatedBy` (number) — ID of the user who last updated the entry
- `updatedByName` (string) — Name of the user who last updated the entry
- `publishedBy` (number) — ID of the user who published the entry
- `createdAt` (string) — ISO 8601 timestamp of creation
- `updatedAt` (string) — ISO 8601 timestamp of last update
- `publishedAt` (string) — ISO 8601 timestamp of when the entry was published, or null
- `archivedAt` (string) — ISO 8601 timestamp of when the entry was archived, or null

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


### `404` — Not Found. No content entry exists with the given ID.


### `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}/{entryId} \
  --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}/{entryId}', 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}/{entryId}");
var result = await response.Content
    .ReadFromJsonAsync<CmsContentEntryDto>();
```

### python

```python
import requests

url = "https://apis-spb.konso.io/ng-cms/content/{projectId}/{typeKey}/{entryId}"
headers = { "Authorization": "Bearer <token>" }

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

### Response Example (200)

```json
{
  "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
}
```

## 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)
