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

# Get the site payload

**Published**: 2026-11-30
**Category**: Pages & Site Blocks

## `GET /site`

**Get the site payload**

Returns the site's public configuration: identity, locale settings,
effective badge visibility and analytics consent mode. Call it once
at app boot to set up locale handling and consent.

With `locale`, `name`, `description` and `logoUrl` are served in the
requested locale or its base language when the site enables and
translates it, else from the site's default values, never a 404. The
payload then carries `locale`, `requestedLocale` and `isFallback`,
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 | No | Has no effect here: a missing translation never empties this response |


### Responses

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


> **Notes:** Cache: `public, max-age=0` with an `s-maxage` of at most 300, and an
> `ETag` (`If-None-Match` gets a 304). Rate-limit bucket: general.

### SDK

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

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

const config = await lynkow.site.getConfig()
console.log(config.enabledLocales)        // ['en', 'fr', 'de']
console.log(config.i18n.detection.enabled) // true
console.log(config.analytics.consentMode)  // 'opt-in'
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/site"
```

```javascript
const res = await fetch(`https://api.lynkow.com/storefront/${siteId}/site`)
const { data } = await res.json()
```

### Response Example

```json
{
  "data": {
    "id": "c3bc8a0a-7820-4945-b174-5c9328b98719",
    "name": "Acme Documentation",
    "domain": "docs.acme.io",
    "description": "Public docs for the Acme platform.",
    "logoUrl": "https://cdn.lynkow.com/sites/acme/logo.svg",
    "faviconUrl": "https://cdn.lynkow.com/sites/acme/favicon.ico",
    "timezone": "Europe/Paris",
    "defaultLocale": "en",
    "enabledLocales": [
      "en",
      "fr",
      "de"
    ],
    "i18n": {
      "enabled": true,
      "default": "en",
      "locales": [
        {
          "code": "en",
          "name": "English",
          "flag": "🇬🇧",
          "direction": "ltr"
        },
        {
          "code": "fr",
          "name": "Français",
          "flag": "🇫🇷",
          "direction": "ltr"
        },
        {
          "code": "de",
          "name": "Deutsch",
          "flag": "🇩🇪",
          "direction": "ltr"
        }
      ],
      "switcher": true,
      "detection": {
        "enabled": true,
        "order": [
          "cookie",
          "browser"
        ],
        "cookieName": "_lkw_lang",
        "cookieMaxAge": 365
      }
    },
    "showBranding": true,
    "analytics": {
      "consentMode": "opt-in"
    }
  }
}
```

---