File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed
src/content/docs/turnstile/get-started/widget-management/implementation-methods Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ Use the [Cloudflare API](/api/) for programmatic widget management and automatio
1111
1212## Prerequisites
1313
14- - A ** Cloudflare API token** : Create a token with ` Account:Turnstile:Edit ` permissions.
15- - An ** account ID** : Found in your Cloudflare dashboard.
14+ Before you begin, you must have:
15+
16+ - A Cloudflare API token with ` Account:Turnstile:Edit ` permissions
17+ - An account ID found in your Cloudflare dashboard
1618
1719### Create a widget via the API
1820
@@ -36,4 +38,28 @@ Use the [Cloudflare API](/api/) for programmatic widget management and automatio
3638<APIRequest
3739 path = " /accounts/{account_id}/challenges/widgets/{sitekey}"
3840 method = " GET"
41+ />
42+
43+ <APIRequest
44+ path = " /accounts/{account_id}/challenges/widgets/{sitekey}"
45+ method = " PUT"
46+ json = { {
47+ domains: [" 203.0.113.1" , " cloudflare.com" , " blog.example.com" ],
48+ mode: " invisible" ,
49+ name: " blog.cloudflare.com login form" ,
50+ clearance_level: " interactive" ,
51+ }}
52+ />
53+
54+ <APIRequest
55+ path = " /accounts/{account_id}/challenges/widgets/{sitekey}/rotate_secret"
56+ method = " POST"
57+ json = { {
58+ invalidate_immediately: false ,
59+ }}
60+ />
61+
62+ <APIRequest
63+ path = " /accounts/{account_id}/challenges/widgets/{sitekey}"
64+ method = " DELETE"
3965/>
You can’t perform that action at this time.
0 commit comments