Sending Messages API
Multi-channel transactional sending (email, WhatsApp, Telegram).
Multi-channel transactional sending (email, WhatsApp, Telegram).
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/sending-dev:sending-dev-messages-api"
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.
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: 3.2.0
info:
title: Sending.dev Messages API
version: 1.0.0
description: 'Public REST API of Sending.dev (MCP-native orchestrator for email + WhatsApp + Telegram).
## Authentication
Every request requires `Authorization: Bearer sk_...` (workspace API key). The `tenantId` is always derived from the key.
## Idempotency
Sends require an `idempotencyKey` (min 8 characters) to prevent duplicates on retries.'
contact:
name: Sending.dev
url: https://sending.dev
servers:
- url: https://sending.dev/api/v1
description: Production
- url: http://localhost:3000/api/v1
description: Local development
security:
- bearerAuth: []
tags:
- name: Messages
description: Multi-channel transactional sending (email, WhatsApp, Telegram).
paths:
/messages:
post:
tags:
- Messages
summary: Send a multi-channel transactional message
description: 'Unified transactional send over email, WhatsApp or Telegram (discriminated union on `channel`). Required scope: `email:send` or `messages:send`. `email:send` for the email channel, `messages:send` for WhatsApp/Telegram.'
security:
- bearerAuth: []
x-required-scope:
- email:send
- messages:send
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SendMessageInput'
responses:
'200':
description: Send already processed for this idempotencyKey.
content:
application/json:
schema:
$ref: '#/components/schemas/SendResult'
'202':
description: Message queued.
content:
application/json:
schema:
$ref: '#/components/schemas/SendResult'
'401':
description: Missing or invalid token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Plan quota exceeded.
content:
application/json:
schema:
$ref: '#/components/schemas/QuotaError'
'403':
description: Insufficient scope.
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
'409':
description: Recipient is suppressed for the channel (`suppressed`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Invalid input.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationError'
'502':
description: Upstream provider error (e.g. SES).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postMessages
x-operation-id-source: derived
components:
schemas:
ValidationError:
type: object
properties:
error:
type: object
properties:
formErrors:
type: array
items:
type: string
fieldErrors:
type: object
additionalProperties:
type: array
items:
type: string
required:
- formErrors
- fieldErrors
required:
- error
description: 'Zod validation failed: shape of `ZodError.flatten()`.'
Error:
type: object
properties:
error:
type: string
example: not_found
message:
type: string
required:
- error
description: 'Generic error: snake_case code in `error`.'
QuotaError:
type: object
properties:
error:
type: string
example: quota_exceeded
message:
type: string
resource:
type: string
limit:
type: number
used:
type: number
remaining:
type: number
plan:
type: string
required:
- error
description: Plan limit exceeded (entitlement).
SendMessageInput:
oneOf:
- type: object
properties:
channel:
type: string
enum:
- email
to:
anyOf:
- type: string
- type: array
items:
type: string
maxItems: 50
description: 'Email recipients (To header). One or more recipients: ''a@b.com'', ''Name <a@b.com>'', several comma-separated addresses, or an array.'
from:
type: string
subject:
type: string
minLength: 1
html:
type: string
text:
type: string
replyTo:
anyOf:
- type: string
- type: array
items:
type: string
minItems: 1
maxItems: 10
description: 'Reply-To: one or more addresses (''a@b.com'', ''Name <a@b.com>'', comma-separated or an array, at most 10). A plain "Reply" goes to all of them.'
cc:
anyOf:
- type: string
- type: array
items:
type: string
maxItems: 50
description: 'One or more recipients: ''a@b.com'', ''Name <a@b.com>'', several comma-separated addresses, or an array.'
bcc:
anyOf:
- type: string
- type: array
items:
type: string
maxItems: 50
description: 'One or more recipients: ''a@b.com'', ''Name <a@b.com>'', several comma-separated addresses, or an array.'
templateId:
type: string
minLength: 1
variables:
type: object
additionalProperties: {}
attachments:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
description: Id of an attachment already uploaded with POST /v1/attachments.
filename:
type: string
minLength: 1
maxLength: 255
description: File name shown to the recipient. Required with `content` or `url`.
content:
type: string
minLength: 1
description: File content in base64, without the `data:` prefix.
url:
type: string
format: uri
description: Public https URL to download the file from (private hosts are blocked).
contentType:
type: string
minLength: 3
maxLength: 255
description: Content-Type override; when absent, it is inferred from the file name.
contentId:
type: string
minLength: 1
maxLength: 200
description: 'Content-ID for inline images referenced in the HTML as `cid:<value>`: the attachment becomes `inline` instead of appearing at the end of the message.'
maxItems: 20
description: 'Email attachments (max 20, 10 MB each, 25 MB in total). For each item provide exactly one source: `id`, `content` (base64) or `url`.'
idempotencyKey:
type: string
minLength: 8
disableTracking:
type: boolean
default: false
disableUtm:
type: boolean
default: false
required:
- channel
- to
- from
- idempotencyKey
- type: object
properties:
channel:
type: string
enum:
- whatsapp
to:
type: string
pattern: ^\+?\d{6,15}$
text:
type: string
minLength: 1
templateId:
type: string
minLength: 1
variables:
type: object
additionalProperties: {}
metaTemplate:
type: object
properties:
name:
type: string
minLength: 1
params:
type: array
items:
type: string
default: []
language:
type: string
minLength: 2
required:
- name
idempotencyKey:
type: string
minLength: 8
required:
- channel
- to
- idempotencyKey
- type: object
properties:
channel:
type: string
enum:
- telegram
to:
type: string
minLength: 1
text:
type: string
minLength: 1
templateId:
type: string
minLength: 1
variables:
type: object
additionalProperties: {}
idempotencyKey:
type: string
minLength: 8
required:
- channel
- to
- idempotencyKey
SendResult:
type: object
properties:
id:
type: string
status:
type: string
example: queued
idempotencyKey:
type: string
required:
- status
ForbiddenError:
type: object
properties:
error:
type: string
enum:
- forbidden
need:
type: string
example: contacts:write
required:
- error
description: Insufficient scope; `need` names the missing scope.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Workspace API key in the `sk_...` format, passed as `Authorization: Bearer sk_...`. The `tenantId` is always derived from the key, never from a request parameter.'