Skip to content

fix(docs): correct webhook payload shape, events, paths, and retries#41

Merged
a-essawy merged 1 commit into
mainfrom
fix/webhooks-doc-corrections
Jul 14, 2026
Merged

fix(docs): correct webhook payload shape, events, paths, and retries#41
a-essawy merged 1 commit into
mainfrom
fix/webhooks-doc-corrections

Conversation

@a-essawy

Copy link
Copy Markdown
Contributor

Corrects webhooks.mdx + sdk.mdx to match the shipped API: enveloped payload (fields under data), the real 7-event catalog (job.started not job.running), 5-retry backoff, verifyWebhook usage, and the real endpoint paths (/webhooks/endpoints, /webhooks/deliveries?endpointId=). The old paths returned 404 — caught by the new webhook E2E.

- Delivered body is the versioned envelope (job fields under `data`), not flat.
- Full event catalog (job.started not job.running; all 7 events).
- Retry policy: 5 attempts with exponential backoff (was "3 / 5-25-125s").
- Verify example uses verifyWebhook(rawBody, headers, secret).
- Fix endpoint paths: /webhooks/endpoints (was /webhook-endpoints) and
  GET /webhooks/deliveries?endpointId= (was a path segment).
@a-essawy
a-essawy merged commit 35449c7 into main Jul 14, 2026
1 check passed
@a-essawy
a-essawy deleted the fix/webhooks-doc-corrections branch July 14, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant