Sending Domains API
Sending domain onboarding and verification.
Sending domain onboarding and verification.
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-domains-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 Domains 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: Domains
description: Sending domain onboarding and verification.
paths:
/domains:
get:
tags:
- Domains
summary: List domains
description: Requires authentication only (any valid API key).
security:
- bearerAuth: []
responses:
'200':
description: Workspace domains.
content:
application/json:
schema:
$ref: '#/components/schemas/DomainList'
'401':
description: Missing or invalid token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getDomains
x-operation-id-source: derived
post:
tags:
- Domains
summary: Register a domain on SES
description: 'SES onboarding (Easy DKIM + MAIL-FROM); returns the DNS records to publish. Required scope: `domains:write`.'
security:
- bearerAuth: []
x-required-scope:
- domains:write
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateDomain'
responses:
'200':
description: Domain already exists.
content:
application/json:
schema:
$ref: '#/components/schemas/DomainCreated'
'201':
description: Domain registered (pending).
content:
application/json:
schema:
$ref: '#/components/schemas/DomainCreated'
'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'
'502':
description: Upstream provider error (e.g. SES).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postDomains
x-operation-id-source: derived
/domains/{id}:
get:
tags:
- Domains
summary: Get a domain
description: Requires authentication only (any valid API key).
security:
- bearerAuth: []
parameters:
- schema:
type: string
description: Domain ID.
required: true
name: id
in: path
responses:
'200':
description: Domain.
content:
application/json:
schema:
$ref: '#/components/schemas/Domain'
'401':
description: Missing or invalid token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getDomainsById
x-operation-id-source: derived
patch:
tags:
- Domains
summary: Default sender name and mailbox
description: '`defaultFromName` is the display name mail clients show for emails sent from this domain when the `from` is a bare address; a `from` with an explicit name wins over the default.
`defaultFromAddress` is the mailbox sends leave from when they do not declare one, i.e. **automations**, which otherwise use `no-reply@` · an address that says not to reply under the name of a person who instead asks to be contacted. It must be on this domain.
Only the fields present are touched. Required scope: `domains:write`.'
security:
- bearerAuth: []
x-required-scope:
- domains:write
parameters:
- schema:
type: string
description: Domain ID.
required: true
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateDomain'
responses:
'200':
description: Domain updated.
content:
application/json:
schema:
$ref: '#/components/schemas/Domain'
'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'
'422':
description: Invalid input.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationError'
operationId: patchDomainsById
x-operation-id-source: derived
/domains/{id}/verify:
post:
tags:
- Domains
summary: Check the domain status on SES
description: Queries SES and updates the status (idempotent). Requires authentication only (any valid API key).
security:
- bearerAuth: []
parameters:
- schema:
type: string
description: Domain ID.
required: true
name: id
in: path
responses:
'200':
description: Status updated.
content:
application/json:
schema:
$ref: '#/components/schemas/DomainVerify'
'401':
description: Missing or invalid token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: Upstream provider error (e.g. SES).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postDomainsByIdVerify
x-operation-id-source: derived
/domains/{id}/inbound:
post:
tags:
- Domains
summary: Enable inbound receiving on the domain
description: Requires a verified domain. Requires authentication only (any valid API key).
security:
- bearerAuth: []
parameters:
- schema:
type: string
description: Domain ID.
required: true
name: id
in: path
responses:
'200':
description: Inbound enabled.
content:
application/json:
schema:
$ref: '#/components/schemas/DomainInbound'
'401':
description: Missing or invalid token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: State conflict (e.g. duplicate).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: Upstream provider error (e.g. SES).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postDomainsByIdInbound
x-operation-id-source: derived
delete:
tags:
- Domains
summary: Disable inbound receiving on the domain
description: Requires authentication only (any valid API key).
security:
- bearerAuth: []
parameters:
- schema:
type: string
description: Domain ID.
required: true
name: id
in: path
responses:
'200':
description: Inbound disabled.
content:
application/json:
schema:
$ref: '#/components/schemas/DomainInbound'
'401':
description: Missing or invalid token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'502':
description: Upstream provider error (e.g. SES).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: deleteDomainsByIdInbound
x-operation-id-source: derived
components:
schemas:
DomainVerify:
type: object
properties:
id:
type: string
format: uuid
status:
type: string
detail:
type: string
required:
- id
- status
CreateDomain:
type: object
properties:
name:
type: string
minLength: 3
region:
type: string
default: eu-west-1
required:
- name
DnsRecord:
type: object
properties:
type:
type: string
name:
type: string
value:
type: string
required:
- type
- name
- value
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()`.'
DomainList:
type: object
properties:
domains:
type: array
items:
$ref: '#/components/schemas/Domain'
required:
- domains
UpdateDomain:
type: object
properties:
defaultFromName:
type:
- string
- 'null'
description: 'Default sender name of the domain: display name applied to sends whose `from` is a bare address (hello@acme.com → Federico <hello@acme.com>). null or an empty string removes it.'
example: Federico
defaultFromAddress:
type:
- string
- 'null'
description: 'Default sender mailbox: sends that do not declare one leave from here, i.e. automations, which otherwise use `no-reply@<domain>`. Must be an address on THIS domain (otherwise 422 `invalid_from_address`: from another domain the send would not pass the gate). null reverts to `no-reply@`.'
example: hello@acme.com
Error:
type: object
properties:
error:
type: string
example: not_found
message:
type: string
required:
- error
description: 'Generic error: snake_case code in `error`.'
Domain:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
status:
type: string
region:
type: string
inboundEnabled:
type: boolean
defaultFromName:
type:
- string
- 'null'
defaultFromAddress:
type:
- string
- 'null'
createdAt:
type: string
format: date-time
example: '2026-06-30T12:00:00.000Z'
required:
- id
- name
- status
DomainInbound:
type: object
properties:
id:
type: string
format: uuid
inboundEnabled:
type: boolean
mx:
type: string
required:
- id
- inboundEnabled
DomainCreated:
type: object
properties:
id:
type: string
format: uuid
status:
type: string
dnsRecords:
type: array
items:
$ref: '#/components/schemas/DnsRecord'
required:
- id
- status
- dnsRecords
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.'