Cloudflare Turnstile Verification API

The Verification API from Cloudflare Turnstile — 1 operation(s) for verification.

Operations 1

POST /turnstile/v0/siteverify Verify a Turnstile token #

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/cloudflare-turnstile-verification-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

cloudflare-turnstile-verification-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudflare Turnstile Siteverify Verification API
  description: 'Server-side validation endpoint for Cloudflare Turnstile. The server

    submits the widget-issued token together with the site''s secret key to

    the siteverify endpoint and receives a JSON verdict containing success,

    challenge timestamp, hostname, action, cdata, and any error codes.

    '
  version: '1.0'
  contact:
    name: Cloudflare Turnstile
    url: https://developers.cloudflare.com/turnstile/get-started/server-side-validation/
servers:
- url: https://challenges.cloudflare.com
tags:
- name: Verification
paths:
  /turnstile/v0/siteverify:
    post:
      summary: Verify a Turnstile token
      operationId: siteverify
      tags:
      - Verification
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - secret
              - response
              properties:
                secret:
                  type: string
                  description: Turnstile secret key from the Cloudflare dashboard.
                response:
                  type: string
                  description: Token returned by the client-side Turnstile widget.
                remoteip:
                  type: string
                  description: Visitor IP address (optional).
                idempotency_key:
                  type: string
                  format: uuid
                  description: UUID to safely retry validation requests.
          application/json:
            schema:
              $ref: '#/components/schemas/SiteverifyRequest'
      responses:
        '200':
          description: Verification verdict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SiteverifyResponse'
components:
  schemas:
    SiteverifyResponse:
      type: object
      properties:
        success:
          type: boolean
        challenge_ts:
          type: string
          format: date-time
        hostname:
          type: string
        action:
          type: string
        cdata:
          type: string
        error-codes:
          type: array
          items:
            type: string
            enum:
            - missing-input-secret
            - invalid-input-secret
            - missing-input-response
            - invalid-input-response
            - bad-request
            - timeout-or-duplicate
            - internal-error
        metadata:
          type: object
          properties:
            ephemeral_id:
              type: string
              description: Enterprise-only device fingerprint identifier.
    SiteverifyRequest:
      type: object
      required:
      - secret
      - response
      properties:
        secret:
          type: string
        response:
          type: string
        remoteip:
          type: string
        idempotency_key:
          type: string
          format: uuid