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

# Render robots.txt

**Published**: 2026-11-30
**Category**: SEO & LLMs

## `GET /robots.txt`

**Render robots.txt**

Returns the site's robots.txt as plain text. It holds the per-agent
Allow and Disallow rules from the SEO settings, or a default block
that disallows `/admin` and `/api`, then a `Sitemap:` line for
`/sitemap.xml` unless the site turned it off. When `llms.txt` is
enabled, Googlebot and Bingbot keep the `*` rules and are also
blocked from `/llms.txt` and `/llms-full.txt`.

### Responses

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


> **Notes:** Content type: `text/plain`. Cache:
> `Cache-Control: public, max-age=0, s-maxage=3600`. Rate-limit
> bucket: general.

### SDK

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

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

// In a Next.js route handler (app/robots.txt/route.ts)
export async function GET() {
  const txt = await lynkow.seo.robots()
  return new Response(txt, {
    headers: { 'Content-Type': 'text/plain' }
  })
}
```

### Examples

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

### Response Example

```
User-agent: *
Disallow: /admin
Disallow: /api
Allow: /

Sitemap: https://docs.acme.io/sitemap.xml
```

---