Tlaloc CURP API

CURP validation against RENAPO (single + batch).

GitHub OpenAPI

Operations 5

POST /v1/curp/batch Submit a CURP lookup batch #
GET /v1/curp/batch/{batch_id} Get CURP batch summary #
DELETE /v1/curp/batch/{batch_id} Cancel a CURP batch (cooperative) #
GET /v1/curp/batch/{batch_id}/items List items of a CURP batch #
GET /v1/curp Validate CURP #

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-curp-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-curp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mexico CURP 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: CURP
  description: CURP validation against RENAPO (single + batch).
paths:
  /v1/curp/batch:
    post:
      tags:
      - CURP
      summary: Submit a CURP lookup batch
      description: 'Submit a batch of CURP lookups. **Idempotency**: send an `Idempotency-Key` header to safely retry on network errors. Same key + same body within 24h returns the original batch (200). Same key + different body returns 409. Without a key, duplicate POSTs within 10 minutes return the existing batch.'
      operationId: create_curp_batch_v1_curp_batch_post
      security:
      - HTTPBearer: []
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Idempotency-Key
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurpBatchSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/curp/batch/{batch_id}:
    get:
      tags:
      - CURP
      summary: Get CURP batch summary
      operationId: get_curp_batch_v1_curp_batch__batch_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: batch_id
        in: path
        required: true
        schema:
          type: integer
          title: Batch Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurpBatchSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - CURP
      summary: Cancel a CURP batch (cooperative)
      operationId: delete_curp_batch_v1_curp_batch__batch_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: batch_id
        in: path
        required: true
        schema:
          type: integer
          title: Batch Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurpBatchSummary'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/curp/batch/{batch_id}/items:
    get:
      tags:
      - CURP
      summary: List items of a CURP batch
      operationId: list_curp_batch_items_v1_curp_batch__batch_id__items_get
      security:
      - HTTPBearer: []
      parameters:
      - name: batch_id
        in: path
        required: true
        schema:
          type: integer
          title: Batch Id
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page
      - name: per_page
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 100
          title: Per Page
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurpBatchItemsPage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/curp:
    get:
      tags:
      - CURP
      summary: Validate CURP
      description: Validate and retrieve information for a Mexican CURP (Clave Única de Registro de Población).
      operationId: get_curp_data_v1_curp_get
      security:
      - HTTPBearer: []
      parameters:
      - name: curp
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: 18-character CURP
          title: Curp
        description: 18-character CURP
        example: ABCD123456HDFRGG09
      - name: names
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: First name(s)
          title: Names
        description: First name(s)
        example: JUAN CARLOS
      - name: first_last_name
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: First last name (apellido paterno)
          title: First Last Name
        description: First last name (apellido paterno)
        example: PEREZ
      - name: second_last_name
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Second last name (apellido materno)
          title: Second Last Name
        description: Second last name (apellido materno)
        example: GOMEZ
      - name: date_of_birth
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
          - type: 'null'
          description: Date of birth YYYY-MM-DD
          title: Date Of Birth
        description: Date of birth YYYY-MM-DD
        example: '1980-05-12'
      - name: gender
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            pattern: ^[MHX]$
          - type: 'null'
          description: Gender code (M=Mujer, H=Hombre, X=No binario)
          title: Gender
        description: Gender code (M=Mujer, H=Hombre, X=No binario)
        example: H
      - name: state_of_birth
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: State of birth name or code
          title: State Of Birth
        description: State of birth name or code
        example: Jalisco
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CURPDataResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
          description: Bad Request
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Content
        '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
