Salesforce Commerce Cloud Turnstile API

The Turnstile API from Salesforce Commerce Cloud — 2 operation(s) for turnstile.

GitHub OpenAPI

Operations 5

GET /organizations/{organizationId}/turnstile/widgets List Turnstile widgets for the requesting instance #
POST /organizations/{organizationId}/turnstile/widgets Create a Turnstile widget for the requesting instance #
GET /organizations/{organizationId}/turnstile/widgets/{sitekey} Get Turnstile widget details #
PUT /organizations/{organizationId}/turnstile/widgets/{sitekey} Update an existing Turnstile widget #
DELETE /organizations/{organizationId}/turnstile/widgets/{sitekey} Delete a Turnstile widget #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/salesforce-commerce-cloud:salesforce-commerce-cloud-turnstile-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

salesforce-commerce-cloud-turnstile-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  x-api-type: Admin
  x-api-family: CDN
  title: Zones Turnstile API
  version: 1.3.0
  description: 'Download API specification


    # API Overview


    The Content Delivery Network (CDN) API is for managing the embedded CDN (eCDN) that is included with Commerce Cloud and configured with Business Manager.


    Use the API to:


    - Ensure that traffic doesn’t circumvent proxies layered in front of your eCDN.

    - Accelerate the delivery of resources to users with caching, compression, and prioritization.

    - Customize how users interact with resources and how requests are processed, including custom pages and routing rules.

    - Provide proactive and complete application protection against new and existing exploits from bad actors.


    ## Authentication & Authorization


    For resource access, you must use a client ID and client secret from Account Manager to request an access token. The access token is used as a bearer token and added to the `Authorization` header of your API request.


    The API client must also have at least one of the following OAuth scopes: `sfcc.cdn-zones` or `sfcc.cdn-zones.rw`.


    For detailed setup instructions, see the Authorization for Admin APIs guide.


    You must include the relevant scope(s) in the client ID used to generate the token. For details, see the Authorization Scopes Catalog.


    ## Response Details


    ### Timeouts


    Admin API requests must respond within 60 seconds. If a response exceeds this threshold, an HTTP 504 status code is returned. For details, see Timeouts and Limits.


    ### Error Handling


    Error responses follow the RFC 7807 problem detail format. To trace errors, include a `correlation-id` header in your request — the response returns it as `x-correlation-id`. For details, see HTTP Status Codes and Errors.


    ## Use Cases


    For detailed usage information, refer to the CDN Zones Guides.'
servers:
- url: https://{shortCode}.api.commercecloud.salesforce.com/cdn/zones/v1
  variables:
    shortCode:
      description: An eight-character string assigned to a realm for routing purposes. See [Base URL and Request Formation.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html)
      default: shortCode
