CallNode Email API

Programmable email: verify a sending domain you control, send transactional email from any address on it, list messages, and receive delivery events (delivered, delayed, bounced, complained, failed) signed to your webhook. Billed per recipient accepted for delivery; message bodies are not stored.

GitHub OpenAPI

Operations 8

POST /api/v1/email/messages Send an email #
GET /api/v1/email/messages List messages #
GET /api/v1/email/messages/{id} Retrieve a message with its events #
POST /api/v1/email/domains Add a sending domain #
GET /api/v1/email/domains List sending domains #
GET /api/v1/email/domains/{id} Retrieve a sending domain #
DELETE /api/v1/email/domains/{id} Remove a sending domain #
POST /api/v1/email/domains/{id}/verify Check the DNS records now #

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/callnode-io:callnode-io-email-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

callnode-io-email-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Callnode Io Email API
  version: 1.0.0
  description: 'Operations tagged Email across 2 of this provider''s published API definitions: callnode-openapi.yaml, callnode-io-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.callnode.io
  description: Production
security:
- ApiKeyAuth: []
  TimestampAuth: []
  SignatureAuth: []
tags:
- name: Email
  description: 'Programmable email: verify a sending domain you control, send transactional

    email from any address on it, list messages, and receive delivery events

    (delivered, delayed, bounced, complained, failed) signed to your webhook.

    Billed per recipient accepted for delivery; message bodies are not stored.'
