Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(webhook): clarify X-OpenWA-Delivery-Id is stable across retry attempts

rmyndharisa1d37a52dbe6
diff --git a/docs/examples/webhook-signature-verification.md b/docs/examples/webhook-signature-verification.md
index 7a3da8f99..91e39e39e 100644
--- a/docs/examples/webhook-signature-verification.md
+++ b/docs/examples/webhook-signature-verification.md
@@ -11,7 +11,7 @@ OpenWA sends these system headers with webhook deliveries:
| `X-OpenWA-Signature` | HMAC-SHA256 signature, present only when the webhook has a secret |
| `X-OpenWA-Event` | Event name, for example `message.received` |
| `X-OpenWA-Idempotency-Key` | Stable key for duplicate detection |
-| `X-OpenWA-Delivery-Id` | Unique delivery attempt identifier |
+| `X-OpenWA-Delivery-Id` | Unique identifier for this delivery (stable across retry attempts) |
| `X-OpenWA-Retry-Count` | Retry count for the current delivery |
The signature format is:
diff --git a/src/modules/webhook/utils/idempotency.util.ts b/src/modules/webhook/utils/idempotency.util.ts
index eb00ececb..ec61405ae 100644
--- a/src/modules/webhook/utils/idempotency.util.ts
+++ b/src/modules/webhook/utils/idempotency.util.ts
@@ -83,7 +83,7 @@ export function generateIdempotencyKey(event: string, data: Record<string, unkno
}
/**
- * Generate a unique delivery ID for each webhook delivery attempt
+ * Generate a unique delivery ID for each webhook delivery (stable across retry attempts)
*/
export function generateDeliveryId(): string {
return `dlv_${randomUUID()}`;