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

# Get a global block by slug

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

## `GET /global/:slug`

**Get a global block by slug**

Fetch a single global Site Builder block by slug (header, footer,
nav, CTA banner). Globals are reused across pages and resolved
once per locale. Sets `ETag` and `Cache-Control`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `slug` | path | string | Yes | URL-friendly identifier, unique per site and locale |
| `locale` | query | string | No | BCP 47 locale code (e.g. "en", "fr") |
| `fallback` | query | boolean (default true) | No | With `locale`, `false` returns 404 when the item is not translated into the requested locale. Single-language sites ignore it |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `402` | The site subscription does not currently permit this operation |
| `404` | Not found |
| `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 result = await lynkow.blocks.getBySlug(slug)
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/global/main-nav?locale=en"
```

```javascript
const res = await fetch(`https://api.lynkow.com/storefront/${siteId}/global/main-nav?locale=en`)
const { data } = await res.json()
```

### Response Example

```json
{
  "data": {
    "slug": "main-nav",
    "name": "Main navigation",
    "data": {
      "items": [
        {
          "label": "Pricing",
          "href": "/pricing"
        },
        {
          "label": "Docs",
          "href": "/docs"
        }
      ]
    }
  }
}
```

---