CommsHarbor X402 API

The X402 API from CommsHarbor — 1 operation(s) for x402.

GitHub OpenAPI

Operations 1

GET /api/x402/email-check Checks the email security of a domain for an agent, paid per call: SPF, DKIM… #

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/commsharbor:commsharbor-x402-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

commsharbor-x402-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CommsHarbor X402 API
  version: fd7767a6
  description: Manage domain email, mailboxes, aliases and durable jobs. Each call uses its organization's identity.
servers:
- url: https://commsharbor.com
tags:
- name: X402
paths:
  /api/x402/email-check:
    get:
      operationId: get_api_x402_email_check
      summary: 'Checks the email security of a domain for an agent, paid per call: SPF, DKIM…'
      description: 'The check of `GET /api/email-check`, sold per call to agents, with no account and without the 30 free checks per day before. A request without payment gets the 402 with the price; a paid one gets the audit in the same response, with the payment in `cobranca`. DKIM is looked up in common selectors only; `incomplete: true` means a DNS answer failed. A refused domain, the hourly limit of the service and a failed DNS lookup are not charged.

        Returns: { domain, score, rating, findings, spf, dmarc, dkim, mx, mta_sts, bimi, unread, incomplete, checked_at, share_url, badge_url, cobranca{via,preco_usd,repetido,saldo_usd?} }'
      x-price-usd: 0.01
      x-agent-value:
        when: Does this domain publish SPF, DKIM and DMARC?
        result: SPF, DKIM, DMARC and MX findings, a score and source-query limitations.
        replaces: DNS lookups, record parsing and assembling the domain's email-policy findings.
        free: GET /api/email-check offers the same check within its free allowance. Use it first when it covers your task.
        paid: The x402 route buys a check from the first call, without an account or the free allowance first. Monthly domain-email packages buy mailboxes and storage, not this check; management requires organization authority.
        limits: DKIM checks common selectors only. Inspect incomplete and unread. A score does not prove inbox placement, stop every phishing attack or verify the contents of a mailbox.
        alternative: The free check suffices or you already have equivalent DNS analysis. For hosted email, evaluate activation readiness and the actual mailbox package separately.
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.01'
        protocols:
        - x402: {}
      security:
      - bearerAuth: []
      parameters:
      - name: domain
        in: query
        required: true
        schema:
          type: string
        description: Public domain to check, such as example.com. A subdomain or URL is reduced to its registrable domain.
        example: example.com
      - name: authorization
        in: header
        required: false
        schema:
          type: string
        description: '`Bearer mmk_…` (API key) or `Bearer mmo_…` (OAuth): the paid call uses the account balance without another header. Without an account, use prepaid credit from `POST /api/credito` as `Bearer cred_…`.'
      - name: x-api-key
        in: header
        required: false
        schema:
          type: string
        description: The mmk_… API key for this product. It identifies the account and authorizes its balance for the paid call.
      - name: payment-signature
        in: header
        required: false
        schema:
          type: string
        description: 'The signed x402 payment proof (base64): `PAYMENT-SIGNATURE` (v2) or `X-PAYMENT` (v1).'
      - name: x-wallet-token
        in: header
        required: false
        schema:
          type: string
        description: To recover an x402 response within 24 hours, repeat the same request and payment proof. Send the payer wallet's `mmw_…` credential here, issued through `/api/auth/wallet/agent/start` and `/api/auth/wallet/agent/token`. There is no new charge.
      responses:
        '200':
          description: '{ domain, score, rating, findings, spf, dmarc, dkim, mx, mta_sts, bimi, unread, incomplete, checked_at, share_url, badge_url, cobranca{via,preco_usd,repetido,saldo_usd?} }'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerificacaoAvulsa'
        '400':
          description: Paid without `domain` (`missing_input`) or with a domain that is not public (`domain_invalid`), both with `example`. Not charged.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: API key refused (`invalid_api_key`), OAuth token refused (`invalid_token`), credit refused (`credito_invalido`), test credit outside dev (`credito_simulado`), or recovery without wallet authentication (`wallet_proof_required`). The first x402 purchase needs no account.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '402':
          description: 'No payment: `accepts` (x402, USDC on Base) with the price of this call, at least US$ 0.01; `credito.preco_desta_chamada`, the lower price with prepaid credit; and `pacotes` (the credit top-ups and how many calls each one pays). Credit without balance answers `saldo_insuficiente`.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '409':
          description: Payment is in progress, the request differs from the original, or the amount was recovered as balance. Do not sign another authorization to retry the purchase.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '410':
          description: The 24-hour response recovery period ended. The financial record remains; the same proof cannot cause another charge.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: 'rate_limited: the hourly limit of the service. Retry after the stated delay. Not charged.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: 'dns_unavailable: the DNS lookup failed. Retry in a minute. Not charged.'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - X402
