send0 Webhooks API
The Webhooks API from send0 — 6 operation(s) for webhooks.
The Webhooks API from send0 — 6 operation(s) for webhooks.
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/send0-dev:send0-dev-webhooks-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: send0 Webhooks API
version: 1.0.0
description: 'Email inboxes for AI agents: create an address, receive, wait, reply, and get webhooks. https://send0.dev'
license:
name: AGPL-3.0
identifier: AGPL-3.0-only
servers:
- url: https://api.send0.dev
security:
- bearerAuth: []
tags:
- name: Webhooks
paths:
/v1/webhooks:
post:
operationId: createWebhook
summary: Create a webhook
tags:
- Webhooks
x-send0-scope: admin
parameters:
- name: Idempotency-Key
in: header
required: false
description: 'Retry-safe POSTs: same key + same body returns the stored response for 24 hours.'
schema:
type: string
maxLength: 255
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
url:
type: string
maxLength: 2048
events:
default:
- '*'
minItems: 1
maxItems: 20
type: array
items:
type: string
enum:
- message.received
- message.sent
- message.delivered
- message.bounced
- message.complained
- draft.created
- domain.verified
- inbox.suspended
- '*'
inbox_ids:
anyOf:
- minItems: 1
maxItems: 100
type: array
items:
type: string
- type: 'null'
required:
- url
responses:
'201':
description: WebhookWithSecret
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookWithSecret'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Not allowed (scope, policy or account state)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found, or not visible to this key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit (`rate_limited`, see Retry-After) or daily send limit reached
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
get:
operationId: listWebhooks
summary: List webhooks
tags:
- Webhooks
x-send0-scope: admin
parameters:
- name: limit
in: query
required: false
schema:
default: 20
type: integer
minimum: 1
maximum: 100
- name: cursor
in: query
required: false
schema:
type: string
maxLength: 200
responses:
'200':
description: WebhookList
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookList'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Not allowed (scope, policy or account state)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found, or not visible to this key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit (`rate_limited`, see Retry-After) or daily send limit reached
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/webhooks/{webhook_id}:
get:
operationId: getWebhook
summary: Get a webhook
tags:
- Webhooks
x-send0-scope: admin
parameters:
- name: webhook_id
in: path
required: true
description: Webhook id (whk_…)
schema:
type: string
responses:
'200':
description: Webhook
content:
application/json:
schema:
$ref: '#/components/schemas/Webhook'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Not allowed (scope, policy or account state)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found, or not visible to this key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit (`rate_limited`, see Retry-After) or daily send limit reached
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
patch:
operationId: updateWebhook
summary: Update a webhook
tags:
- Webhooks
x-send0-scope: admin
parameters:
- name: webhook_id
in: path
required: true
description: Webhook id (whk_…)
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
url:
type: string
maxLength: 2048
events:
minItems: 1
maxItems: 20
type: array
items:
type: string
enum:
- message.received
- message.sent
- message.delivered
- message.bounced
- message.complained
- draft.created
- domain.verified
- inbox.suspended
- '*'
inbox_ids:
anyOf:
- minItems: 1
maxItems: 100
type: array
items:
type: string
- type: 'null'
status:
type: string
enum:
- enabled
- disabled
responses:
'200':
description: Webhook
content:
application/json:
schema:
$ref: '#/components/schemas/Webhook'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Not allowed (scope, policy or account state)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found, or not visible to this key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit (`rate_limited`, see Retry-After) or daily send limit reached
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
operationId: deleteWebhook
summary: Delete a webhook
tags:
- Webhooks
x-send0-scope: admin
parameters:
- name: webhook_id
in: path
required: true
description: Webhook id (whk_…)
schema:
type: string
responses:
'200':
description: DeletedWebhook
content:
application/json:
schema:
$ref: '#/components/schemas/DeletedWebhook'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Not allowed (scope, policy or account state)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found, or not visible to this key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit (`rate_limited`, see Retry-After) or daily send limit reached
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/webhooks/{webhook_id}/rotate-secret:
post:
operationId: rotateWebhookSecret
summary: Rotate the signing secret
tags:
- Webhooks
x-send0-scope: admin
parameters:
- name: webhook_id
in: path
required: true
description: Webhook id (whk_…)
schema:
type: string
- name: Idempotency-Key
in: header
required: false
description: 'Retry-safe POSTs: same key + same body returns the stored response for 24 hours.'
schema:
type: string
maxLength: 255
responses:
'200':
description: WebhookWithSecret
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookWithSecret'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Not allowed (scope, policy or account state)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found, or not visible to this key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit (`rate_limited`, see Retry-After) or daily send limit reached
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/webhooks/{webhook_id}/test:
post:
operationId: testWebhook
summary: Send a test event
tags:
- Webhooks
x-send0-scope: admin
parameters:
- name: webhook_id
in: path
required: true
description: Webhook id (whk_…)
schema:
type: string
- name: Idempotency-Key
in: header
required: false
description: 'Retry-safe POSTs: same key + same body returns the stored response for 24 hours.'
schema:
type: string
maxLength: 255
responses:
'202':
description: WebhookTestResult
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookTestResult'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Not allowed (scope, policy or account state)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found, or not visible to this key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit (`rate_limited`, see Retry-After) or daily send limit reached
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/webhooks/{webhook_id}/deliveries:
get:
operationId: listDeliveries
summary: List delivery attempts
tags:
- Webhooks
x-send0-scope: admin
parameters:
- name: webhook_id
in: path
required: true
description: Webhook id (whk_…)
schema:
type: string
- name: limit
in: query
required: false
schema:
default: 20
type: integer
minimum: 1
maximum: 100
- name: cursor
in: query
required: false
schema:
type: string
maxLength: 200
- name: status
in: query
required: false
schema:
type: string
enum:
- pending
- succeeded
- failed
responses:
'200':
description: DeliveryList
content:
application/json:
schema:
$ref: '#/components/schemas/DeliveryList'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Not allowed (scope, policy or account state)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found, or not visible to this key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit (`rate_limited`, see Retry-After) or daily send limit reached
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/webhooks/{webhook_id}/deliveries/{delivery_id}/retry:
post:
operationId: retryDelivery
summary: Replay a delivery
tags:
- Webhooks
x-send0-scope: admin
parameters:
- name: webhook_id
in: path
required: true
description: Webhook id (whk_…)
schema:
type: string
- name: delivery_id
in: path
required: true
description: Delivery id (dlv_…)
schema:
type: string
- name: Idempotency-Key
in: header
required: false
description: 'Retry-safe POSTs: same key + same body returns the stored response for 24 hours.'
schema:
type: string
maxLength: 255
responses:
'202':
description: Delivery
content:
application/json:
schema:
$ref: '#/components/schemas/Delivery'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Not allowed (scope, policy or account state)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found, or not visible to this key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limit (`rate_limited`, see Retry-After) or daily send limit reached
headers:
Retry-After:
description: Seconds to wait before retrying
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
WebhookTestResult:
$id: '#/components/schemas/WebhookTestResult'
type: object
properties:
object:
type: string
const: event
id:
type: string
type:
type: string
const: webhook.test
delivery_id:
type: string
required:
- object
- id
- type
- delivery_id
additionalProperties: false
WebhookList:
$id: '#/components/schemas/WebhookList'
type: object
properties:
object:
type: string
const: list
data:
type: array
items:
$ref: '#/components/schemas/Webhook'
next_cursor:
type:
- string
- 'null'
required:
- object
- data
- next_cursor
additionalProperties: false
Error:
$id: '#/components/schemas/Error'
type: object
properties:
error:
type: object
properties:
code:
type: string
description: Stable, machine-readable code, e.g. not_found, recipient_not_allowed
message:
type: string
param:
description: The request field the error is about
type: string
request_id:
type: string
required:
- code
- message
additionalProperties: false
required:
- error
additionalProperties: false
Webhook:
$id: '#/components/schemas/Webhook'
type: object
properties:
object:
type: string
const: webhook
id:
type: string
url:
type: string
events:
type: array
items:
type: string
inbox_ids:
anyOf:
- type: array
items:
type: string
- type: 'null'
status:
type: string
enum:
- enabled
- disabled
created_at:
type: string
format: date-time
required:
- object
- id
- url
- events
- inbox_ids
- status
- created_at
additionalProperties: false
WebhookWithSecret:
$id: '#/components/schemas/WebhookWithSecret'
type: object
properties:
object:
type: string
const: webhook
id:
type: string
url:
type: string
events:
type: array
items:
type: string
inbox_ids:
anyOf:
- type: array
items:
type: string
- type: 'null'
status:
type: string
enum:
- enabled
- disabled
created_at:
type: string
format: date-time
secret:
type: string
description: Signing secret, shown once
required:
- object
- id
- url
- events
- inbox_ids
- status
- created_at
- secret
additionalProperties: false
DeletedWebhook:
$id: '#/components/schemas/DeletedWebhook'
type: object
properties:
object:
type: string
const: webhook
id:
type: string
url:
type: string
events:
type: array
items:
type: string
inbox_ids:
anyOf:
- type: array
items:
type: string
- type: 'null'
status:
type: string
enum:
- enabled
- disabled
created_at:
type: string
format: date-time
deleted:
type: boolean
const: true
required:
- object
- id
- url
- events
- inbox_ids
- status
- created_at
- deleted
additionalProperties: false
Delivery:
$id: '#/components/schemas/Delivery'
type: object
properties:
object:
type: string
const: delivery
id:
type: string
webhook_id:
type: string
event_id:
type: string
event_type:
type:
- string
- 'null'
status:
type: string
enum:
- pending
- succeeded
- failed
attempts:
type: integer
last_status_code:
anyOf:
- type: integer
- type: 'null'
last_error:
type:
- string
- 'null'
last_duration_ms:
anyOf:
- type: integer
- type: 'null'
next_attempt_at:
anyOf:
- type: string
format: date-time
- type: 'null'
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
required:
- object
- id
- webhook_id
- event_id
- event_type
- status
- attempts
- last_status_code
- last_error
- last_duration_ms
- next_attempt_at
- created_at
- updated_at
additionalProperties: false
DeliveryList:
$id: '#/components/schemas/DeliveryList'
type: object
properties:
object:
type: string
const: list
data:
type: array
items:
$ref: '#/components/schemas/Delivery'
next_cursor:
type:
- string
- 'null'
required:
- object
- data
- next_cursor
additionalProperties: false
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'API key: s0_live_… or s0_test_…'