hCaptcha Siteverify API

The Siteverify API from hCaptcha — 1 operation(s) for siteverify.

Operations 1

POST /siteverify Verify user response 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/hcaptcha-siteverify-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

hcaptcha-siteverify-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: hCaptcha Siteverify API
  description: 'hCaptcha server-side verification API. After a user completes the hCaptcha

    challenge on the client, the resulting response token must be verified

    server-side by POSTing it to the /siteverify endpoint along with the

    account''s secret key.

    '
  version: 1.0.0
  contact:
    name: hCaptcha Support
    url: https://docs.hcaptcha.com/
servers:
- url: https://api.hcaptcha.com
  description: hCaptcha API production server
security:
- secretKey: []
tags:
- name: Siteverify
paths:
  /siteverify:
    post:
      summary: Verify user response token
      description: 'Verify the response token returned to the client by the hCaptcha widget.

        The request must be sent as application/x-www-form-urlencoded. Do not

        use a GET request for this endpoint.

        '
      operationId: siteverify
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - secret
              - response
              properties:
                secret:
                  type: string
                  description: Your account's secret key.
                response:
                  type: string
                  description: The verification token your site received from the client.
                remoteip:
                  type: string
                  description: The user's IP address (recommended).
                sitekey:
                  type: string
                  description: The expected sitekey for this verification (recommended).
      responses:
        '200':
          description: Verification result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SiteverifyResponse'
      tags:
      - Siteverify
components:
  schemas:
    SiteverifyResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the response token was valid.
        challenge_ts:
          type: string
          description: Timestamp of the challenge load (ISO 8601).
        hostname:
          type: string
          description: The hostname of the site where the challenge was solved.
        credit:
          type: boolean
          description: Optional, deprecated field.
        error-codes:
          type: array
          description: Optional error codes explaining a failed verification.
          items:
            type: string
        score:
          type: number
          format: float
          description: Enterprise only. Risk score for the request (0.0 - 1.0).
        score_reason:
          type: array
          description: Enterprise only. Reason codes contributing to the score.
          items:
            type: string
  securitySchemes:
    secretKey:
      type: apiKey
      in: query
      name: secret
      description: 'The hCaptcha secret key is passed as a form field named `secret` in the

        request body (application/x-www-form-urlencoded). It is modeled here as

        an apiKey scheme for tooling compatibility; the actual transport is the

        form body, not a query string.

        '