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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/sending-dev:sending-dev-emails-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
openapi: 3.2.0
info:
title: Sending.dev Emails 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: Emails
description: Transactional email sending.
paths:
/emails:
post:
tags:
- Emails
summary: Send a transactional email
description: 'Queues a transactional email (idempotent on `idempotencyKey`). Every address field accepts both `a@b.com` and `Name `; `to`, `cc` and `bcc` also accept multiple recipients, as an array or comma-separated in the same string (at most 50 per message, one quota unit each). Required scope: `email:send`.'
security:
- bearerAuth: []
x-required-scope:
- email:send
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SendEmailInput'
responses:
'200':
description: Send already processed for this idempotencyKey.
content:
application/json:
schema:
$ref: '#/components/schemas/SendResult'
'202':
description: Email 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'
'404':
description: '`templateId` does not exist for the tenant (`template_not_found`).'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: 'Recipient is suppressed: bounce/complaint/unsubscribe (`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: postEmails
x-operation-id-source: derived
get:
tags:
- Emails
summary: List sends with engagement
description: 'Emails sent by the workspace (service emails excluded), newest first, with the per-row engagement summary: human and proxy opens, clicks, content clicks, last link. Same filters as the dashboard list: `campaignId`, `contactId`, `status`, `engagement` (clicked, opened without clicking, not opened among delivered, bounced, unsubscribed), `q` on recipient and subject, `since`. Required scope: `emails:read` or `email:send`.'
security:
- bearerAuth: []
x-required-scope:
- emails:read
- email:send
parameters:
- schema:
type: string
format: uuid
required: false
name: campaignId
in: query
- schema:
type: string
format: uuid
required: false
name: contactId
in: query
- schema:
type: string
enum:
- queued
- sent
- delivered
- failed
- bounced
required: false
name: status
in: query
- schema:
type: string
enum:
- clicked
- opened_not_clicked
- not_opened
- bounced
- unsubscribed
required: false
name: engagement
in: query
- schema:
type: string
description: Search recipient and subject.
required: false
name: q
in: query
- schema:
type: string
description: 'ISO 8601: only sends from this date.'
required: false
name: since
in: query
- schema:
type: integer
minimum: 1
maximum: 100
description: Default 25.
required: false
name: limit
in: query
- schema:
type:
- integer
- 'null'
minimum: 0
required: false
name: offset
in: query
responses:
'200':
description: Send list.
content:
application/json:
schema:
$ref: '#/components/schemas/EmailList'
'401':
description: Missing or invalid token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Insufficient scope.
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
'422':
description: Invalid input.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationError'
operationId: getEmails
x-operation-id-source: derived
/emails/batch:
post:
tags:
- Emails
summary: Send up to 100 emails in one request
description: 'Queues several transactional sends in a single request. The outcome is PARTIAL: the 207 response carries one result per item, aligned by index, and an invalid item does not block the others. Idempotency applies per item (`idempotencyKey`), so a retried batch does not produce duplicate sends. It counts as a single request for the rate limit. Required scope: `email:send`.'
security:
- bearerAuth: []
x-required-scope:
- email:send
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SendEmailBatchInput'
responses:
'207':
description: Per-item outcomes (accepted and failed together).
content:
application/json:
schema:
$ref: '#/components/schemas/SendEmailBatchResult'
'401':
description: Missing or invalid token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Insufficient scope.
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
'422':
description: Invalid input.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationError'
operationId: postEmailsBatch
x-operation-id-source: derived
/emails/{id}:
get:
tags:
- Emails
summary: Status of a send
description: 'Metadata, engagement summary, clicked links (by canonical URL, with role: logo, button, text...) and event timeline of a message. On clicks every event carries `linkUrl`, `linkId` and `linkRole`: three clicks on the logo are not interest in the content. Required scope: `emails:read` or `email:send`.'
security:
- bearerAuth: []
parameters:
- schema:
type: string
description: Message ID (the `id` field of the send response).
required: true
name: id
in: path
responses:
'200':
description: Message status.
content:
application/json:
schema:
$ref: '#/components/schemas/MessageStatus'
'401':
description: Missing or invalid token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Insufficient scope.
content:
application/json:
schema:
$ref: '#/components/schemas/ForbiddenError'
'404':
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getEmailsById
x-operation-id-source: derived
components:
schemas:
EmailClickedLink:
type: object
properties:
url:
type: string
canonicalUrl:
type: string
description: 'Without utm_* and trailing slash: the grouping key.'
role:
type:
- string
- 'null'
isContent:
type: boolean
description: '`false` for logo, images, header/footer and social links: not interest in the text.'
count:
type: integer
lastAt:
type: string
format: date-time
example: '2026-06-30T12:00:00.000Z'
required:
- url
- canonicalUrl
- role
- isContent
- count
- lastAt
SendEmailBatchResult:
type: object
properties:
accepted:
type: integer
failed:
type: integer
results:
type: array
items:
$ref: '#/components/schemas/BatchItemResult'
required:
- accepted
- failed
- results
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()`.'
EmailListRow:
type: object
properties:
id:
type: string
format: uuid
status:
type: string
to:
type:
- string
- 'null'
from:
type:
- string
- 'null'
subject:
type:
- string
- 'null'
kind:
type: string
enum:
- transactional
- campaign
- automation
description: Origin of the send.
campaignId:
type:
- string
- 'null'
format: uuid
enrollmentId:
type:
- string
- 'null'
format: uuid
contactId:
type:
- string
- 'null'
format: uuid
createdAt:
type: string
format: date-time
example: '2026-06-30T12:00:00.000Z'
engagement:
$ref: '#/components/schemas/MessageEngagement'
required:
- id
- status
- to
- from
- subject
- createdAt
- engagement
Error:
type: object
properties:
error:
type: string
example: not_found
message:
type: string
required:
- error
description: 'Generic error: snake_case code in `error`.'
BatchItemResult:
type: object
properties:
index:
type: integer
description: Position in the request's `emails` array.
status:
type: string
enum:
- accepted
- failed
id:
type: string
duplicate:
type: boolean
description: 'Already accepted with this idempotencyKey: not an error.'
droppedRecipients:
type: array
items:
type: object
properties:
address:
type: string
reason:
type: string
required:
- address
- reason
description: Copies excluded because they are suppressed.
error:
type: object
properties:
code:
type: string
message:
type: string
required:
- code
required:
- index
- status
SendEmailInput:
type: object
properties:
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
description: 'Plain-text body. With html it is the multipart alternative; alone (no html, no templateId) it sends a text-only email: no open tracking, links left as written.'
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: 'Visible copies (Cc header). 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: 'Hidden copies, in no header. 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:
- to
- from
- idempotencyKey
SendEmailBatchInput:
type: object
properties:
emails:
type: array
items:
type: object
properties:
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
description: 'Plain-text body. With html it is the multipart alternative; alone (no html, no templateId) it sends a text-only email: no open tracking, links left as written.'
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: 'Visible copies (Cc header). 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: 'Hidden copies, in no header. 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:
- to
- from
- idempotencyKey
minItems: 1
maxItems: 100
description: From 1 to 100 sends. Each item is a complete SendEmailInput.
required:
- emails
MessageStatus:
type: object
properties:
id:
type: string
format: uuid
status:
type: string
example: sent
channel:
type: string
to:
type:
- string
- 'null'
toAddresses:
type: array
items:
type: string
from:
type:
- string
- 'null'
subject:
type:
- string
- 'null'
provider:
type:
- string
- 'null'
providerMessageId:
type:
- string
- 'null'
idempotencyKey:
type: string
kind:
type: string
enum:
- transactional
- campaign
- automation
description: Origin of the send.
campaignId:
type:
- string
- 'null'
format: uuid
enrollmentId:
type:
- string
- 'null'
format: uuid
contactId:
type:
- string
- 'null'
format: uuid
attachments:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
filename:
type: string
contentType:
type: string
size:
type: integer
required:
- id
- filename
- contentType
- size
createdAt:
type: string
format: date-time
example: '2026-06-30T12:00:00.000Z'
engagement:
$ref: '#/components/schemas/MessageEngagement'
links:
type: array
items:
$ref: '#/components/schemas/EmailClickedLink'
description: Clicked links (human clicks), grouped by canonical URL.
events:
type: array
items:
$ref: '#/components/schemas/MessageEvent'
required:
- id
- status
EmailList:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/EmailListRow'
total:
type: integer
limit:
type: integer
offset:
type: integer
required:
- data
- total
- limit
- offset
MessageEngagement:
type: object
properties:
opensHuman:
type: integer
opensMachine:
type: integer
description: 'Non-human opens (Apple MPP, Gmail proxy, scanners): never a KPI.'
clicks:
type: integer
description: Human clicks, on any link.
contentClicks:
type: integer
description: 'Human clicks on content: excludes logo, images, domain chrome and social links.'
lastLinkUrl:
type:
- string
- 'null'
lastLinkRole:
type:
- string
- 'null'
links:
type: array
items:
type: string
description: Distinct clicked URLs (raw).
unsubscribed:
type: boolean
bounced:
type: boolean
lastEventAt:
type:
- string
- 'null'
format: date-time
example: '2026-06-30T12:00:00.000Z'
required:
- opensHuman
- opensMachine
- clicks
- contentClicks
- lastLinkUrl
- lastLinkRole
- links
- unsubscribed
- bounced
- lastEventAt
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).
SendResult:
type: object
properties:
id:
type: string
status:
type: string
example: queued
idempotencyKey:
type: string
required:
- status
MessageEvent:
type: object
properties:
type:
type: string
example: delivered
classification:
type:
- string
- 'null'
description: 'human | machine | prefetch | bot: only `human` counts as engagement.'
createdAt:
type: string
format: date-time
example: '2026-06-30T12:00:00.000Z'
linkUrl:
type:
- string
- 'null'
description: 'Clicks only: the original destination.'
linkId:
type:
- string
- 'null'
description: Link id inside the email (block id, or positional `l0`, `l1`...).
linkRole:
type:
- string
- 'null'
description: 'Role of the clicked link: logo | image | cta | text | social | video | chrome. `null` if not classified.'
required:
- type
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.'