| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/api/resources/turnstile/subresources/widgets/methods/create | [Back] [Original] |
Lists challenge widgets.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYYThe previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
X-Auth-Email: user@example.comThe previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194Turnstile Sites WriteAccount Settings WriteFilter widgets by field using case-insensitive substring matching.
Format: field:value
Supported fields:
name - Filter by widget name (e.g., filter=name:login-form)sitekey - Filter by sitekey (e.g., filter=sitekey:0x4AAA)Returns 400 Bad Request if the field is unsupported or format is invalid. An empty filter value returns all results.
Human readable widget name. Not unique. Cloudflare suggests that you set this to a meaningful string to make it easier to identify your widget, and where it is used.
If bot_fight_mode is set to true, Cloudflare issues computationally
expensive challenges in response to malicious bots (ENT only).
A Turnstile widgets detailed configuration
If bot_fight_mode is set to true, Cloudflare issues computationally
expensive challenges in response to malicious bots (ENT only).
If Turnstile is embedded on a Cloudflare site and the widget should grant challenge clearance, this setting can determine the clearance level to be set
Human readable widget name. Not unique. Cloudflare suggests that you set this to a meaningful string to make it easier to identify your widget, and where it is used.
Region where this widget can be used. This cannot be changed after creation.
Origin that created this widget, recorded at creation time and immutable afterward. Server-derived from the create request; not client-settable. Omitted from the response for widgets created before this field existed.
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/challenges/widgets \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-d '{
"domains": [
"203.0.113.1",
"cloudflare.com",
"blog.example.com"
],
"mode": "invisible",
"name": "blog.cloudflare.com login form",
"clearance_level": "interactive"
}'{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"bot_fight_mode": false,
"clearance_level": "interactive",
"created_on": "2014-01-01T05:20:00.123123Z",
"domains": [
"203.0.113.1",
"cloudflare.com",
"blog.example.com"
],
"ephemeral_id": false,
"mode": "invisible",
"modified_on": "2014-01-01T05:20:00.123123Z",
"name": "blog.cloudflare.com login form",
"offlabel": false,
"region": "world",
"secret": "0x4AAF00AAAABn0R22HWm098HVBjhdsYUc",
"sitekey": "0x4AAF00AAAABn0R22HWm-YUc",
"deployed_via": "wrangler",
"last_modified_via": "dashboard"
},
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000
}
}{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"bot_fight_mode": false,
"clearance_level": "interactive",
"created_on": "2014-01-01T05:20:00.123123Z",
"domains": [
"203.0.113.1",
"cloudflare.com",
"blog.example.com"
],
"ephemeral_id": false,
"mode": "invisible",
"modified_on": "2014-01-01T05:20:00.123123Z",
"name": "blog.cloudflare.com login form",
"offlabel": false,
"region": "world",
"secret": "0x4AAF00AAAABn0R22HWm098HVBjhdsYUc",
"sitekey": "0x4AAF00AAAABn0R22HWm-YUc",
"deployed_via": "wrangler",
"last_modified_via": "dashboard"
},
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000
}
}| Web Proxy Viewer | New URL | Original Page |