> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# List site variables

**Published**: 2026-11-30
**Category**: Content

## `GET /variables`

**List site variables**

Returns the site's variables, one item per key, sorted by key. The list is not paginated.
A `calendar` variable's `value` is its schedule as a JSON string.

Without `locale`, each key is served in the site's default locale. With `locale`, a key
with no value in that locale is served from the next locale of the site's chain, and the
response sends `Content-Language`. A `fallback` that is not a boolean returns 422.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `locale` | query | string | No | BCP 47 locale code (e.g. "en", "fr") |
| `fallback` | query | boolean (default true) | No | With `locale`, `false` keeps only the keys that have a value in the requested locale. Single-language sites ignore it. |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `402` | The site subscription does not currently permit this operation |
| `422` | Validation error |


> **Notes:** Sets `ETag` and `Cache-Control: public, max-age=0, s-maxage=300`.
> Rate-limit bucket: general.

### SDK

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({ siteId: process.env.LYNKOW_SITE_ID! })

const { data: variables } = await lynkow.variables.list({ locale: 'fr' })

// A footer status indicator driven by a `status` variable.
const status = variables.find((v) => v.key === 'status')?.value ?? 'ok'
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/variables?locale=en"
```

```javascript
const res = await fetch(`https://api.lynkow.com/storefront/${siteId}/variables?locale=en`)
const { data } = await res.json()
const phone = data.find((variable) => variable.key === 'phone')?.value
```

### Response Example

```json
{
  "data": [
    {
      "key": "phone",
      "type": "text",
      "value": "+33 1 23 45 67 89",
      "locale": "en",
      "requestedLocale": "en",
      "isFallback": false
    },
    {
      "key": "status",
      "type": "text",
      "value": "ok",
      "locale": "fr",
      "requestedLocale": "en",
      "isFallback": true
    }
  ]
}
```

---