paths:
  /api/v1/email/messages:
    post:
      tags:
      - Email
      summary: Send an email
      description: 'Send one message to up to 50 recipients (to + cc + bcc) from an address on one

        of your active sending domains. Gates run in order: field validation, business

        verification, the From domain''s status, idempotency, a per-recipient rate on

        your plan, and a balance of at least `recipients × rate`. The message is handed

        to the sending infrastructure and answered 202 as `sent`; the charge happens on

        acceptance. A `cn_test_` key runs every gate and then simulates. Bodies are not

        stored after the handoff.'
      operationId: sendEmail
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendEmailRequest'
            example:
              from: Acme Billing <billing@mail.acme.com>
              to:
              - dana@example.com
              subject: Your October invoice
              html: <p>Hi Dana, your invoice for October is attached.</p>
              text: Hi Dana, your invoice for October is attached.
              reply_to: accounts@mail.acme.com
              headers:
                X-Acme-Invoice: inv_2041
              attachments:
              - filename: invoice-2041.pdf
                content: JVBERi0xLjQK...
                content_type: application/pdf
              tags:
              - name: campaign
                value: invoices
              statusWebhookUrl: https://yourapp.example.com/email/events
              metadata:
                invoiceId: inv_2041
      responses:
        '202':
          description: Accepted by the sending infrastructure; `status` is `sent` and moves on as delivery events arrive. `billing` says how the message was priced.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailMessage'
        '200':
          description: 'Replay of an earlier request with the same `X-Idempotency-Key` (`replay: true`).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailMessage'
        '400':
          description: '`validation_error` (an `errors` array names each problem: a missing or malformed field, a `reply_to` off the From domain, or, on a live send, a recipient on a reserved documentation domain such as example.com) or `provider_rejected` (the message as built was refused; nothing charged).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: '`insufficient_balance`: balance below recipients × rate; `balance` and `required` carry the amounts.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: '`account_not_verified`, `email_not_enabled` (no per-recipient rate on your plan), `from_domain_not_owned` or `from_domain_not_verified` (the domain is not active, or its records failed the check run before this send: `verificationError` carries the reason, and the next send after the record is back re-checks the domain).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: '`provider_rate_limited` (retry after the `retryAfter` hint, seconds) or `new_domain_daily_limit` (a domain registered less than 30 days ago has sent the allowance for today; `retryAfter` and `resetsAt` point at the reset, 00:00 UTC; nothing charged).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: '`provider_unavailable`: the sending infrastructure did not accept the handoff; the message is recorded as `failed`, nothing was charged.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: '`email_unavailable`: email sending is not configured on the platform yet.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    get:
      tags:
      - Email
      summary: List messages
      description: Newest first, keyset-paginated. Test keys list test messages only.
      operationId: listEmailMessages
      parameters:
      - name: status
        in: query
        schema:
          type: string
          enum:
          - queued
          - sent
          - delivered
          - delayed
          - bounced
          - complained
          - failed
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 25
      - name: cursor
        in: query
        description: The `nextCursor` of the previous page.
        schema:
          type: string
      responses:
        '200':
          description: A page of messages.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/EmailMessage'
                  nextCursor:
                    type:
                    - string
                    - 'null'
        '401':
          $ref: '#/components/responses/Unauthorized'
    servers:
    - url: https://api.callnode.io
      description: Production
  /api/v1/email/messages/{id}:
    get:
      tags:
      - Email
      summary: Retrieve a message with its events
      operationId: getEmailMessage
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          example: cmh2x9d4k0003s8w2q1f7a2bc
      responses:
        '200':
          description: The message; `events` lists `{ type, at, detail }` in the order they occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailMessage'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://api.callnode.io
      description: Production
  /api/v1/email/domains:
    post:
      tags:
      - Email
      summary: Add a sending domain
      description: 'Registers a domain you control and answers 201 with the DNS records to publish

        (DKIM TXT, SPF TXT, return-path CNAME). Adding a domain the account already holds

        replays it (200). Requires business verification and the Email API priced on your plan.'
      operationId: createEmailDomain
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - domain
              properties:
                domain:
                  type: string
                  description: The hostname you will send from, e.g. `mail.acme.com`. Ours and public mailbox providers are refused.
            example:
              domain: mail.acme.com
      responses:
        '201':
          description: Created, `pending`, with the records to publish.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailDomain'
        '200':
          description: 'The account already holds this domain (`replay: true`).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailDomain'
        '400':
          description: '`validation_error` or `domain_not_allowed`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: '`account_not_verified` or `email_not_enabled`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '`domain_taken` (registered on another account) or `too_many_domains` (10 per account).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    get:
      tags:
      - Email
      summary: List sending domains
      operationId: listEmailDomains
      responses:
        '200':
          description: Every sending domain on the account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/EmailDomain'
        '401':
          $ref: '#/components/responses/Unauthorized'
    servers:
    - url: https://api.callnode.io
      description: Production
  /api/v1/email/domains/{id}:
    get:
      tags:
      - Email
      summary: Retrieve a sending domain
      operationId: getEmailDomain
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: refresh
        in: query
        description: When set, the status and the records' statuses are re-read from the sending infrastructure first, and the answer carries `newDomainLimit`.
        schema:
          type: string
      responses:
        '200':
          description: The domain.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailDomain'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      tags:
      - Email
      summary: Remove a sending domain
      description: Messages already sent keep their history.
      operationId: deleteEmailDomain
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Removed.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://api.callnode.io
      description: Production
  /api/v1/email/domains/{id}/verify:
    post:
      tags:
      - Email
      summary: Check the DNS records now
      description: A real lookup against public DNS. Answers the domain with its new status; a failed check carries `verificationError`.
      operationId: verifyEmailDomain
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The domain after the check (`active`, `verifying` or `failed`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailDomain'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          description: '`verify_rate_limited`: wait a minute.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.callnode.io
      description: Production
components:
  schemas:
    EmailDnsRecord:
      type: object
      properties:
        type:
          type: string
          enum:
          - TXT
          description: 'Always TXT: the DKIM key, the SPF entry and the DMARC policy, the three records verification checks. No MX or CNAME is issued (receiving and tracking are off).'
        name:
          type: string
          description: The full host to publish at, such as _dmarc.mail.acme.com.
        value:
          type: string
        priority:
          type: integer
        ttl:
          type: string
          example: Auto
        status:
          type: string
          enum:
          - pending
          - verifying
          - active
          - failed
    Error:
      type: object
      properties:
        error:
          type: string
          description: Stable machine-readable code, e.g. `invalid_from_number`.
        message:
          type: string
          description: Human-readable explanation.
        retryable:
          type: boolean
          description: Whether retrying the identical request could succeed.
      required:
      - error
      - message
    EmailAddressList:
      oneOf:
      - type: string
      - type: array
        items:
          type: string
      description: One address or a list. Each may be `Name <address>` or a bare address.
    EmailMessage:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
          - queued
          - sent
          - delivered
          - delayed
          - bounced
          - complained
          - failed
          description: '`queued` only for the moment the message is being handed over (a list can catch it); the send answers `sent` or `failed`.'
        from:
          type: string
        to:
          type: array
          items:
            type: string
        cc:
          type: array
          items:
            type: string
        bcc:
          type: array
          items:
            type: string
        recipientCount:
          type: integer
          description: What is billed - to + cc + bcc.
        subject:
          type: string
        messageId:
          type:
          - string
          - 'null'
          description: The RFC 5322 Message-ID of the message as sent.
        error:
          type:
          - string
          - 'null'
          description: The receiving server's reason on a bounce or failure.
        costUsd:
          type:
          - number
          - 'null'
        chargeStatus:
          type:
          - string
          - 'null'
          enum:
          - charged
          - skipped
          - insufficient_balance
          - test
          - error
          - null
        statusWebhookUrl:
          type:
          - string
          - 'null'
          format: uri
        tags:
          type:
          - array
          - 'null'
          items:
            type: object
            properties:
              name:
                type: string
              value:
                type: string
        metadata:
          type:
          - object
          - 'null'
        testMode:
          type: boolean
        source:
          type: string
          enum:
          - api
          - dashboard
          - mcp
        sizeBytes:
          type:
          - integer
          - 'null'
          description: Body plus decoded attachments.
        createdAt:
          type: string
          format: date-time
        sentAt:
          type:
          - string
          - 'null'
          format: date-time
        deliveredAt:
          type:
          - string
          - 'null'
          format: date-time
        lastEventAt:
          type:
          - string
          - 'null'
          format: date-time
        events:
          type: array
          description: On the retrieve response only, oldest first.
          items:
            type: object
            properties:
              type:
                type: string
                example: email.delivered
              at:
                type: string
                format: date-time
              detail:
                type:
                - string
                - 'null'
        estimatedCost:
          type:
          - number
          - 'null'
          description: On the send response only - what this message cost at its place on the volume curve.
        billing:
          type:
          - object
          - 'null'
          description: On the send response only - how the message was priced.
          properties:
            recipients:
              type: integer
              description: to + cc + bcc.
            includedRecipients:
              type: integer
              description: How many of them fell inside the plan's included allowance this period.
            billableRecipients:
              type: integer
            perRecipientUsd:
              type: number
              description: The marginal rate applied.
            estimatedCostUsd:
              type: number
              description: The amount charged (the quote
              on a test key).: null
            includedRemaining:
              type: integer
              description: Included recipients left this period after this message.
            periodEndsAt:
              type: string
              format: date-time
              description: When the volume window resets.
        replay:
          type: boolean
          description: On the send response only - true when an idempotency key replayed an earlier send.
    SendEmailRequest:
      type: object
      required:
      - from
      - to
      - subject
      properties:
        from:
          type: string
          description: '`Name <address>` or a bare address on one of your active sending domains.'
        to:
          allOf:
          - $ref: '#/components/schemas/EmailAddressList'
          description: Recipients. With cc and bcc, 50 at most.
        cc:
          $ref: '#/components/schemas/EmailAddressList'
        bcc:
          $ref: '#/components/schemas/EmailAddressList'
        subject:
          type: string
          minLength: 1
          maxLength: 255
        html:
          type: string
          description: The HTML part. `html` or `text` is required; 2 MB together.
        text:
          type: string
          description: The plain-text part.
        reply_to:
          allOf:
          - $ref: '#/components/schemas/EmailAddressList'
          description: 'Where replies go: addresses on exactly the From domain (a subdomain counts as a different domain). A reply-to elsewhere answers 400 validation_error before anything is sent.'
        headers:
          type: object
          additionalProperties:
            type: string
          description: Up to 10 custom headers. Names must start `X-` or `List-`, or be `In-Reply-To` / `References`.
        attachments:
          type: array
          maxItems: 10
          description: 10 MB decoded in all. Executables and scripts are refused.
          items:
            type: object
            required:
            - filename
            - content
            properties:
              filename:
                type: string
                maxLength: 200
              content:
                type: string
                description: Base64 (a data URL is accepted).
              content_type:
                type: string
                example: application/pdf
        tags:
          type: array
          maxItems: 10
          description: Returned on the message and in every webhook. Names starting `cn_` are reserved.
          items:
            type: object
            required:
            - name
            - value
            properties:
              name:
                type: string
                pattern: ^[a-zA-Z0-9_-]{1,256}$
              value:
                type: string
                pattern: ^[a-zA-Z0-9_-]{1,256}$
        statusWebhookUrl:
          type: string
          format: uri
          description: Receives `email.delivered` / `email.delayed` / `email.bounced` / `email.complained` / `email.failed`, signed per attempt with this key's secret (X-Timestamp, X-Signature, X-Event-Source).
        metadata:
          type: object
          description: Up to 4 KB, returned unchanged on the message and in every webhook.
    EmailDomain:
      type: object
      properties:
        id:
          type: string
        domain:
          type: string
          example: mail.acme.com
        status:
          type: string
          enum:
          - pending
          - verifying
          - active
          - failed
        dnsRecords:
          type: array
          items:
            $ref: '#/components/schemas/EmailDnsRecord'
        verificationError:
          type:
          - string
          - 'null'
        verifiedAt:
          type:
          - string
          - 'null'
          format: date-time
        lastCheckedAt:
          type:
          - string
          - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        newDomainLimit:
          type:
          - object
          - 'null'
          description: 'On the create, verify and refresh=1 answers only (absent on plain reads): the per-day cap on a domain registered less than 30 days ago, rising over its first month and reset at 00:00 UTC; null once the domain is not capped.'
          properties:
            ageDays:
              type:
              - integer
              - 'null'
            dailyCap:
              type: integer
            sentToday:
              type:
              - integer
              - 'null'
            remaining:
              type:
              - integer
              - 'null'
            resetsAt:
              type: string
              format: date-time
        replay:
          type: boolean
          description: On the create response only - true when the account already held the domain.
  responses:
    NotFound:
      description: No such resource on this account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, unknown, or badly signed credentials — check the HMAC and the timestamp skew.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    IdempotencyKey:
      name: X-Idempotency-Key
      in: header
      required: false
      description: A UUID. Replaying the same key returns the original result rather than acting twice.
      schema:
        type: string
        format: uuid
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Your API key, e.g. `cn_live_...`.
    TimestampAuth:
      type: apiKey
      in: header
      name: X-Timestamp
      description: Unix seconds as a string, used as the signature prefix.
    SignatureAuth:
      type: apiKey
      in: header
      name: X-Signature
      description: '`hex(HMAC_SHA256(apiSecret, timestamp + "\n" + rawBody))`.'
x-refined-from:
- callnode-openapi.yaml
- callnode-io-openapi.yml