Notideus
API Reference

Webhooks

Register endpoints, subscribe to events and inspect signed deliveries.

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

FieldTypeNotes
iduuidStable endpoint identifier
namestringDisplay label
urlstringAbsolute https URL; private and loopback addresses are rejected
secret_prefixstringFirst characters of the signing secret, for display only
eventsstring[]Subscribed events — a subset of the catalog below
statusstringactive or disabled
created_attimestampRFC 3339
updated_attimestampRFC 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 envelope event.
  • X-Notideus-Delivery — the envelope id, 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.

POST/v1/webhooks

Scope: 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

FieldTypeRequiredNotes
namestringyesDisplay label
urlstringyesAbsolute https URL; plain http and private or loopback addresses are rejected
eventsstring[]yesMin 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 absolute https URL or points to a private/loopback address.
  • 403 insufficient_scope — the key lacks webhooks: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"
}
GET/v1/webhooks

Scope: webhooks:read — dual-auth: also accepts a session token.

Lists your endpoints, newest first, one page at a time.

Query parameters

ParameterTypeRequiredNotes
cursorstringnoTaken from next_cursor of the previous page
limitintegernoPage 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": ""
}
GET/v1/webhooks/:id

Scope: webhooks:read — dual-auth: also accepts a session token.

Path parameters

ParameterTypeNotes
iduuidThe endpoint id

Response

200 OK — the endpoint. 404 Not Found — no endpoint with that id.

PATCH/v1/webhooks/:id

Scope: webhooks:write — dual-auth: a session token or an API key works; the account email must be verified.

Path parameters

ParameterTypeNotes
iduuidThe endpoint id

Request fields

All four fields are required — PATCH is a full replace, not a merge:

FieldTypeRequiredNotes
namestringyesDisplay label
urlstringyesSame https-only rule as create
eventsstring[]yesMin 1; catalog subset
statusstringyesactive or disabled

Response

200 OK — the updated endpoint. 404 Not Found — no endpoint with that id.

Errors

  • 400 bad_request — same validation as create, plus status must be active or disabled.
  • 403 insufficient_scope — the key lacks webhooks:write.
  • 403 email_not_verified — the account email is unverified.
DELETE/v1/webhooks/:id

Scope: webhooks:write — dual-auth: a session token or an API key works; the account email must be verified.

Path parameters

ParameterTypeNotes
iduuidThe 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.

POST/v1/webhooks/:id/test

Scope: 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

FieldTypeRequiredNotes
eventstringnoCatalog 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 no event was passed.
  • 403 insufficient_scope — the key lacks webhooks: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"
  }
}
POST/v1/webhooks/:id/rotate-secret

Scope: 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

ParameterTypeNotes
iduuidThe 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 lacks webhooks: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"
}
GET/v1/webhooks/meta/events

Scope: 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"
      }
    }
  ]
}
GET/v1/webhook-deliveries

Scope: 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

ParameterTypeRequiredNotes
endpoint_iduuidnoRestrict to one endpoint
event_typestringnoFilter by catalog event
statusstringnoFilter by pending, success or failed
cursorstringnoTaken from next_cursor of the previous page
limitintegernoPage 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": ""
}
GET/v1/webhook-deliveries/:id

Scope: webhooks:read — dual-auth: also accepts a session token.

Path parameters

ParameterTypeNotes
iduuidThe 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"
  }
}
POST/v1/webhook-deliveries/:id/redeliver

Scope: 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

ParameterTypeNotes
iduuidThe 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 already pending.
  • 403 insufficient_scope — the key lacks webhooks:write.
  • 403 email_not_verified — the account email is unverified.
Copyright © 2026