apps-handle-webhooks
Installation
SKILL.md
Handle Apps Webhooks
Build a receiver that verifies the exact request body, responds quickly, and processes each delivery idempotently. Read references/webhooks.md before implementing or reviewing a handler.
When to load this skill
Read this skill before the first matching apps_* MCP call in each task. In particular, load it before apps_verify_webhook_signature; the tool performs one check, while this workflow supplies the receiver, secret-handling, and idempotency context.
Workflow
- Identify the events and downstream action required by the user.
- Configure the endpoint URL and event selection in the Apps administration screen; there is no public Webhook settings CRUD API.
- Capture the raw request body before JSON parsing.
- When
Apps-Signatureis present, verify the timestamp and everyv1candidate. Useapps_verify_webhook_signaturefor an isolated verification check when the secret and exact raw body are available through a secure execution path. - Reject invalid signatures before performing downstream work.
- Parse JSON only after verification and validate required fields per event.
- Deduplicate on body
idorApps-Webhook-Id, not on the signature. - Persist or enqueue the minimum work needed, then return HTTP 200 within 30 seconds.
- Use the administration-screen test delivery to verify the receiver without creating a real payment.