Email-Validation.org A2A API

Agent2Agent (A2A) protocol endpoint and agent card for AI agents.

GitHub OpenAPI

Operations 3

POST /a2a A2A endpoint (JSON-RPC 2.0) #
GET /a2a A2A endpoint (POST only) #
GET /.well-known/agent-card.json Get the A2A agent card #

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/email-validation-org:email-validation-org-a2a-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

email-validation-org-a2a-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: email-validation.org A2A API
  version: 1.0.0
  summary: Validate email addresses one at a time or in bulk.
  description: 'REST API of email-validation.org. Send your API key in the `Authorization` header as a bearer token

    (or in `X-Api-Key`); keys in URLs are refused. Requests and responses are JSON (UTF-8), except bulk

    uploads (CSV or plain text) and result downloads (CSV).


    Results use five statuses (`valid`, `invalid`, `catch_all`, `unknown`, `disposable`), each with a reason and a

    recommended action: spam traps and frequent complainers are `valid` with the action `remove`. `unknown` results

    never cost a credit, and neither do errors.


    Rate limits: up to 500 requests per second per account after a purchase (20 before),

    and up to 500 requests per second from one IP address (IPv6: one /48), counted per Cloudflare data center.

    Requests from Cloudflare Workers, which all share one address, count toward the per-IP limit only without a key.

    After 20 requests with an invalid key in a minute, an IP address''s further invalid keys get 429 for up to a minute; valid keys keep working, on the global and the EU server alike.

    Over a limit: `429 rate_limited` with `Retry-After`, never charged.


    A method a path does not list here (for example `GET /v1/bulk` or `PUT /v1/validate`) answers

    `405 invalid_request` with an `Allow` header naming the methods the path takes. Nothing is charged.


    EU data residency: validated and stored in the EU. Send the same requests to https://api-eu.email-validation.org (the second server), where

    `/v1/validate` takes the address in a POST body only. An account with EU-only processing gets

    `403 forbidden` on https://api.email-validation.org. See https://email-validation.org/docs/eu-data-residency/.


    Guides and examples: https://email-validation.org/docs/'
  termsOfService: https://email-validation.org/legal/terms/
  contact:
    name: email-validation.org support
    url: https://email-validation.org/contact/
    email: support@email-validation.org
servers:
- url: https://api.email-validation.org
  description: Production
- url: https://api-eu.email-validation.org
  description: 'EU data residency: validated and stored in the EU'
security:
- bearerAuth: []
- apiKeyHeader: []
tags:
- name: a2a
  description: Agent2Agent (A2A) protocol endpoint and agent card for AI agents.
  externalDocs:
    url: https://email-validation.org/docs/ai-agents/
paths:
  /a2a:
    post:
      operationId: a2aRequest
      tags:
      - a2a
      summary: A2A endpoint (JSON-RPC 2.0)
      description: 'Agent2Agent protocol endpoint (A2A 1.0 JSON-RPC binding; send the header `A2A-Version: 1.0`, or no header for A2A 0.3). Skills: `validate_email` (one address per message, in a text part or a data part `{"email": …}`; the result comes back as a data part of a completed task) and `get_credits`. Authenticate with the same API key as the REST API; a validation uses the same credits, limits and rules as `POST /v1/validate`. Tasks finish inside the request and are not stored. JSON-RPC errors use the A2A codes (for example -32602 invalid parameters); throttling and outages are answered with HTTP 429 and 503 and `Retry-After`, like the REST API. Agent card: https://api.email-validation.org/.well-known/agent-card.json. Guide: https://email-validation.org/docs/ai-agents/'
      parameters:
      - name: A2A-Version
        in: header
        required: false
        schema:
          type: string
          enum:
          - '1.0'
          - '0.3'
        description: A2A protocol version (Major.Minor). No header means 0.3.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: One JSON-RPC 2.0 request (no batches).
          application/a2a+json:
            schema:
              type: object
              description: One JSON-RPC 2.0 request (no batches).
      responses:
        '200':
          description: 'A JSON-RPC response: a result (for example `{"task": {…}}`) or an error.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/AgentTooManyRequests'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
    get:
      operationId: a2aGet
      tags:
      - a2a
      summary: A2A endpoint (POST only)
      description: The endpoint takes JSON-RPC requests with `POST`; `GET` answers 405.
      security: []
      responses:
        '405':
          description: Method not allowed.
  /.well-known/agent-card.json:
    get:
      operationId: getAgentCard
      tags:
      - a2a
      summary: Get the A2A agent card
      description: 'The A2A agent card: endpoint, protocol versions, the bearer key scheme and the skills. No key needed. The same card is published at https://email-validation.org/.well-known/agent-card.json. The EU endpoint serves no agent card.'
      servers:
      - url: https://api.email-validation.org
        description: Production
      security: []
      responses:
        '200':
          description: The agent card.
          content:
            application/json:
              schema:
                type: object
