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

# List paths for static generation

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

## `GET /paths`

**List paths for static generation**

Lists every renderable path of the site, for static-site generators
and sitemaps: content entries and categories under the active
`blogUrlMode`, plus published products, product categories and
collections with `include=commerce`.

Without `locale`, a multi-language site lists its default-locale
paths only. With `locale`, the list holds one entry per translation
group: its row in the requested locale, else its fallback URL. Every
listed path resolves through `GET /resolve`.

A product hidden in the read's locale is left out. Any `include`
other than `commerce` 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` leaves out the fallback URL of each entry not translated into the requested locale |
| `include` | query | "commerce" | No | One of: commerce |
| `market` | query | string | No | Market `mkt_` id: with `include=commerce`, the URLs of products hidden in that market are left out. Unknown or draft markets are ignored |


### Responses

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


> **Notes:** Cache: `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! })

// Next.js generateStaticParams()
export async function generateStaticParams() {
  const { paths } = await lynkow.paths.list()
  return paths.map((p) => ({ slug: p.path.split('/').filter(Boolean) }))
}

// Article, category and commerce URLs, for a sitemap
const { paths } = await lynkow.paths.list({ include: 'commerce' })
const productUrls = paths.filter((p) => p.type === 'product').map((p) => p.path)
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/paths?locale=en&include=commerce"
```

```javascript
const res = await fetch(`https://api.lynkow.com/storefront/${siteId}/paths?locale=en&include=commerce`)
const { data: { paths, blogUrlMode, locale } } = await res.json()
```

### Response Example

```json
{
  "data": {
    "paths": [
      {
        "type": "category",
        "path": "/blog/engineering",
        "locale": "en",
        "id": "01J9PA0NZK7BX4HQ7M2DC9V5T8",
        "updatedAt": "2026-05-02T10:00:00.000Z",
        "requestedLocale": "en",
        "isFallback": false
      },
      {
        "type": "content",
        "path": "/blog/engineering/how-we-set-our-pricing",
        "locale": "en",
        "id": "9b2c1e7a-4f3d-4a1b-9c2e-8d7f6a5b4c3d",
        "updatedAt": "2026-05-05T08:00:00.000Z",
        "requestedLocale": "en",
        "isFallback": false
      },
      {
        "type": "product",
        "path": "/products/linen-shirt",
        "locale": "en",
        "id": "prod_01j9zq7m4k2x8v3n6p5r0t1w2w",
        "updatedAt": "2026-05-08T14:30:00.000Z",
        "requestedLocale": "en",
        "isFallback": false
      }
    ],
    "blogUrlMode": "with-categories",
    "locale": "en"
  }
}
```

---