# Hosting protection get

`GET /protection` · Rivier · hosting

Whether Protection is on for the project, the site key, the addresses it covers, how many writes went unchecked this week, and the script line and verify call for a site not built in Rivier. Says plainly when this deployment has no Protection set up.

- Scope: hosting:read
- Mcp: rivier_protection_state
- Graphql: Query.hostingProtectionGet
- Sdk: hosting.protection.get
- Cli: hosting protection get

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X GET 'https://api.rivier.ai/protection' \
  -H 'Authorization: Bearer $KEY'
```
