Turnstile
TurnstileWidgets
List Turnstile Widgets
client.turnstile.widgets.list(WidgetListParams { account_id, direction, filter, 3 more } params, RequestOptionsoptions?): V4PagePaginationArray<WidgetListResponse { bot_fight_mode, clearance_level, created_on, 8 more } >
GET/accounts/{account_id}/challenges/widgets
Turnstile Widget Details
client.turnstile.widgets.get(stringsitekey, WidgetGetParams { account_id } params, RequestOptionsoptions?): Widget { bot_fight_mode, clearance_level, created_on, 9 more }
GET/accounts/{account_id}/challenges/widgets/{sitekey}
Create a Turnstile Widget
client.turnstile.widgets.create(WidgetCreateParams { account_id, domains, mode, 11 more } params, RequestOptionsoptions?): Widget { bot_fight_mode, clearance_level, created_on, 9 more }
POST/accounts/{account_id}/challenges/widgets
Update a Turnstile Widget
client.turnstile.widgets.update(stringsitekey, WidgetUpdateParams { account_id, domains, mode, 6 more } params, RequestOptionsoptions?): Widget { bot_fight_mode, clearance_level, created_on, 9 more }
PUT/accounts/{account_id}/challenges/widgets/{sitekey}
Delete a Turnstile Widget
client.turnstile.widgets.delete(stringsitekey, WidgetDeleteParams { account_id } params, RequestOptionsoptions?): Widget { bot_fight_mode, clearance_level, created_on, 9 more }
DELETE/accounts/{account_id}/challenges/widgets/{sitekey}
Rotate Secret for a Turnstile Widget
client.turnstile.widgets.rotateSecret(stringsitekey, WidgetRotateSecretParams { account_id, invalidate_immediately } params, RequestOptionsoptions?): Widget { bot_fight_mode, clearance_level, created_on, 9 more }
POST/accounts/{account_id}/challenges/widgets/{sitekey}/rotate_secret