# Get robots.txt

**Publié le** : 2026-05-08
**Catégorie** : SEO & Analytics

## `GET /seo/robots.txt`

**Get robots.txt**

Returns the current robots.txt content as configured in SEO settings.

Required permissions: `seo.view`

### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized — invalid or missing API token |
| `403` | Forbidden — insufficient permissions |


### Examples

```bash
# Returns plain text (Content-Type: text/plain)
curl https://api.lynkow.com/v1/seo/robots.txt \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
"Returns plain text (Content-Type: text/plain). Example output:\nUser-agent: *\nAllow: /\nDisallow: /admin\nSitemap: https://www.example.com/sitemap.xml\n"
```

---