# Get the site configuration

**Publié le** : 2026-05-12
**Catégorie** : Pages & Site Blocks

## `GET /site-config`

**Get the site configuration**

Return the consolidated site configuration: `site` block (subset of
`/site` for fast boot), the resolved `locale`, and every global
Site Builder block keyed by slug under `globals`. Convenience
endpoint for SDK boot: one call gives the SDK everything it needs
to render the chrome (header, footer, nav, banners). Sets `ETag`
and `Cache-Control`.

### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |


> **Notes:** Sets `ETag` and `Cache-Control: public, max-age=300, stale-while-revalidate=60`.
> Rate-limit bucket: general. The `globals` map may carry a
> `_warnings` array per block when DataSource resolution had
> non-fatal issues.

### Examples

```curl
curl "https://api.lynkow.com/public/{siteId}/site-config?locale=en"
```

```javascript
const res = await fetch(`https://api.lynkow.com/public/${siteId}/site-config?locale=en`)
const { data } = await res.json()
```

### Response Example

```json
"{\n  \"data\": {\n    \"site\": {\n      \"name\": \"Acme Documentation\",\n      \"domain\": \"docs.acme.io\",\n      \"logo\": \"https://cdn.lynkow.com/sites/acme/logo.svg\",\n      \"favicon\": \"https://cdn.lynkow.com/sites/acme/favicon.ico\",\n      \"showBranding\": true,\n      \"defaultLocale\": \"en\",\n      \"enabledLocales\": [\"en\", \"fr\", \"de\"],\n      \"analytics\": { \"consentMode\": \"opt-in\" }\n    },\n    \"locale\": \"en\",\n    \"globals\": {\n      \"main-nav\": {\n        \"name\": \"Main navigation\",\n        \"data\": { \"items\": [{ \"label\": \"Pricing\", \"href\": \"/pricing\" }] }\n      },\n      \"footer\": {\n        \"name\": \"Footer\",\n        \"data\": { \"copyright\": \"(c) 2026 Acme Inc.\", \"social\": { \"twitter\": \"@acme\" } }\n      }\n    }\n  }\n}\n"
```

---