# Toll402 CURP Validator

> Toll402 CURP Validator is a paid API for AI agents from toll402.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates an 18-character Mexican CURP (Clave Única de Registro de Población) code and returns whether it is valid

## Facts

- Endpoint: POST https://toll402.dev/v1/t/curp_validate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toll402-curp-validator-6d791856
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x9YswhcEby_j2vK6Yf6OA

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability toll402-curp-validator-6d791856 -d '<json body>'
```

Example prompt: Can you check if the CURP code LOOA531113HTCPBN07 is valid?

## When to prefer this

Use this endpoint when you need to validate a Mexican CURP (Clave Única de Registro de Población) code offline-style via a lightweight API call, without needing a full government registry lookup. It is ideal for KYC pipelines, form validation, and data quality checks for Mexican user records. Prefer it over a manual regex check when you want a reliable, maintained validator that handles format and checksum rules, paid per call with no signup or API key required.

## Known failure modes

- Missing or malformed 'curp' field in request body returns a validation error
- CURP with incorrect length (not 18 characters) returns ok: false
- Invalid checksum digit causes ok: false
- Network or payment failure (402 if wallet is empty) prevents the call from completing
- Malformed JSON body returns a 400-level error

## How this service works

The OpenRouter for AI-agent tools: one gateway, one wallet, every capability. Built-in tools, forged tools, a global verified business directory and 2,000+ aggregated x402 services, all paid per call in USDC via x402 (HTTP 402). No signup, no API key.

## Output

A JSON object with an 'ok' boolean field indicating whether the provided 18-character CURP code is valid (true) or invalid (false).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "curp"
     ],
     "properties": {
      "curp": {
       "type": "string",
       "description": "18-character CURP code"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toll402-curp-validator-6d791856/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toll402.dev](https://www.zero.xyz/host/toll402.dev/llms.txt)