components:
  schemas:
    CurpBatchSummary:
      properties:
        id:
          type: integer
          title: Id
        type:
          type: string
          title: Type
        status:
          type: string
          title: Status
        termination_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Termination Reason
        items_total:
          type: integer
          title: Items Total
        items_unique:
          type: integer
          title: Items Unique
        items_pending:
          type: integer
          title: Items Pending
        items_processing:
          type: integer
          title: Items Processing
        items_success:
          type: integer
          title: Items Success
        items_not_found:
          type: integer
          title: Items Not Found
        items_error:
          type: integer
          title: Items Error
        items_cancelled:
          type: integer
          title: Items Cancelled
        items_skipped_insufficient_balance:
          type: integer
          title: Items Skipped Insufficient Balance
        items_cache_hit:
          type: integer
          title: Items Cache Hit
        cost_billed_mxn:
          type: string
          title: Cost Billed Mxn
        idempotency_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Idempotency Key
        created_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Created At
        started_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Started At
        completed_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Completed At
        _links:
          additionalProperties:
            type: string
          type: object
          title: Links
      type: object
      required:
      - id
      - type
      - status
      - items_total
      - items_unique
      - items_pending
      - items_processing
      - items_success
      - items_not_found
      - items_error
      - items_cancelled
      - items_skipped_insufficient_balance
      - items_cache_hit
      - cost_billed_mxn
      - created_at
      title: CurpBatchSummary
      description: Summary of a batch (POST 202 / GET batch). Items are paginated separately.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CurpBatchItemResult:
      properties:
        idx:
          type: integer
          title: Idx
        ref:
          anyOf:
          - type: string
          - type: 'null'
          title: Ref
        input:
          additionalProperties: true
          type: object
          title: Input
        status:
          type: string
          title: Status
        cache_hit:
          type: boolean
          title: Cache Hit
        billed:
          type: boolean
          title: Billed
        result:
          anyOf:
          - $ref: '#/components/schemas/CURPDataResponse'
          - type: 'null'
        error_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Code
        error_message:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Message
        processed_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Processed At
      type: object
      required:
      - idx
      - input
      - status
      - cache_hit
      - billed
      title: CurpBatchItemResult
      description: Per-item result inside the items page response.
    CurpBatchItemsPage:
      properties:
        items:
          items:
            $ref: '#/components/schemas/CurpBatchItemResult'
          type: array
          title: Items
        page:
          type: integer
          title: Page
        per_page:
          type: integer
          title: Per Page
        total:
          type: integer
          title: Total
      type: object
      required:
      - items
      - page
      - per_page
      - total
      title: CurpBatchItemsPage
      description: Paginated items response.
    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.
    CURPDataResponse:
      properties:
        nacionalidad:
          type: string
          title: Nacionalidad
          description: Nacionalidad
        docProbatorio:
          type: integer
          title: Docprobatorio
          description: Documento probatorio
        statusCurp:
          type: string
          title: Statuscurp
          description: Status CURP
        nombres:
          type: string
          title: Nombres
          description: Nombres
        parametro:
          anyOf:
          - type: string
          - type: 'null'
          title: Parametro
          description: Parámetro
        primerApellido:
          type: string
          title: Primerapellido
          description: Primer apellido
        segundoApellido:
          anyOf:
          - type: string
          - type: 'null'
          title: Segundoapellido
          description: Segundo apellido
        curp:
          type: string
          title: Curp
          description: CURP
        fechaNacimiento:
          type: string
          title: Fechanacimiento
          description: Fecha de nacimiento
        sexo:
          type: string
          title: Sexo
          description: Sexo
        datosDocProbatorio:
          $ref: '#/components/schemas/DatosDocProbatorio'
          description: Datos documento probatorio
        claveEntidad:
          type: string
          title: Claveentidad
          description: Clave entidad
        entidad:
          type: string
          title: Entidad
          description: Entidad
      type: object
      required:
      - nacionalidad
      - docProbatorio
      - statusCurp
      - nombres
      - primerApellido
      - curp
      - fechaNacimiento
      - sexo
      - datosDocProbatorio
      - claveEntidad
      - entidad
      title: CURPDataResponse
      description: CURP data response schema.
    DatosDocProbatorio:
      properties:
        claveEntidadRegistro:
          anyOf:
          - type: string
          - type: 'null'
          title: Claveentidadregistro
          description: Clave entidad registro
        entidadRegistro:
          anyOf:
          - type: string
          - type: 'null'
          title: Entidadregistro
          description: Entidad registro
        claveMunicipioRegistro:
          anyOf:
          - type: string
          - type: 'null'
          title: Clavemunicipioregistro
          description: Clave municipio registro
        municipioRegistro:
          anyOf:
          - type: string
          - type: 'null'
          title: Municipioregistro
          description: Municipio registro
        anioReg:
          anyOf:
          - type: string
          - type: 'null'
          title: Anioreg
          description: Año de registro
        foja:
          anyOf:
          - type: string
          - type: 'null'
          title: Foja
          description: Foja
        tomo:
          anyOf:
          - type: string
          - type: 'null'
          title: Tomo
          description: Tomo
        libro:
          anyOf:
          - type: string
          - type: 'null'
          title: Libro
          description: Libro
        numActa:
          anyOf:
          - type: string
          - type: 'null'
          title: Numacta
          description: Número de acta
      type: object
      title: DatosDocProbatorio
      description: Datos del documento probatorio.
    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