Rivier/ Reference/ hosting

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/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown