# Get a variable

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

## `GET /variables/:id`

**Get a variable**

Returns a single variable with its value.

Required permissions: `variables.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/variables/1 \
  -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"
  }
}
```

---