# Get a content

**Publié le** : 2026-05-08
**Catégorie** : Core CMS

## `GET /contents/:id`

**Get a content**

Retrieves a single content by its numeric ID. Returns the full object
including HTML body, categories, tags, SEO metadata, structured data
(FAQ, Article JSON-LD), and featured image with CDN variants.

Required permissions: `contents.view`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes | Unique identifier |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized — invalid or missing API token |
| `403` | Forbidden — insufficient permissions |
| `404` | Not found |


### Examples

```bash
curl https://api.lynkow.com/v1/contents/42 \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
{
  "id": 42,
  "title": "Getting Started with Lynkow",
  "slug": "getting-started-with-lynkow",
  "type": "post",
  "status": "published",
  "excerpt": "Learn how to set up your first headless CMS.",
  "bodyHtml": "<h1>Welcome</h1><p>This is your first article...</p>",
  "locale": "en",
  "featuredImage": {
    "url": "https://cdn.lynkow.com/sites/abc123/hero.jpg",
    "alt": "Lynkow dashboard screenshot",
    "variants": {
      "thumbnail": "https://cdn.lynkow.com/sites/abc123/hero.jpg?w=150",
      "card": "https://cdn.lynkow.com/sites/abc123/hero.jpg?w=400",
      "content": "https://cdn.lynkow.com/sites/abc123/hero.jpg?w=800",
      "medium": "https://cdn.lynkow.com/sites/abc123/hero.jpg?w=1200"
    }
  },
  "categories": [
    {
      "id": 1,
      "name": "Tutorials",
      "slug": "tutorials"
    }
  ],
  "tags": [
    {
      "id": 5,
      "name": "Getting Started",
      "slug": "getting-started"
    }
  ],
  "meta": {
    "metaTitle": "Getting Started with Lynkow | My Blog",
    "metaDescription": "A step-by-step guide to setting up Lynkow.",
    "canonicalUrl": null,
    "ogImage": null
  },
  "author": {
    "id": 1,
    "fullName": "Jane Doe"
  },
  "publishedAt": "2025-03-15T10:30:00.000Z",
  "createdAt": "2025-03-14T08:00:00.000Z",
  "updatedAt": "2025-03-15T10:30:00.000Z",
  "alternates": [
    {
      "locale": "fr",
      "id": 43,
      "slug": "premiers-pas-avec-lynkow"
    }
  ]
}
```

---