Turn Protection on
post/protection/on
Turn Protection on: the public forms of the project's site ask for a quiet check and the API confirms it before it accepts a write. Creates the Shield site on first use and returns its secret once; repeat to get the same state. Protection never takes a site down: if Shield cannot be reached a write is accepted and counted as unchecked. It is not proof of a human.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:write- Mcp
rivier_protection_on- Graphql
Mutation.hostingProtectionOn- Sdk
hosting.protection.on- Cli
hosting protection on
Request bodyapplication/json, required
- originslist of string
Responses
- 200application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring