Toolrail Validate API

The Validate API from Toolrail — 3 operation(s) for validate.

GitHub OpenAPI

Operations 3

POST /validate/iban Validate an IBAN (international bank account number): ISO 13616 mod-97 check… #
POST /validate/phone Validate and format phone numbers for ~240 regions (Google libphonenumber)… #
POST /validate/tax-id Validate the format and supported check-digit rules of tax IDs across Latin… #

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/toolrail-dev:toolrail-dev-validate-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

toolrail-dev-validate-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Toolrail Validate API
  version: 1.0.0
  description: 'Pay-per-call utility API for AI agents: PDF generation, global holidays/business days, EU VAT, ECB FX rates, IBAN/phone validation, QR codes, Chilean operational data. x402/USDC on Base & Solana.'
  contact:
    name: Toolrail support
    email: roberto.mena.rodriguez@gmail.com
servers:
- url: https://toolrail.dev
tags:
- name: Validate
paths:
  /validate/iban:
    post:
      operationId: post_validate_iban
      summary: 'Validate an IBAN (international bank account number): ISO 13616 mod-97 check…'
      description: 'Validate an IBAN (international bank account number): ISO 13616 mod-97 check digits and per-country length registry for 88 countries. Returns formatted IBAN and BBAN. Use when someone enters a bank account (IBAN) and you must catch typos before a transfer. Price: $0.002 per call, paid in USDC via x402 (HTTP 402 flow).'
      x-price-usd: $0.002
      x-payment-protocol: x402
      x-example: 'curl -X POST https://toolrail.dev/validate/iban -H "Content-Type: application/json" -d ''{"iban":"DE89 3704 0044 0532 0130 00"}'''
      responses:
        '200':
          description: Resource returned after settled payment
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
        '402':
          description: Payment required — PAYMENT-REQUIRED carries the base64 x402 payment requirements
          headers:
            PAYMENT-REQUIRED:
              schema:
                type: string
              description: Base64-encoded x402 payment envelope
        '429':
          description: Rate limit exceeded
        '502':
          description: Upstream data source unavailable
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                iban:
                  type: string
            example:
              iban: DE89 3704 0044 0532 0130 00
      tags:
      - Validate
  /validate/phone:
    post:
      operationId: post_validate_phone
      summary: Validate and format phone numbers for ~240 regions (Google libphonenumber)…
      description: 'Validate and format phone numbers for ~240 regions (Google libphonenumber): validity, region, line type, E.164 / international / national formats. Use when normalizing or checking phone numbers before saving a contact or sending SMS or WhatsApp. Price: $0.002 per call, paid in USDC via x402 (HTTP 402 flow).'
      x-price-usd: $0.002
      x-payment-protocol: x402
      x-example: 'curl -X POST https://toolrail.dev/validate/phone -H "Content-Type: application/json" -d ''{"phone":"+56 9 6123 4567"}'''
      responses:
        '200':
          description: Resource returned after settled payment
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
        '402':
          description: Payment required — PAYMENT-REQUIRED carries the base64 x402 payment requirements
          headers:
            PAYMENT-REQUIRED:
              schema:
                type: string
              description: Base64-encoded x402 payment envelope
        '429':
          description: Rate limit exceeded
        '502':
          description: Upstream data source unavailable
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                phone:
                  type: string
            example:
              phone: +56 9 6123 4567
      tags:
      - Validate
  /validate/tax-id:
    post:
      operationId: post_validate_tax_id
      summary: Validate the format and supported check-digit rules of tax IDs across Latin…
      description: 'Validate the format and supported check-digit rules of tax IDs across Latin America and Spain: Chile RUT, Argentina CUIT/CUIL, Brazil CPF/CNPJ, Mexico RFC, Peru RUC, Colombia NIT, Spain NIF/NIE. Does not verify identity or registration with a tax authority. Use when checking a Latin American or Spanish tax ID''s format before saving a customer or an invoice. Price: $0.002 per call, paid in USDC via x402 (HTTP 402 flow).'
      x-price-usd: $0.002
      x-payment-protocol: x402
      x-example: 'curl -X POST https://toolrail.dev/validate/tax-id -H "Content-Type: application/json" -d ''{"country":"BR","id":"529.982.247-25"}'''
      responses:
        '200':
          description: Resource returned after settled payment
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid request
        '402':
          description: Payment required — PAYMENT-REQUIRED carries the base64 x402 payment requirements
          headers:
            PAYMENT-REQUIRED:
              schema:
                type: string
              description: Base64-encoded x402 payment envelope
        '429':
          description: Rate limit exceeded
        '502':
          description: Upstream data source unavailable
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                country:
                  type: string
                id:
                  type: string
            example:
              country: BR
              id: 529.982.247-25
      tags:
      - Validate