Tlaloc RFC API

RFC validation against SAT.

GitHub OpenAPI

Operations 1

GET /v1/rfc Validate RFC #

Specifications

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/tlaloc-sh:tlaloc-sh-rfc-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

tlaloc-sh-rfc-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mexico RFC API
  description: 'Mexican data services — ZIP codes, phone numbers, CURP/RFC validation, Banxico CEP payment proofs, CFDI (status/query/issue/cancel), and search over the Diario Oficial de la Federación (DOF).


    Authenticate every `/v1` call with `Authorization: Bearer `. Usage is billed per operation, only on success — see the pricing page for rates.'
  version: 1.0.0
servers:
- url: /mx
tags:
- name: RFC
  description: RFC validation against SAT.
paths:
  /v1/rfc:
    get:
      tags:
      - RFC
      summary: Validate RFC
      description: 'Validate and retrieve information for a Mexican RFC (Registro Federal de Contribuyentes). Supports validation with optional name and postal code verification.


        The RFC prefix may contain `Ñ` and `&` (a persona moral derives it from its razón social). Because `&` separates parameters in a query string, it must be sent URL-encoded as `%26` — `?rfc=AB%26C123456T1A`. Sent raw it truncates the parameter before it reaches the API.'
      operationId: validate_rfc_v1_rfc_get
      security:
      - HTTPBearer: []
      parameters:
      - name: rfc
        in: query
        required: true
        schema:
          type: string
          description: RFC code (12 or 13 characters). `Ñ` and `&` are valid in the prefix; send `&` URL-encoded as `%26`.
          title: Rfc
        description: RFC code (12 or 13 characters). `Ñ` and `&` are valid in the prefix; send `&` URL-encoded as `%26`.
        example: ABC123456T1A
      - name: nombre_razon_social
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional name or business name for additional validation
          title: Nombre Razon Social
        description: Optional name or business name for additional validation
        example: EMPRESA EJEMPLO SA DE CV
      - name: codigo_postal
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional 5-digit postal code for additional validation
          title: Codigo Postal
        description: Optional 5-digit postal code for additional validation
        example: '01000'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RFCDataResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Service Unavailable
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RFCDataResponse:
      properties:
        valid:
          type: boolean
          title: Valid
          description: Whether the RFC is valid
        accept_cfdi:
          type: boolean
          title: Accept Cfdi
          description: Whether the RFC can receive invoices (facturas)
        reason:
          type: string
          title: Reason
          description: Detailed validation result message
      type: object
      required:
      - valid
      - accept_cfdi
      - reason
      title: RFCDataResponse
      description: RFC data response schema.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: Error type
        message:
          type: string
          title: Message
          description: Error message
        details:
          anyOf:
          - type: string
          - type: 'null'
          title: Details
          description: Additional error details
      type: object
      required:
      - error
      - message
      title: ErrorResponse
      description: Error response schema.
    ValidationErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: Error type
          default: validation_error
        message:
          type: string
          title: Message
          description: Validation error message
        field:
          anyOf:
          - type: string
          - type: 'null'
          title: Field
          description: Field that failed validation
      type: object
      required:
      - message
      title: ValidationErrorResponse
      description: Validation error response schema.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer