Skip to content

Webhook events and redelivery ​

Every webhook TenancyEngine sends is an HTTPS POST with a JSON object body and these headers:

HeaderMeaning
X-TE-EventThe event type, for example tenant.created.
X-TE-Signaturet={unix seconds},v1={HMAC-SHA256}; during a secret rotation overlap also v1_previous.
X-TE-Delivery-IdUnique per delivery attempt group. A redelivery gets a new one.
webhook-id, webhook-timestamp, webhook-signatureThe same delivery in Standard Webhooks form, so a stock library can verify it. webhook-id is msg_ plus the delivery id. The signature is v1,{base64 HMAC-SHA256 of "{id}.{timestamp}.{body}"}; during a rotation overlap it holds the current and previous signature separated by a space. The library secret is whsec_ plus the base64 of the endpoint secret (ToStandardWebhooksSecret in the .NET and TypeScript SDKs).

Bodies are additive: ignore fields you do not know.

Get the event catalog from the API ​

The catalog is served without authentication, with a JSON Schema for each event body:

bash
curl https://api.saasruntime.com/api/v1/public/webhooks/event-types
jsonc
{
  "signatureHeader": "X-TE-Signature",
  "eventHeader": "X-TE-Event",
  "deliveryIdHeader": "X-TE-Delivery-Id",
  "eventTypes": [
    {
      "name": "tenant.created",
      "description": "A tenant was created.",
      "scope": "organization",   // organization | application | endpoint
      "schema": { "type": "object", "additionalProperties": true }
    }
  ]
}

Scope organization events go to every endpoint of every application in the organization that subscribes to them. Scope application events go only to endpoints of the one application they concern. webhook.test is sent only by Send test event.

Redeliver after you fix your endpoint ​

A redelivery re-sends the stored body unchanged, so any event id inside it is the same as the original and you can dedupe on it. It is signed with the endpoint's current secret and recorded as a new delivery.

CallPurpose
POST /api/v1/runtime/applications/{applicationId}/webhooks/{id}/deliveries/{deliveryId}/redeliverRe-send one delivery.
POST /api/v1/runtime/applications/{applicationId}/webhooks/{id}/deliveries/redeliver-failed?since=2026-10-01T00:00:00ZRe-send every payload that failed since since (default last 24 hours) and has no later success. Capped at 100 per call (response has capped: true when more remain), one redelivery at a time and 30 redelivery operations per endpoint per hour (429 redelivery_rate_limited beyond that), refused with 409 while the endpoint is disabled, and a tenant endpoint only ever receives its own tenant's payloads. Audited.
GET /api/v1/runtime/applications/{applicationId}/webhooks/{id}/deliveries?limit=50List deliveries: id, event type, success, last HTTP status code, attempts. Response bodies are never returned here.

All three need an organization API key with the webhooks.manage scope. In the Console, open the endpoint's Deliveries and use Redeliver on a failed row.

TenancyEngine platform documentation