tags:
- name: Turnstile
paths:
  /organizations/{organizationId}/turnstile/widgets:
    get:
      tags:
      - Turnstile
      summary: List Turnstile widgets for the requesting instance
      description: 'Retrieves Turnstile widgets for the requesting instance.

        The API identifies widgets using the `{name}-{environment}` naming convention

        (for example, `checkout-dev`, `checkout-prd`) established by the create-widget story.

        Only widgets whose names end with `-{environment}` for the requesting instance

        and returns only those matching the instance environment. The response strips the environment suffix from the

        `name` so callers see the logical widget name.

        The response includes secrets per Phase 1 alignment with Security and MRT.

        The system caches results for 5 minutes.'
      operationId: listTurnstileWidgets
      parameters:
      - $ref: '#/components/parameters/organizationId'
      - $ref: '#/components/parameters/widgetName'
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          format: int32
          default: 25
          minimum: 1
          maximum: 50
        description: Number of records to retrieve per request. Must be between 1 (minimum) and 50 (maximum). Defaults to 25.
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          format: int32
          default: 0
          minimum: 0
        description: Used to retrieve the results based on a particular resource offset.
      responses:
        '200':
          description: Successfully retrieved the list of Turnstile widgets.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TurnstileWidgetsEnvelope'
              examples:
                TurnstileWidgetsListResponse:
                  $ref: '#/components/examples/TurnstileWidgetsListResponse'
        '400':
          description: 'The request sent by the caller is not valid.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                BadRequest:
                  $ref: '#/components/examples/BadRequest'
        '401':
          description: 'The caller is not authorized to access the requested resource.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unauthorized:
                  $ref: '#/components/examples/Unauthorized'
        '403':
          description: 'The caller does not have access to the requested resource.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Forbidden:
                  $ref: '#/components/examples/Forbidden'
        '500':
          description: 'An error occurred on the server side.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                InternalServerError:
                  $ref: '#/components/examples/InternalServerError'
      security:
      - AmOAuth2:
        - sfcc.cdn-zones.rw
    post:
      tags:
      - Turnstile
      summary: Create a Turnstile widget for the requesting instance
      description: 'Creates a new Cloudflare Turnstile widget for the requesting instance.

        The widget name in the request is the logical name; the environment suffix

        (`-{environment}`) automatically before creating the widget in Cloudflare,

        producing the `{name}-{environment}` naming convention (for example `checkout-dev`).

        The response includes the shared secret from Cloudflare.'
      operationId: createTurnstileWidget
      parameters:
      - $ref: '#/components/parameters/organizationId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TurnstileWidgetCreateRequest'
            examples:
              TurnstileWidgetCreateRequestExample:
                $ref: '#/components/examples/TurnstileWidgetCreateRequestExample'
      responses:
        '201':
          description: Successfully created the Turnstile widget.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TurnstileWidgetEnvelope'
              examples:
                TurnstileWidgetCreateResponse:
                  $ref: '#/components/examples/TurnstileWidgetCreateResponse'
        '400':
          description: 'The request sent by the caller is not valid (for example, hostname limit exceeded,

            invalid naming, or the instance has reached the 5000 widget limit).

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                BadRequest:
                  $ref: '#/components/examples/BadRequest'
        '401':
          description: 'The caller is not authorized to access the requested resource.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unauthorized:
                  $ref: '#/components/examples/Unauthorized'
        '403':
          description: 'The caller does not have access to the requested resource.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Forbidden:
                  $ref: '#/components/examples/Forbidden'
        '500':
          description: 'An error occurred on the server side.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                InternalServerError:
                  $ref: '#/components/examples/InternalServerError'
      security:
      - AmOAuth2:
        - sfcc.cdn-zones.rw
  /organizations/{organizationId}/turnstile/widgets/{sitekey}:
    get:
      tags:
      - Turnstile
      summary: Get Turnstile widget details
      description: Retrieve the full configuration of a Cloudflare Turnstile widget by sitekey, including the shared secret.
      operationId: getTurnstileWidget
      parameters:
      - $ref: '#/components/parameters/organizationId'
      - $ref: '#/components/parameters/sitekey'
      responses:
        '200':
          description: Successfully retrieved the Turnstile widget.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TurnstileWidgetEnvelope'
              examples:
                TurnstileWidgetResponse:
                  $ref: '#/components/examples/TurnstileWidgetResponse'
        '400':
          description: 'The request sent by the caller is not valid.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                BadRequest:
                  $ref: '#/components/examples/BadRequest'
        '401':
          description: 'The caller is not authorized to access the requested resource.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unauthorized:
                  $ref: '#/components/examples/Unauthorized'
        '403':
          description: 'The caller does not have access to the requested resource.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Forbidden:
                  $ref: '#/components/examples/Forbidden'
        '404':
          description: 'The Turnstile widget with the given sitekey was not found.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                NotFound:
                  $ref: '#/components/examples/NotFound'
        '500':
          description: 'An error occurred on the server side.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                InternalServerError:
                  $ref: '#/components/examples/InternalServerError'
      security:
      - AmOAuth2:
        - sfcc.cdn-zones.rw
    put:
      tags:
      - Turnstile
      summary: Update an existing Turnstile widget
      description: 'Update the domains and/or mode for an existing Cloudflare Turnstile widget.

        Returns 404 if the widget does not exist and 400 if the request is invalid

        (for example, when the Cloudflare hostname/domain limit for the widget has been reached).'
      operationId: updateTurnstileWidget
      parameters:
      - $ref: '#/components/parameters/organizationId'
      - $ref: '#/components/parameters/sitekey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TurnstileWidgetUpdateRequest'
            examples:
              TurnstileWidgetUpdateRequestExample:
                $ref: '#/components/examples/TurnstileWidgetUpdateRequestExample'
      responses:
        '200':
          description: Successfully updated the Turnstile widget.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TurnstileWidgetEnvelope'
              examples:
                TurnstileWidgetUpdateResponse:
                  $ref: '#/components/examples/TurnstileWidgetUpdateResponse'
        '400':
          description: 'The request sent by the caller is not valid (for example, hostname limit reached).

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                BadRequest:
                  $ref: '#/components/examples/BadRequest'
        '401':
          description: 'The caller is not authorized to access the requested resource.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unauthorized:
                  $ref: '#/components/examples/Unauthorized'
        '403':
          description: 'The caller does not have access to the requested resource.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Forbidden:
                  $ref: '#/components/examples/Forbidden'
        '404':
          description: 'The Turnstile widget with the given sitekey was not found.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                NotFound:
                  $ref: '#/components/examples/NotFound'
        '500':
          description: 'An error occurred on the server side.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                InternalServerError:
                  $ref: '#/components/examples/InternalServerError'
      security:
      - AmOAuth2:
        - sfcc.cdn-zones.rw
    delete:
      tags:
      - Turnstile
      summary: Delete a Turnstile widget
      description: 'Delete an existing Cloudflare Turnstile widget. This operation is irreversible and

        immediately invalidates the sitekey and secret.


        **Safety Controls:**

        - Production widgets (environment=prd) require explicit `forceProduction=true` query parameter

        - Returns 403 Forbidden if attempting to delete production widget without force flag

        - Supports dry-run mode via `?dryRun=true` query parameter for validation without deletion


        **Post-deletion verification** runs automatically to confirm deletion.'
      operationId: deleteTurnstileWidget
      parameters:
      - $ref: '#/components/parameters/organizationId'
      - $ref: '#/components/parameters/sitekey'
      - $ref: '#/components/parameters/forceProduction'
      - $ref: '#/components/parameters/dryRun'
      responses:
        '204':
          description: Successfully deleted the Turnstile widget. No content returned.
        '400':
          description: 'Bad request. Invalid sitekey format or malformed request.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                BadRequest:
                  $ref: '#/components/examples/BadRequest'
        '401':
          description: 'The caller is not authorized to access the requested resource.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unauthorized:
                  $ref: '#/components/examples/Unauthorized'
        '403':
          description: 'Forbidden. Production widgets require explicit forceProduction flag.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                ProductionProtection:
                  value:
                    title: Production deletion requires force flag
                    detail: 'Cannot delete production widget without forceProduction: true'
                    type: Forbidden
                Forbidden:
                  $ref: '#/components/examples/Forbidden'
        '404':
          description: 'The Turnstile widget with the given sitekey was not found.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                NotFound:
                  $ref: '#/components/examples/NotFound'
        '500':
          description: 'An error occurred on the server side.

            '
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                InternalServerError:
                  $ref: '#/components/examples/InternalServerError'
      security:
      - AmOAuth2:
        - sfcc.cdn-zones.rw
