Webhooks
Base URL: https://api.notideus.io. All endpoints below are under /v1 and use the error envelope on failure — see Errors.
Register endpoints to receive signed, at-least-once event deliveries. Management is dual-auth — a session token or an API key — and requires the webhooks:read / webhooks:write scopes (full counts via the wildcard).
The endpoint
| Field | Type | Notes |
|---|---|---|
id | uuid | Stable endpoint identifier |
name | string | Display label |
url | string | Absolute https URL; private and loopback addresses are rejected |
secret_prefix | string | First characters of the signing secret, for display only |
events | string[] | Subscribed events — a subset of the catalog below |
status | string | active or disabled |
created_at | timestamp | RFC 3339 |
updated_at | timestamp | RFC 3339 |
Receiving deliveries
Each event arrives as an HTTP POST with this envelope:
{"id": "9c1f…", "event": "email.sent", "created_at": "2026-10-12T09:00:00Z", "data": {…}}
Headers on the request:
X-Notideus-Signature: t=<unix>,v1=<hmac-sha256 hex>— HMAC over the<t>.<body>bytes; tolerate ±5 min clock drift.X-Notideus-Event— the event name, mirroring the envelopeevent.X-Notideus-Delivery— the envelopeid, for dedupe.
Ack with any 2xx. Anything else retries with backoff — 5 retries over ~15 minutes — after which the delivery is failed and can be replayed with the redeliver endpoint below. Deliveries are at-least-once: dedupe on id.
The catalog — 11 events: email.sent, email.delivered, email.bounced, email.blocked, email.complained, email.opened, email.clicked, broadcast.started, broadcast.completed, broadcast.failed, inbound.received.
/v1/webhooksScope: webhooks:write — dual-auth: a session token or an API key works; the account email must be verified.
Registers one endpoint. The whsec_… signing secret is returned exactly once — store it; only a display prefix is kept afterwards.
Request fields
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | yes | Display label |
url | string | yes | Absolute https URL; plain http and private or loopback addresses are rejected |
events | string[] | yes | Min 1; each entry must be one of the catalog events |
Response
201 Created — the new endpoint plus its reveal-once secret:
Errors
- 400
bad_request— a required field is missing, an event is not in the catalog, or the URL is not an absolutehttpsURL or points to a private/loopback address. - 403
insufficient_scope— the key lackswebhooks:write. - 403
email_not_verified— the account email is unverified; management resumes once it is verified. - 403
plan_limit_exceeded— the plan's active-endpoint limit is reached; disable one or upgrade. - 409
conflict— an endpoint with this URL already exists.
curl -X POST https://api.notideus.io/v1/webhooks \
-H "Authorization: Bearer $NT_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "docs-capture",
"url": "https://hooks.example.com/notideus",
"events": ["email.sent", "email.delivered", "inbound.received"]
}'
{
"endpoint": {
"id": "01a139b1-1229-78dd-ab26-3724f3e055dc",
"name": "docs-capture",
"url": "https://hooks.example.com/notideus",
"secret_prefix": "whsec_mrXp",
"events": ["email.sent", "email.delivered", "inbound.received"],
"status": "active",
"created_at": "2026-10-14T09:14:28.26542Z",
"updated_at": "2026-10-14T09:14:28.26542Z"
},
"secret": "whsec_mrXpwwEYDk3lmwL93ArKsByIxe6gOpOa"
}
/v1/webhooksScope: webhooks:read — dual-auth: also accepts a session token.
Lists your endpoints, newest first, one page at a time.
Query parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
cursor | string | no | Taken from next_cursor of the previous page |
limit | integer | no | Page size; default 20, max 100 |
Response
200 OK — data holds the page; next_cursor is empty on the final page. A real response:
{
"data": [
{
"id": "01a139b1-1229-78dd-ab26-3724f3e055dc",
"name": "docs-capture",
"url": "https://hooks.example.com/notideus",
"secret_prefix": "whsec_mrXp",
"events": ["email.sent", "email.delivered", "inbound.received"],
"status": "active",
"created_at": "2026-10-14T09:14:28.26542Z",
"updated_at": "2026-10-14T09:14:28.26542Z"
},
{
"id": "01a138a5-1368-75d8-ae73-a095d0f0e995",
"name": "rot",
"url": "https://rotate.example.com/hook",
"secret_prefix": "whsec_xJF3",
"events": ["email.sent"],
"status": "active",
"created_at": "2026-10-14T04:21:44.936337Z",
"updated_at": "2026-10-14T04:21:44.937783Z"
}
],
"next_cursor": ""
}
/v1/webhooks/:idScope: webhooks:read — dual-auth: also accepts a session token.
Path parameters
| Parameter | Type | Notes |
|---|---|---|
id | uuid | The endpoint id |
Response
200 OK — the endpoint. 404 Not Found — no endpoint with that id.
/v1/webhooks/:idScope: webhooks:write — dual-auth: a session token or an API key works; the account email must be verified.
Path parameters
| Parameter | Type | Notes |
|---|---|---|
id | uuid | The endpoint id |
Request fields
All four fields are required — PATCH is a full replace, not a merge:
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | yes | Display label |
url | string | yes | Same https-only rule as create |
events | string[] | yes | Min 1; catalog subset |
status | string | yes | active or disabled |
Response
200 OK — the updated endpoint. 404 Not Found — no endpoint with that id.
Errors
- 400
bad_request— same validation as create, plusstatusmust beactiveordisabled. - 403
insufficient_scope— the key lackswebhooks:write. - 403
email_not_verified— the account email is unverified.
/v1/webhooks/:idScope: webhooks:write — dual-auth: a session token or an API key works; the account email must be verified.
Path parameters
| Parameter | Type | Notes |
|---|---|---|
id | uuid | The endpoint id |
Response
204 No Content — the endpoint is deleted (its deliveries are removed with it); the body is empty. 404 Not Found — no endpoint with that id.
/v1/webhooks/:id/testScope: webhooks:write — dual-auth: a session token or an API key works; the account email must be verified.
Queues a test delivery built from the event catalog. The optional event picks the sample payload; when omitted, the endpoint's first subscribed event is used. The actual HTTP delivery to your endpoint happens asynchronously — the response is the delivery row, still pending.
Request fields
| Field | Type | Required | Notes |
|---|---|---|---|
event | string | no | Catalog event; defaults to the first subscribed event — required when the endpoint subscribes to none |
Response
201 Created — the queued test delivery row. A real response:
Errors
- 400
bad_request— the event is not in the catalog, or the endpoint subscribes to no events and noeventwas passed. - 403
insufficient_scope— the key lackswebhooks:write. - 403
email_not_verified— the account email is unverified. - 404
not_found— no endpoint with that id.
curl -X POST https://api.notideus.io/v1/webhooks/01a139b1-1229-78dd-ab26-3724f3e055dc/test \
-H "Authorization: Bearer $NT_KEY" \
-H "Content-Type: application/json" \
-d '{"event": "email.sent"}'
{
"delivery": {
"id": "01a139b1-5b51-7286-a9b9-264ea238d30a",
"endpoint_id": "01a139b1-1229-78dd-ab26-3724f3e055dc",
"event_type": "email.sent",
"payload": {
"id": "9c1f…",
"to": ["a@b.com"],
"from": "you@yourdomain.com",
"tags": ["welcome"],
"detail": "",
"status": "sent",
"subject": "Hi",
"created_at": "2026-10-12T09:00:00Z"
},
"status": "pending",
"attempts": 0,
"last_status_code": null,
"last_error": null,
"delivered_at": null,
"created_at": "2026-10-14T09:14:46.993102Z"
}
}
/v1/webhooks/:id/rotate-secretScope: webhooks:write — dual-auth: a session token or an API key works; the account email must be verified.
Replaces the endpoint's signing secret. The new whsec_… secret is returned exactly once — only a display prefix is kept. The old secret stops validating signatures immediately, so swap it in your receiver in the same change.
Path parameters
| Parameter | Type | Notes |
|---|---|---|
id | uuid | The endpoint id |
Response
200 OK — the endpoint plus its reveal-once secret. Example response (shape derived from the create response — a capture was not practical for this endpoint; secret is a placeholder):
Errors
- 403
insufficient_scope— the key lackswebhooks:write. - 403
email_not_verified— the account email is unverified. - 404
not_found— no endpoint with that id.
curl -X POST https://api.notideus.io/v1/webhooks/01a139b1-1229-78dd-ab26-3724f3e055dc/rotate-secret \
-H "Authorization: Bearer $NT_KEY"
{
"endpoint": {
"id": "01a139b1-1229-78dd-ab26-3724f3e055dc",
"name": "docs-capture",
"url": "https://hooks.example.com/notideus",
"secret_prefix": "whsec_xxxx",
"events": ["email.sent", "email.delivered", "inbound.received"],
"status": "active",
"created_at": "2026-10-14T09:14:28.26542Z",
"updated_at": "2026-10-14T09:14:28.26542Z"
},
"secret": "whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
/v1/webhooks/meta/eventsScope: webhooks:read — dual-auth: also accepts a session token.
Returns the event catalog as {data} — 10 descriptors, each with a type, a human description and a sample payload. The dashboard event picker is driven by this same catalog. The live catalog:
{
"data": [
{
"type": "email.sent",
"description": "An email was handed off to the provider (status became sent).",
"sample": {
"id": "9c1f…",
"from": "you@yourdomain.com",
"to": ["a@b.com"],
"subject": "Hi",
"status": "sent",
"detail": "",
"tags": ["welcome"],
"created_at": "2026-10-12T09:00:00Z"
}
},
{
"type": "email.delivered",
"description": "The provider confirmed delivery to the recipient's mail server.",
"sample": {
"id": "9c1f…",
"from": "you@yourdomain.com",
"to": ["a@b.com"],
"subject": "Hi",
"status": "delivered",
"detail": "",
"tags": [],
"created_at": "2026-10-12T09:00:00Z"
}
},
{
"type": "email.bounced",
"description": "The email bounced (provider bounce or permanent send failure).",
"sample": {
"id": "9c1f…",
"from": "you@yourdomain.com",
"to": ["a@b.com"],
"subject": "Hi",
"status": "bounced",
"detail": "Permanent: mailbox not found",
"tags": [],
"created_at": "2026-10-12T09:00:00Z"
}
},
{
"type": "email.complained",
"description": "The recipient marked the email as spam (feedback loop).",
"sample": {
"id": "9c1f…",
"from": "you@yourdomain.com",
"to": ["a@b.com"],
"subject": "Hi",
"status": "complained",
"detail": "abuse",
"tags": [],
"created_at": "2026-10-12T09:00:00Z"
}
},
{
"type": "email.opened",
"description": "The recipient opened the email (tracking pixel).",
"sample": {
"id": "9c1f…",
"from": "you@yourdomain.com",
"to": ["a@b.com"],
"subject": "Hi",
"status": "opened",
"detail": "tracking pixel",
"tags": [],
"created_at": "2026-10-12T09:00:00Z"
}
},
{
"type": "email.clicked",
"description": "The recipient clicked a tracked link.",
"sample": {
"id": "9c1f…",
"from": "you@yourdomain.com",
"to": ["a@b.com"],
"subject": "Hi",
"status": "clicked",
"detail": "https://yourdomain.com/pricing",
"tags": [],
"created_at": "2026-10-12T09:00:00Z"
}
},
{
"type": "broadcast.started",
"description": "A broadcast began sending.",
"sample": {
"id": "7b2c…",
"name": "October newsletter",
"status": "sending",
"recipient_count": 0,
"sent_count": 0,
"failed_count": 0
}
},
{
"type": "broadcast.completed",
"description": "A broadcast finished sending (all recipients processed).",
"sample": {
"id": "7b2c…",
"name": "October newsletter",
"status": "sent",
"recipient_count": 1200,
"sent_count": 1194,
"failed_count": 6
}
},
{
"type": "broadcast.failed",
"description": "A broadcast failed permanently.",
"sample": {
"id": "7b2c…",
"name": "October newsletter",
"status": "failed",
"recipient_count": 0,
"sent_count": 0,
"failed_count": 0
}
},
{
"type": "inbound.received",
"description": "An inbound email was received, parsed and stored in the inbox.",
"sample": {
"id": "3a8d…",
"from": "customer@gmail.com",
"from_name": "Sam",
"to": "support@yourdomain.com",
"subject": "Question",
"received_at": "2026-10-12T09:00:00Z"
}
}
]
}
/v1/webhook-deliveriesScope: webhooks:read — dual-auth: also accepts a session token.
Lists delivery rows — the per-endpoint delivery log — newest first, one page at a time.
Query parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
endpoint_id | uuid | no | Restrict to one endpoint |
event_type | string | no | Filter by catalog event |
status | string | no | Filter by pending, success or failed |
cursor | string | no | Taken from next_cursor of the previous page |
limit | integer | no | Page size; default 20, max 100 |
Response
200 OK — data holds the page; next_cursor is empty on the final page. A real response (filtered by endpoint_id):
{
"data": [
{
"id": "01a139b2-6ffb-74dd-aca4-93cf118aaed0",
"endpoint_id": "01a139b1-e35e-773a-a8ee-9570dfdf6e89",
"event_type": "email.sent",
"payload": {
"id": "01a139b2-6e0b-7358-81ee-4bfddaf655e9",
"to": ["jane@example.com"],
"from": "Docs Capture <noreply@mail.notideus.dev>",
"tags": [],
"detail": "",
"status": "sent",
"subject": "Webhook delivery capture",
"created_at": "2026-10-14T09:15:57.313136Z"
},
"status": "success",
"attempts": 1,
"last_status_code": 200,
"last_error": null,
"delivered_at": "2026-10-14T09:15:58.337796Z",
"created_at": "2026-10-14T09:15:57.819255Z"
}
],
"next_cursor": ""
}
/v1/webhook-deliveries/:idScope: webhooks:read — dual-auth: also accepts a session token.
Path parameters
| Parameter | Type | Notes |
|---|---|---|
id | uuid | The delivery id |
Response
200 OK — the delivery plus its attempts (one row per HTTP try). A real response:
404 Not Found — no delivery with that id.
{
"attempts": [
{
"attempt": 1,
"status_code": 200,
"error": null,
"duration_ms": 11,
"created_at": "2026-10-14T09:15:58.336411Z"
}
],
"delivery": {
"id": "01a139b2-6ffb-74dd-aca4-93cf118aaed0",
"endpoint_id": "01a139b1-e35e-773a-a8ee-9570dfdf6e89",
"event_type": "email.sent",
"payload": {
"id": "01a139b2-6e0b-7358-81ee-4bfddaf655e9",
"to": ["jane@example.com"],
"from": "Docs Capture <noreply@mail.notideus.dev>",
"tags": [],
"detail": "",
"status": "sent",
"subject": "Webhook delivery capture",
"created_at": "2026-10-14T09:15:57.313136Z"
},
"status": "success",
"attempts": 1,
"last_status_code": 200,
"last_error": null,
"delivered_at": "2026-10-14T09:15:58.337796Z",
"created_at": "2026-10-14T09:15:57.819255Z"
}
}
/v1/webhook-deliveries/:id/redeliverScope: webhooks:write — dual-auth: a session token or an API key works; the account email must be verified.
Re-queues a delivery. The row is reset in place — status back to pending, attempts back to 0, last response cleared — and a fresh retry chain starts against the endpoint's current URL and secret. Works on success and failed deliveries alike.
Path parameters
| Parameter | Type | Notes |
|---|---|---|
id | uuid | The delivery id |
Response
200 OK — the reset delivery row. Example response (shape derived from the delivery model above — a capture was not practical for this endpoint):
curl -X POST https://api.notideus.io/v1/webhook-deliveries/01a139b2-6ffb-74dd-aca4-93cf118aaed0/redeliver \
-H "Authorization: Bearer $NT_KEY"
{
"delivery": {
"id": "01a139b2-6ffb-74dd-aca4-93cf118aaed0",
"endpoint_id": "01a139b1-e35e-773a-a8ee-9570dfdf6e89",
"event_type": "email.sent",
"payload": {
"id": "01a139b2-6e0b-7358-81ee-4bfddaf655e9",
"to": ["jane@example.com"],
"from": "Docs Capture <noreply@mail.notideus.dev>",
"tags": [],
"detail": "",
"status": "sent",
"subject": "Webhook delivery capture",
"created_at": "2026-10-14T09:15:57.313136Z"
},
"status": "pending",
"attempts": 0,
"last_status_code": null,
"last_error": null,
"delivered_at": null,
"created_at": "2026-10-14T09:15:57.819255Z"
}
}
Errors
- 404
not_found— no delivery with that id. - 409
conflict— the delivery is alreadypending. - 403
insufficient_scope— the key lackswebhooks:write. - 403
email_not_verified— the account email is unverified.