Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Turnstile

Get the Cloudflare Turnstile site key

get
/api/{tenantId}/admin/extensions/cloudflare/turnstile

Returns the public Turnstile site key configured for this tenant. Returns 404 when Turnstile is not configured. The secret key is never returned.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Responses
200

Configuration returned.

The tenant's Cloudflare Turnstile settings, without the secret key.

siteKeystring · min: 1Required

Public site key the customer web app renders the Turnstile widget with.

proofCookieValidityDurationSecondsinteger · int32Optional

How long, in seconds, a browser that passed the challenge can create accounts again without a new one. 0: every account creation requires a new challenge.

get/api/{tenantId}/admin/extensions/cloudflare/turnstile
GET /api/{tenantId}/admin/extensions/cloudflare/turnstile HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "siteKey": "text",
  "proofCookieValidityDurationSeconds": 1
}

Set Cloudflare Turnstile configuration

put
/api/{tenantId}/admin/extensions/cloudflare/turnstile

Replaces the site key and proof cookie duration, and the secret key when one is sent. Omit secretKey to update the site key without rotating the secret.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Body

Cloudflare Turnstile settings. Once a site key is stored, every customer account creation must pass a Turnstile challenge.

siteKeystring · min: 1Required

Public site key the customer web app renders the Turnstile widget with.

secretKeystring · nullableOptional

Turnstile secret key of the widget. Never returned.

proofCookieValidityDurationSecondsinteger · int32 · max: 2147483647Required

How long, in seconds, a browser that passed the challenge can create accounts again without a new one. 0 requires a new challenge for every account creation.

Responses
204

Configuration saved.

No content

put/api/{tenantId}/admin/extensions/cloudflare/turnstile
PUT /api/{tenantId}/admin/extensions/cloudflare/turnstile HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 74

{
  "siteKey": "text",
  "secretKey": null,
  "proofCookieValidityDurationSeconds": 1
}

No content

Delete Cloudflare Turnstile configuration

delete
/api/{tenantId}/admin/extensions/cloudflare/turnstile

Removes the Turnstile configuration. This disables Turnstile for the tenant. Also removes the Turnstile secret when present.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Responses
204

Configuration deleted.

No content

delete/api/{tenantId}/admin/extensions/cloudflare/turnstile
DELETE /api/{tenantId}/admin/extensions/cloudflare/turnstile HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*

No content

Last updated