Skip to content

Product documentation

BotPolicy

Bot & abuse detection configuration (SSO-2614) — enable/disable Cloudflare Turnstile per environment; the site key is public, the secret is write-only (stored in Vault, never returned).

BotPolicy

Bot & abuse detection configuration (SSO-2614) — enable/disable Cloudflare Turnstile per environment; the site key is public, the secret is write-only (stored in Vault, never returned).

Base URL: https://api.stg.thoryn.org

Operations

MethodPathSummaryScopes
GET/api/v1/bot-policyBot Policy Gettenant:bot.read
PUT/api/v1/bot-policyBot Policy Puttenant:bot.write

Operation details

GET /api/v1/bot-policy

Bot Policy Get

  • Operation ID: botPolicyGet
  • Required scopes: tenant:bot.read

Responses:

StatusDescriptionBody
200OKBotPolicyResponse
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)

PUT /api/v1/bot-policy

Bot Policy Put

  • Operation ID: botPolicyPut
  • Required scopes: tenant:bot.write

Request body (required): application/jsonPutBotPolicyRequest

Responses:

StatusDescriptionBody
200OKBotPolicyResponse
401Unauthorized — bearer token missing, expired, signed by an untrusted issuer, or missing the tnt tenant claim.Problem (problem+json)
403Forbidden — token lacks a required tenant:* scope, or the tnt claim does not match the tenant addressed by the request path.Problem (problem+json)