components:
  headers:
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 0
    WwwAuthenticate:
      description: Authentication scheme.
      schema:
        type: string
        example: Bearer realm="api"
    RequestId:
      description: Our id for the request (same as `request_id` in bodies).
      schema:
        type: string
        pattern: ^req_[0-9A-Za-z]{22}$
        description: Our id for this request. Keep it in your logs, and quote it in a billing or legal dispute sent to legal@email-validation.org, which a person reads; the AI support assistant cannot look requests up.
  responses:
    Unauthorized:
      description: 'The API key is missing or not valid (unknown, revoked, expired or rolled). Codes: `unauthorized`.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        WWW-Authenticate:
          $ref: '#/components/headers/WwwAuthenticate'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthorized:
              summary: unauthorized
              value:
                error:
                  code: unauthorized
                  message: A valid API key or session is required.
                  request_id: req_7Hq2LmX9cV4bN8tR1zK6wD
            missing_key:
              summary: No API key sent
              value:
                error:
                  code: unauthorized
                  message: 'Send your API key in the Authorization header: Bearer <key>.'
                  request_id: req_7Hq2LmX9cV4bN8tR1zK6wD
            invalid_key:
              summary: API key not valid
              value:
                error:
                  code: unauthorized
                  message: The API key is not valid.
                  request_id: req_7Hq2LmX9cV4bN8tR1zK6wD
    AgentTooManyRequests:
      description: 'Slow down and retry after `Retry-After` seconds. `rate_limited`: over the account''s or key''s per-second limit, over 500 requests per second from one IP address, or an invalid key from an IP address that sent more than 20 in the last minute. `abuse_throttled`: the account is paused until the time in `Retry-After`. Codes: `rate_limited`, `abuse_throttled`.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            rate_limited:
              summary: rate_limited
              value:
                error:
                  code: rate_limited
                  message: Too many requests. Slow down and retry later.
                  request_id: req_7Hq2LmX9cV4bN8tR1zK6wD
            abuse_throttled:
              summary: abuse_throttled
              value:
                error:
                  code: abuse_throttled
                  message: Too many requests ended without a definite result, so this account is paused until the time in Retry-After.
                  request_id: req_7Hq2LmX9cV4bN8tR1zK6wD
    ServiceUnavailable:
      description: 'Temporarily unavailable. No credit was used; retry after `Retry-After` seconds. Codes: `service_unavailable`.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            service_unavailable:
              summary: service_unavailable
              value:
                error:
                  code: service_unavailable
                  message: The service is temporarily unavailable. Please retry later.
                  request_id: req_7Hq2LmX9cV4bN8tR1zK6wD
    PayloadTooLarge:
      description: 'The body is too large. Codes: `payload_too_large`.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            payload_too_large:
              summary: payload_too_large
              value:
                error:
                  code: payload_too_large
                  message: The request body is too large.
                  request_id: req_7Hq2LmX9cV4bN8tR1zK6wD
    BadRequest:
      description: 'The request is not valid. Codes: `invalid_request`.'
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            invalid_request:
              summary: invalid_request
              value:
                error:
                  code: invalid_request
                  message: The request is invalid.
                  request_id: req_7Hq2LmX9cV4bN8tR1zK6wD
            key_in_url:
              summary: API key sent in the URL
              value:
                error:
                  code: invalid_request
                  message: Send the key in the Authorization header, not in the URL. See https://email-validation.org/docs/authentication/
                  request_id: req_7Hq2LmX9cV4bN8tR1zK6wD
  schemas:
    Error:
      type: object
      description: Every error uses this envelope. No credit is ever charged for a request that ends in an error.
      additionalProperties: false
      required:
      - error
      properties:
        error:
          type: object
          additionalProperties: false
          required:
          - code
          - message
          - request_id
          properties:
            code:
              $ref: '#/components/schemas/ErrorCode'
            message:
              type: string
              description: Explanation for people, in English. It may change; do not parse it.
            request_id:
              type: string
              pattern: ^req_[0-9A-Za-z]{22}$
              description: Our id for this request. Keep it in your logs, and quote it in a billing or legal dispute sent to legal@email-validation.org, which a person reads; the AI support assistant cannot look requests up.
    ErrorCode:
      type: string
      enum:
      - invalid_request
      - unauthorized
      - insufficient_credits
      - forbidden
      - forbidden_origin
      - not_found
      - conflict
      - length_required
      - payload_too_large
      - rate_limited
      - abuse_throttled
      - key_daily_cap
      - internal_error
      - service_unavailable
      - upstream_capacity
      description: 'Stable, machine-readable error code. Branch on this, not on the message.


        | Code | HTTP | When |

        |---|---|---|

        | `invalid_request` | 400, 405 | A parameter is missing, has the wrong type or is out of range, the `Authorization` header is not `Bearer <key>`, or the API key was sent in the URL (a query parameter named `api_key` in any spelling, such as `apiKey` or `API-KEY`, or any query value that looks like a key). The message names the fields at fault. A method the path does not take (such as `GET /v1/bulk`) is a `405` with an `Allow` header that lists the methods it does take. |

        | `unauthorized` | 401 | No API key was sent, or the key is not valid: unknown, revoked, expired or replaced by a roll. |

        | `insufficient_credits` | 402 | The account has no credits left for this request (or not enough for a bulk job). |

        | `forbidden` | 403 | The key lacks the scope this endpoint needs (for example `bulk`), the account is suspended or on a billing hold, or the account has EU-only processing turned on and the request went to https://api.email-validation.org. |

        | `forbidden_origin` | 403 | The key is restricted to a list of browser origins and the request came from another `Origin`. |

        | `not_found` | 404 | The resource does not exist or belongs to another account. |

        | `conflict` | 409 | The request does not fit the current state of the resource, such as starting a bulk job that is already running or downloading results before a job has finished. |

        | `length_required` | 411 | A bulk upload was sent without a `Content-Length` header (for example as a chunked stream). |

        | `payload_too_large` | 413 | The request body is over the limit: 100 MB for a CSV or TXT bulk upload, 100,000 addresses or 4 MB for a JSON list, 4 MB for an MCP message, 4 KB for a `POST /v1/validate` body. |

        | `rate_limited` | 429 | The account or key sent more requests per second than its limit allows, the IP address sent more than 500 requests per second (Cloudflare Workers, which all share one address, count only without a key), or the IP address sent more than 20 requests with an invalid key in a minute (its further invalid keys get this for up to a minute; valid keys keep working). |

        | `abuse_throttled` | 429 | Too many recent requests ended without a definite answer (free outcomes) compared with charged ones, or an account without a purchase reached its daily number of checks (single checks, lists and the checker on our site together), so the account is slowed down or paused until the time in `Retry-After` (the message gives it when the pause is long). |

        | `key_daily_cap` | 429 | This key reached the daily credit cap set for it in the dashboard. |

        | `internal_error` | 500 | Something failed on our side. No credit was used. |

        | `service_unavailable` | 503 | Validation is paused for a short time, for example while a dependency recovers. No credit was used. |

        | `upstream_capacity` | 503 | A bulk job could not be admitted right now because validation capacity is limited. No credit was used. |'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: ev_live_…
      description: 'Your API key as a bearer token: `Authorization: Bearer ev_live_…`.'
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Alternative header for clients that cannot set `Authorization`.
externalDocs:
  description: Documentation
  url: https://email-validation.org/docs/