Namespace Cloudflare.NET.Turnstile.Models
Classes
- CreateTurnstileWidgetRequest
Request to create a new Turnstile widget.
The created widget will have a unique sitekey (public key) and secret (private key). The secret is only returned in the create response - store it securely.
- ListTurnstileWidgetsFilters
Filtering and pagination options for listing Turnstile widgets.
- RotateWidgetSecretRequest
Request to rotate a widget's secret key.
By default, the old secret remains valid for 2 hours to allow graceful migration.
- RotateWidgetSecretResult
Result of rotating a widget's secret.
- TurnstileWidget
Represents a Turnstile widget configuration.
Turnstile widgets provide bot protection without user friction. Each widget is identified by a public sitekey used in frontend integration, and has a secret key for server-side verification.
- UpdateTurnstileWidgetRequest
Request to update an existing Turnstile widget.
Updates replace the widget configuration. All required fields must be provided.
Structs
- ClearanceLevel
Clearance level determining challenge difficulty.
Clearance levels control the complexity of the challenge presented to users based on security requirements.
- WidgetMode
Turnstile widget mode determining user interaction level.
Widget modes control how the Turnstile challenge is presented to users, ranging from fully invisible to requiring explicit user interaction.
Enums
- TurnstileOrderField
Fields available for ordering Turnstile widget results.