components:
  parameters:
    forceProduction:
      name: forceProduction
      in: query
      required: false
      description: 'Required to delete production widgets (environment=prd). Provides an additional safety check

        to prevent accidental deletion of production widgets. Non-production widgets (dev, stg, sbx)

        do not require this flag.

        '
      schema:
        type: boolean
        default: false
        example: false
    dryRun:
      name: dryRun
      in: query
      required: false
      description: 'When true, validates the delete request but does not actually delete the widget.

        Use this to verify production protection checks before committing to deletion.

        '
      schema:
        type: boolean
        default: false
        example: false
    widgetName:
      name: name
      in: query
      required: false
      description: Case-insensitive substring match against the logical widget name (after stripping the environment suffix).
      schema:
        type: string
        maxLength: 255
        example: checkout
    sitekey:
      name: sitekey
      description: Cloudflare Turnstile widget sitekey.
      in: path
      required: true
      schema:
        type: string
        pattern: ^[A-Za-z0-9_-]+$
        minLength: 1
        maxLength: 64
        example: 0x4AAAAAAAAbCd1eFgHiJkLm
    organizationId:
      description: An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).
      name: organizationId
      in: path
      required: true
      example: f_ecom_zzxy_prd
      schema:
        description: An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).
        example: f_ecom_zzxy_prd
        type: string
        minLength: 1
        maxLength: 32
  examples:
    TurnstileWidgetUpdateRequestExample:
      value:
        domains:
        - shop.example.com
        - www.example.com
        - checkout.example.com
        mode: invisible
    Unauthorized:
      value:
        type: https://api.commercecloud.salesforce.com/documentation/error/v1/errors/unauthorized
        title: UnAuthorized Access
        detail: The authorization token passed is no longer valid
    TurnstileWidgetUpdateResponse:
      value:
        data:
          sitekey: 0x4AAAAAAAAbCd1eFgHiJkLm
          name: checkout-widget
          mode: invisible
          domains:
          - shop.example.com
          - www.example.com
          - checkout.example.com
          bot_fight_mode: false
          region: world
          offlabel: false
          clearance_level: interactive
          created_on: '2026-01-15T12:00:00Z'
          modified_on: '2026-02-22T16:45:00Z'
          secret: 0x4AAAAAAAAbCd1eFgHiJkLm_secretvalue
    TurnstileWidgetsListResponse:
      value:
        data:
        - sitekey: 0x4AAAAAAAAbCd1eFgHiJkLm
          name: checkout-widget
          mode: managed
          domains:
          - shop.example.com
          - www.example.com
          bot_fight_mode: false
          region: world
          offlabel: false
          clearance_level: interactive
          created_on: '2026-01-15T12:00:00Z'
          modified_on: '2026-02-20T08:30:00Z'
          secret: 0x4AAAAAAAAbCd1eFgHiJkLm_secretvalue
        - sitekey: 0x4BBBBBBBBcDe2fGhIjKlMn
          name: login-widget
          mode: invisible
          domains:
          - login.example.com
          bot_fight_mode: false
          region: world
          offlabel: false
          clearance_level: interactive
          created_on: '2026-01-20T10:00:00Z'
          modified_on: '2026-02-15T14:30:00Z'
          secret: 0x4BBBBBBBBcDe2fGhIjKlMn_secretvalue
    TurnstileWidgetResponse:
      value:
        data:
          sitekey: 0x4AAAAAAAAbCd1eFgHiJkLm
          name: checkout-widget
          mode: managed
          domains:
          - shop.example.com
          - www.example.com
          bot_fight_mode: false
          region: world
          offlabel: false
          clearance_level: interactive
          created_on: '2026-01-15T12:00:00Z'
          modified_on: '2026-02-20T08:30:00Z'
          secret: 0x4AAAAAAAAbCd1eFgHiJkLm_secretvalue
    TurnstileWidgetCreateRequestExample:
      value:
        name: checkout
        domains:
        - shop.example.com
        - www.example.com
        mode: managed
    InternalServerError:
      value:
        type: https://api.commercecloud.salesforce.com/documentation/error/v1/errors/internal-server
        title: Internal Server Error
        detail: An internal server error occured. Please contact support.
    BadRequest:
      value:
        type: https://api.commercecloud.salesforce.com/documentation/error/v1/errors/bad-request
        title: Bad Request
        detail: Request body contains 1 or more attributes that contains errors.
    TurnstileWidgetCreateResponse:
      value:
        data:
          sitekey: 0x4AAAAAAAAbCd1eFgHiJkLm
          name: checkout-widget
          mode: managed
          domains:
          - shop.example.com
          - www.example.com
          bot_fight_mode: false
          region: world
          offlabel: false
          clearance_level: interactive
          created_on: '2026-01-15T12:00:00Z'
          modified_on: '2026-01-15T12:00:00Z'
          secret: 0x4AAAAAAAAbCd1eFgHiJkLm_secretvalue
    Forbidden:
      value:
        type: https://api.commercecloud.salesforce.com/documentation/error/v1/errors/forbidden-access
        title: Forbidden
        detail: Access to requested resource is forbidden.
    NotFound:
      value:
        type: https://api.commercecloud.salesforce.com/documentation/error/v1/errors/resource-not-found
        title: Not Found
        detail: Requested resource was not found
  schemas:
    ErrorResponse:
      type: object
      additionalProperties: true
      properties:
        title:
          description: "A short, human-readable summary of the problem\ntype.  It will not change from occurrence to occurrence of the \nproblem, except for purposes of localization\n"
          type: string
          maxLength: 256
          example: You do not have enough credit
        type:
          description: 'A URI reference [RFC3986] that identifies the

            problem type.  This specification encourages that, when

            dereferenced, it provide human-readable documentation for the

            problem type (e.g., using HTML [W3C.REC-html5-20141028]).  When

            this member is not present, its value is assumed to be

            "about:blank". It accepts relative URIs; this means

            that they must be resolved relative to the document''s base URI, as

            per [RFC3986], Section 5.

            '
          type: string
          maxLength: 2048
          example: NotEnoughMoney
        detail:
          description: A human-readable explanation specific to this occurrence of the problem.
          type: string
          example: Your current balance is 30, but that costs 50
        instance:
          description: 'A URI reference that identifies the specific

            occurrence of the problem.  It may or may not yield further

            information if dereferenced.  It accepts relative URIs; this means

            that they must be resolved relative to the document''s base URI, as

            per [RFC3986], Section 5.

            '
          type: string
          maxLength: 2048
          example: /account/12345/msgs/abc
      required:
      - title
      - type
      - detail
    TurnstileWidget:
      type: object
      description: Cloudflare Turnstile widget details, including the shared secret.
      properties:
        sitekey:
          type: string
          description: Unique identifier for the widget.
          pattern: ^[A-Za-z0-9_-]+$
          minLength: 1
          maxLength: 64
          example: 0x4AAAAAAAAbCd1eFgHiJkLm
        name:
          type: string
          description: Human-readable widget name.
          minLength: 1
          maxLength: 255
          example: checkout-widget
        mode:
          $ref: '#/components/schemas/TurnstileWidgetMode'
        domains:
          type: array
          description: Domains associated with the widget.
          items:
            type: string
            minLength: 1
            maxLength: 253
            example: shop.example.com
          example:
          - shop.example.com
          - www.example.com
        bot_fight_mode:
          type: boolean
          description: Whether bot fight mode is enabled.
          example: false
        region:
          type: string
          description: Widget region.
          minLength: 1
          maxLength: 50
          example: world
        offlabel:
          type: boolean
          description: Whether the widget is off-label.
          example: false
        clearance_level:
          type: string
          description: Clearance level for the widget.
          minLength: 1
          maxLength: 50
          example: interactive
        created_on:
          type: string
          format: date-time
          description: Timestamp when the widget was created.
          example: '2026-01-15T12:00:00Z'
        modified_on:
          type: string
          format: date-time
          description: Timestamp when the widget was last modified.
          example: '2026-02-20T08:30:00Z'
        secret:
          type: string
          description: The widget shared secret. Handle with care.
          minLength: 1
          maxLength: 255
          example: 0x4AAAAAAAAbCd1eFgHiJkLm_secretvalue
      additionalProperties: false
    TurnstileWidgetsEnvelope:
      type: object
      required:
      - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/TurnstileWidget'
      additionalProperties: false
    TurnstileWidgetCreateRequest:
      type: object
      description: Request body to create a new Cloudflare Turnstile widget.
      required:
      - name
      - domains
      - mode
      properties:
        name:
          type: string
          description: 'Logical widget name. Must be non-blank, not already contain the environment suffix,

            and must be at most 227 characters long so that the full Cloudflare-side name

            (`{name}-{environment}`) stays within the 255 character limit enforced for widgets.

            '
          minLength: 1
          maxLength: 227
          example: checkout
        domains:
          type: array
          description: Hostnames allowed to present this widget.
          items:
            type: string
            minLength: 1
            maxLength: 253
            example: shop.example.com
          minItems: 1
          example:
          - shop.example.com
          - www.example.com
        mode:
          $ref: '#/components/schemas/TurnstileWidgetMode'
      additionalProperties: false
    TurnstileWidgetEnvelope:
      type: object
      required:
      - data
      properties:
        data:
          $ref: '#/components/schemas/TurnstileWidget'
      additionalProperties: false
    TurnstileWidgetUpdateRequest:
      type: object
      description: 'Request body to update an existing Cloudflare Turnstile widget.

        At least one of `domains` or `mode` must be supplied.

        '
      properties:
        domains:
          type: array
          description: Replacement list of hostnames allowed to present this widget.
          items:
            type: string
            minLength: 1
            maxLength: 253
            example: shop.example.com
          minItems: 1
          example:
          - shop.example.com
          - www.example.com
        mode:
          $ref: '#/components/schemas/TurnstileWidgetMode'
      additionalProperties: false
    TurnstileWidgetMode:
      type: string
      description: The widget operating mode. Determines the challenge behavior.
      enum:
      - non-interactive
      - invisible
      - managed
      example: managed
  securitySchemes:
    AmOAuth2:
      type: oauth2
      description: AccountManager OAuth 2.0 bearer token Authentication.
      flows:
        clientCredentials:
          tokenUrl: https://account.demandware.com/dwsso/oauth2/access_token
          scopes:
            sfcc.cdn-zones: CDN API Scope READONLY
            sfcc.cdn-zones.rw: CDN API Scope
        authorizationCode:
          authorizationUrl: https://account.demandware.com/dwsso/oauth2/authorize
          tokenUrl: https://account.demandware.com/dwsso/oauth2/access_token
          scopes:
            sfcc.cdn-zones: CDN API Scope READONLY
            sfcc.cdn-zones.rw: CDN API Scope
x-sdk-classname: CDNZones