# List block revisions

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

## `GET /site-blocks/:slug/revisions`

**List block revisions**

Returns the version history for a site block.

Required permissions: `site_blocks.view`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `slug` | path | string | Yes | URL-friendly identifier, unique per site and locale |


### 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/site-blocks/header/revisions \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
{
  "data": [
    {
      "id": 201,
      "siteBlockId": 1,
      "changes": [
        {
          "field": "data.tagline",
          "from": null,
          "to": "Build faster with Lynkow"
        }
      ],
      "createdAt": "2025-04-06T14:30:00.000Z",
      "author": {
        "id": 1,
        "fullName": "Jane Doe"
      }
    },
    {
      "id": 200,
      "siteBlockId": 1,
      "changes": [
        {
          "field": "data.navLinks",
          "from": "3 items",
          "to": "2 items"
        }
      ],
      "createdAt": "2025-03-20T11:00:00.000Z",
      "author": {
        "id": 1,
        "fullName": "Jane Doe"
      }
    }
  ]
}
```

---