# Get spam protection settings

**Publié le** : 2026-05-12
**Catégorie** : Analytics & Tracking

## `GET /spam-settings`

**Get spam protection settings**

Read the site's public spam-protection configuration. Tells the
client which method (honeypot pair or reCAPTCHA) to apply on every
write endpoint. Envelope has no `data` wrap; the response is the
config object directly.

### Responses

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


> **Notes:** Cache: `Cache-Control: public, max-age=300`. Rate-limit bucket:
> general. When `protectionMethod` is `recaptcha` and
> `recaptchaEnabled` is true, the `recaptchaSiteKey` is the public
> site key the client must pass to the reCAPTCHA JS library.

### Examples

```curl
curl "https://api.lynkow.com/public/{siteId}/spam-settings"
```

```javascript
const res = await fetch(`https://api.lynkow.com/public/${siteId}/spam-settings`)
const spamConfig = await res.json()
```

### Response Example

```json
"{\n  \"protectionMethod\": \"honeypot\",\n  \"recaptchaEnabled\": false,\n  \"recaptchaSiteKey\": null,\n  \"recaptchaVersion\": \"v3\"\n}\n"
```

---