# List variables

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

## `GET /variables`

**List variables**

Returns all variables for your site.

Required permissions: `variables.view`

### Responses

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


### Examples

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

### Response Example

```json
{
  "data": [
    {
      "id": 1,
      "key": "company_name",
      "value": "Acme Corp",
      "type": "text",
      "locale": "en",
      "createdAt": "2025-01-05T09:00:00.000Z",
      "updatedAt": "2025-01-05T09:00:00.000Z"
    },
    {
      "id": 2,
      "key": "phone_number",
      "value": "+1 (555) 123-4567",
      "type": "text",
      "locale": "en",
      "createdAt": "2025-01-05T09:05:00.000Z",
      "updatedAt": "2025-02-10T14:00:00.000Z"
    },
    {
      "id": 3,
      "key": "opening_hours",
      "value": "Mon-Fri 9:00-18:00",
      "type": "text",
      "locale": "en",
      "createdAt": "2025-01-06T10:00:00.000Z",
      "updatedAt": "2025-01-06T10:00:00.000Z"
    }
  ],
  "meta": {
    "total": 3,
    "perPage": 15,
    "currentPage": 1,
    "lastPage": 1
  }
}
```

---