Turnstile
turnstile
Widgets
turnstile.widgets
Methods
Lists challenge widgets.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Turnstile Sites Write Account Settings Write
Identifier
Direction to order widgets.
Field to order widgets by.
Page number of paginated results.
Number of items per page.
Whether the API call was successful
A Turnstile widget's detailed configuration
Destroy a Turnstile Widget.
Show a single challenge widget configuration.
Lists all turnstile widgets of an account.
Generate a new secret key for this widget. If invalidate_immediately
is set to false
, the previous secret remains valid for 2 hours.
Note that secrets cannot be rotated again during the grace period.
Update the configuration of a widget.
Domain types
A Turnstile widget's detailed configuration
Hosts as a hostname or IPv4/IPv6 address represented by strings. The widget will only work on these domains, and their subdomains.