components:
  schemas:
    VerificacaoAvulsa:
      type: object
      properties:
        domain:
          type: string
          description: Registrable domain that was checked.
        score:
          type: integer
          description: '0 to 100: DMARC up to 40, SPF 20, DKIM 20, MX 10, MTA-STS 5 and BIMI 5.'
        rating:
          type: string
          description: protected (90+), good (70+), at_risk (40+) or exposed.
        findings:
          type: array
          items:
            type: object
          description: '`{code, severity}`, most severe first. Codes: dmarc_missing, dmarc_none, spf_plus_all, spf_missing, spf_multiple, dmarc_quarantine, dkim_not_found, spf_neutral, spf_softfail, dmarc_no_reports, mx_missing, mta_sts_missing, bimi_missing.'
        spf:
          type: object
          description: '`{record, ending, multiple}`: the first SPF record, its `all` ending and whether there are two.'
        dmarc:
          type: object
          description: '`{record, policy, reports}`: policy reject, quarantine, none or null; reports when `rua` is set.'
        dkim:
          type: object
          description: '`{found, checked}`: selectors with a published key and the selectors looked up.'
        mx:
          type: array
          items:
            type: string
          description: MX records as `priority host`.
        mta_sts:
          type: boolean
          description: An MTA-STS policy record exists.
        bimi:
          type: boolean
          description: A BIMI record exists at the default selector.
        unread:
          type: array
          items:
            type: string
          description: Parts whose DNS query failed (spf, dmarc, dkim, mx, mta_sts, bimi). They have no findings and no points.
        incomplete:
          type: boolean
          description: At least one DNS query failed.
        checked_at:
          type: string
          description: ISO time of the DNS reading.
        share_url:
          type: string
          description: Public page with this result.
        badge_url:
          type: string
          description: SVG badge with the score.
        cobranca:
          allOf:
          - $ref: '#/components/schemas/CobrancaDaChamada'
          description: How this call was paid.
      required:
      - domain
      - score
      - rating
      - findings
      - spf
      - dmarc
      - dkim
      - mx
      - mta_sts
      - bimi
      - unread
      - incomplete
      - checked_at
      - share_url
      - badge_url
      - cobranca
      description: 'The email security audit of one domain, paid per call: the fields of `GET /api/email-check`.'
    CobrancaDaChamada:
      type: object
      properties:
        via:
          type: string
          description: '`x402`, `credito` or the marketplace that already charged the call.'
        preco_usd:
          type: string
          description: 'The price charged for this call in US dollars, such as `0.01`: at least US$ 0.01 with single x402 payment; the unit price with credit.'
        repetido:
          type: boolean
          description: '`true` when the credit had already paid this request (the same `Idempotency-Key`): nothing was charged again.'
        saldo_usd:
          type: string
          description: The credit balance after the call, such as `$0.99`; includes payment from the account balance.
      required:
      - via
      - preco_usd
      - repetido
      description: The payment of a single call.
    ProblemDetails:
      type: object
      description: RFC 9457 Problem Details error response (`application/problem+json`). Includes stable `code` and backward-compatible `error` and `message` fields; route-specific extension fields (such as `accepts`, `allow`, `retry_after`, or `request_id`) may also be present.
      required:
      - type
      - title
      - status
      - detail
      - instance
      - code
      properties:
        type:
          type: string
          format: uri
          description: URI identifying the problem type, linking to `/errors#<code>` on this host.
        title:
          type: string
          description: Short human-readable summary of the problem type.
        status:
          type: integer
          description: HTTP status code generated for this occurrence.
        detail:
          type: string
          description: Human-readable explanation specific to this occurrence.
        instance:
          type: string
          description: Request path where the error occurred (without query parameters).
        code:
          type: string
          description: Stable machine-readable snake_case error code documented at `/errors`.
        error:
          type: string
          description: Backward-compatible alias of `code` (or protocol reason on x402 402 responses).
        message:
          type: string
          description: Backward-compatible alias of `detail`.
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Use an organisation API key (`mmk_…`) for permitted work in that organisation. Account operations require the shared account session. Paid routes accept a global credit token (`cred_…`). Monthly purchases require a recent human session.
    globalAccount:
      type: apiKey
      in: cookie
      name: __Host-mm-auth
      description: Global session in the product's HttpOnly cookie; writes require exact Origin and X-CSRF-Token.
    contaChaveApi:
      type: http
      scheme: bearer
      bearerFormat: mmk_…
      description: 'Account API key: `Authorization: Bearer mmk_…` or `X-Api-Key: mmk_…`. Created on the account page (API keys), valid only in the product where it was created; it acts as the account (or the organization that owns it).'
    carteiraAgente:
      type: http
      scheme: bearer
      bearerFormat: mmw_…
      description: 'Wallet credential of an agent without an account (`Authorization: Bearer mmw_…`, 30 days, this product only): POST /api/auth/wallet/agent/start, check that the domain and URI of the message are the host and origin that you called, sign the message with the wallet, POST /api/auth/wallet/agent/token. The owner is `x402:<address>`.'
externalDocs:
  url: https://payapi.market/api/commsharbor
  description: PayAPI Market
x-service-info:
  categories:
  - email
  - mailbox-management
  docs:
    homepage: https://commsharbor.com/
    apiReference: https://commsharbor.com/developers
    llms: https://commsharbor.com/llms.txt
    errors: https://commsharbor.com/errors
    pricing: https://commsharbor.com/api/pricing
    billing: https://commsharbor.com/api/billing