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-email-rules-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 Email Rules 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: Email Rules
description: Allow/block rules for inbound mail.
paths:
/email-rules:
get:
tags:
- Email Rules
summary: List inbound allow/block rules
description: 'Required scope: `inbox:read`. (`inbox:*` scope cannot be assigned from the UI: it requires a full-access `*` key).'
security:
- bearerAuth: []
x-required-scope:
- inbox:read
responses:
'200':
description: Workspace rules.
content:
application/json:
schema:
$ref: '#/components/schemas/EmailRuleList'
'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'
operationId: getEmailRules
x-operation-id-source: derived
post:
tags:
- Email Rules
summary: Create an allow/block rule
description: 'Precedence allow > block. Required scope: `inbox:write`. (`inbox:*` scope cannot be assigned from the UI: it requires a full-access `*` key).'
security:
- bearerAuth: []
x-required-scope:
- inbox:write
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateEmailRuleInput'
responses:
'201':
description: Rule created.
content:
application/json:
schema:
$ref: '#/components/schemas/EmailRuleEnvelope'
'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'
'409':
description: State conflict (e.g. duplicate).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Invalid input.
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationError'
operationId: postEmailRules
x-operation-id-source: derived
/email-rules/{id}:
delete:
tags:
- Email Rules
summary: Delete a rule
description: 'Required scope: `inbox:write`. (`inbox:*` scope cannot be assigned from the UI: it requires a full-access `*` key).'
security:
- bearerAuth: []
x-required-scope:
- inbox:write
parameters:
- schema:
type: string
description: Rule ID.
required: true
name: id
in: path
responses:
'200':
description: Rule deleted.
content:
application/json:
schema:
$ref: '#/components/schemas/Ok'
'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: deleteEmailRulesById
x-operation-id-source: derived
components:
schemas:
Ok:
type: object
properties:
ok:
type: boolean
enum:
- true
required:
- ok
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.
EmailRuleList:
type: object
properties:
rules:
type: array
items:
$ref: '#/components/schemas/EmailRule'
required:
- rules
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`.'
EmailRule:
type: object
properties:
id:
type: string
format: uuid
action:
type: string
matchType:
type: string
value:
type: string
note:
type:
- string
- 'null'
createdAt:
type: string
format: date-time
example: '2026-06-30T12:00:00.000Z'
required:
- id
- action
- matchType
- value
CreateEmailRuleInput:
type: object
properties:
action:
type: string
enum:
- allow
- block
matchType:
type: string
enum:
- email
- domain
value:
type: string
minLength: 1
maxLength: 320
note:
type: string
maxLength: 200
required:
- action
- matchType
- value
EmailRuleEnvelope:
type: object
properties:
rule:
$ref: '#/components/schemas/EmailRule'
required:
- rule
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.'