CallNode Messaging API

Send and retrieve SMS/MMS messages.

GitHub OpenAPI

Operations 2

POST /api/v1/messages Send an SMS or MMS #
GET /api/v1/messages/{id} Retrieve a message #

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-messaging-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-messaging-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Callnode Io Messaging API
  version: 1.0.0
  description: 'Operations tagged Messaging 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: Messaging
  description: Send and retrieve SMS/MMS messages.
paths:
  /api/v1/messages:
    post:
      tags:
      - Messaging
      summary: Send an SMS or MMS
      description: 'Sends a message from one of your numbers. Supplying `media` makes it an MMS.

        Four gates run in order: number ownership, recipient opt-out status, the TCPA

        window, and carrier registration (10DLC for local numbers, Toll-Free

        Verification for toll-free).'
      operationId: sendMessage
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendMessageRequest'
            example:
              to: '+16135551234'
              from: '+15145550199'
              body: Your demo is confirmed for Wednesday at 10am.
              media: []
              statusWebhookUrl: https://yourcrm.example.com/sms/events
              tcpaOverride: false
              metadata:
                leadId: lead_abc123
      responses:
        '200':
          description: Message accepted by the carrier.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendMessageResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: 'Blocked by a gate: `tcpa_window_violation`, `recipient_opted_out`,

            `campaign_not_registered` (local), `tollfree_not_verified` (toll-free),

            or `policy_blocked` when the status webhook or the from-number''s

            messaging webhook points at a service CallNode identifies as fraud

            tooling.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
    servers:
    - url: https://api.callnode.io
      description: Production
  /api/v1/messages/{id}:
    get:
      tags:
      - Messaging
      summary: Retrieve a message
      operationId: getMessage
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          example: cmpt5ec0w00022hb2etd67258
      responses:
        '200':
          description: The message, including its latest delivery status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://api.callnode.io
      description: Production
components:
  responses:
    BadRequest:
      description: Malformed request or failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: No such resource on this account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit exceeded. See the rate-limit response headers.
      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'
  schemas:
    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
    E164:
      type: string
      pattern: ^\+[1-9]\d{6,14}$
      description: Plus sign followed by 7–15 digits.
      example: '+16135551234'
    SendMessageResponse:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          example: sent
        cost:
          type: number
          example: 0.01
        segments:
          type: integer
          example: 1
        idempotencyReplay:
          type: boolean
          description: True when this response replays an earlier request with the same idempotency key.
    SendMessageRequest:
      type: object
      required:
      - to
      - from
      properties:
        to:
          $ref: '#/components/schemas/E164'
        from:
          allOf:
          - $ref: '#/components/schemas/E164'
          description: 'A number you own. For SMS/MMS it must be carrier-registered: associated with

            your 10DLC campaign (local) or Toll-Free Verified (toll-free).

            '
        body:
          type: string
          description: Message text. Required unless `media` is supplied.
        media:
          type: array
          description: 'Any entry makes this an MMS. Each entry is a public URL or the file

            itself as a base64 data URL (`data:image/png;base64,...`). JPG, PNG,

            GIF, WebP, MP4 and PDF; up to 5 MB each. CallNode stores a copy and

            delivers from its own URL. An inline file of an unsupported type or

            size is a 400 `invalid_media`.

            '
          items:
            type: string
            format: uri
        statusWebhookUrl:
          type: string
          format: uri
          description: URL we POST delivery status updates to.
        tcpaOverride:
          type: boolean
          default: false
        metadata:
          type: object
    Message:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
          enum:
          - queued
          - sent
          - delivered
          - failed
        from:
          $ref: '#/components/schemas/E164'
        to:
          $ref: '#/components/schemas/E164'
        messageType:
          type: string
          enum:
          - sms
          - mms
        segments:
          type: integer
        cost:
          type: number
        errorCode:
          type:
          - string
          - 'null'
        errorMessage:
          type:
          - string
          - 'null'
        deliveredAt:
          type:
          - string
          - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
        metadata:
          type: object
  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