Standard Webhooks
Standard Webhooks is a community specification, guided by a technical steering committee and published on GitHub, for sending webhooks securely, consistently and interoperably. It fixes the metadata headers, the signature scheme and the secret formats, and recommends payload, delivery and security practices. With this skill the agent builds a producer that signs and delivers webhooks, a consumer that verifies them, or a review of either.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. The specification has no section numbers, so rules cite its heading name (for example "Signature scheme"). Most of the specification is recommendation ("should", "recommended"); the invariants below are the parts a compatible implementation needs. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: producer (sender), consumer (receiver), or both; or a gateway that verifies on behalf of a consumer.
- Signature scheme: symmetric (
v1, HMAC-SHA256 with awhsec_secret) or asymmetric (v1a, ed25519 withwhpk_andwhsk_keys), or both. - Payload format: JSON (recommended) or another content type; thin or full payloads.
- Target version: Standard Webhooks 1.0 (current, the default and only line). No earlier line with different headers exists and no preview is published. See
references/versions.md. - Revision: the pinned revision in Sources (specification text "Version: 1.0.0" at repository tag v1.0.2), unless the user names another.
- Sources refresh: when refreshing this skill or when a rule looks out of date, re-read the specification on
main, compare it with the pinned tag (git log -- spec/), check the releases page for a new tag and the specification'sVersion:line for a new version, and update the pins.
Invariants
- Three headers, exact names. Send
webhook-id(the unique message identifier),webhook-timestamp(integer Unix seconds of this attempt) andwebhook-signaturewith the payload in the body of an HTTP POST (Webhook headers). - Sign
msg_id.timestamp.payload. The signed content is the id, the timestamp and the exact body bytes, joined with full stops. The id and timestamp must not be user controlled, or at least must not contain.(Signature scheme). - Sign and verify the exact bytes sent. The body that is sent is the body that was signed; a consumer verifies the raw body, never a re-serialized parse of it (Signature scheme).
- Versioned signatures. Each signature is the identifier, a comma, then the base64 signature:
v1,for HMAC-SHA256 andv1a,for ed25519 (Signature scheme). - Secret formats. Symmetric secrets are random, 24 to 64 bytes, base64 encoded and shown as
whsec_…; asymmetric keys are a standard ed25519 key pair, base64 encoded aswhsk_…(secret) andwhpk_…(public) (Signature scheme). - The signature header is a space-delimited list. A consumer accepts the message when any one listed signature verifies; this is how keys rotate with no downtime (Webhook headers).
- Constant-time comparison. Symmetric signatures are compared with a constant-time function; asymmetric ones are checked with a maintained cryptographic library (Verifying signatures).
- Timestamp tolerance. The consumer rejects a
webhook-timestampoutside an allowed tolerance of its clock, to prevent replay (Verifying signatures). - Trusted keys only. Consumers keep a trust list of public keys and schemes, and never trust a key read from the request itself (Signature scheme, Additional considerations).
- The id is stable across retries; the timestamp is not.
webhook-idstays the same for every attempt of one event and serves as the idempotency key;webhook-timestampis updated on each attempt (Webhook metadata). - Only
2xxis success. Every other outcome, including3xx, timeouts and connection resets, is a failed delivery (Delivery success and failure).
Workflow
- Pick the version. Use Standard Webhooks 1.0, at the pinned revision.
->
references/versions.md✓ The target is recorded as Standard Webhooks 1.0 and the pinned specification revision. - Choose the scheme and keys. Pick
v1,v1aor both; generate one key per endpoint (symmetric) or per endpoint or customer (asymmetric); plan key distribution and rotation. ->references/signing-and-verifying.md✓ Each endpoint has its own secret or key pair in the right serialized format, and consumers have a trust list. - Design the payload. Define event types (
user.createdstyle), one schema per type, and atype,timestamp,databody; decide thin or full; keep it small. ->references/payloads-and-security.md✓ Every event type has an example and a formal schema (JSON Schema or OpenAPI), and payloads stay small (usually under 20 kB). - Sign and send (producer). Build
msg_id.timestamp.payloadfrom the serialized body, sign with every active key, and send the three headers on a POST. ->references/signing-and-verifying.md✓ A reference library or a test vector verifies the produced headers against the sent bytes. - Verify (consumer). Read the raw body, check the timestamp tolerance, recompute or verify each listed signature, compare in constant time, then de-duplicate on
webhook-idand return2xxquickly. ->references/signing-and-verifying.md✓ A tampered body, a stale timestamp, an unknown key and a replayed id are each rejected or ignored. - Deliver reliably (producer). Retry failures on a multi-day exponential schedule with jitter, honour
retry-after,410,429,502and504, time out after 15 to 30 seconds, and disable and notify on persistent failure. ->references/delivery.md✓ The retry schedule, status handling and disable policy are written down and tested. - Secure the sender. Route deliveries through an SSRF-filtering proxy in an isolated subnet, prefer HTTPS endpoints, and publish static source IPs if consumers need them.
->
references/payloads-and-security.md✓ A webhook URL pointing at an internal or metadata address cannot be reached. - Upgrade (only when asked). Migrate a bespoke webhook scheme by adding the Standard Webhooks headers next to the existing ones, then optionally migrate payloads.
->
references/versions.md✓ Existing consumers keep working, and a Standard Webhooks library verifies the new headers.
Verify before done
- Header names are exactly
webhook-id,webhook-timestampandwebhook-signature, and the timestamp is integer seconds (Webhook headers). - The signed content is
msg_id.timestamp.payloadover the exact bytes sent; the id and timestamp contain no.(Signature scheme). - Signatures carry
v1,orv1a,; secrets and keys carrywhsec_,whsk_orwhpk_(Signature scheme). - Consumers verify the raw body, accept any one valid signature in the list, compare in constant time, and enforce a timestamp tolerance (Verifying signatures).
-
webhook-idis unchanged across retries and used for de-duplication (Webhook metadata, Verifying signatures). - Only
2xxcounts as success;3xxis not followed;410disables the endpoint (Delivery success and failure). - Retries use exponential backoff with jitter; persistent failure disables the endpoint and notifies the owner (Deliverability and reliability).
- Outbound requests cannot reach internal networks (Server side request forgery).
Reference index
references/versions.md: the Standard Webhooks 1.0 line, how the specification and the library tags relate, editorial history, and migrating from a bespoke scheme. Load for steps 1 and 8.references/signing-and-verifying.md: headers, signed content,v1andv1a, secret and key formats, multiple signatures and rotation, verification steps, timestamp tolerance, idempotency, reference library behaviour and common mistakes. Load for steps 2, 4 and 5.references/delivery.md: retries and the example schedule, status code handling,retry-after, timeouts, disabling endpoints, event-type filtering, fanout, manual replay and endpoint management. Load for step 6.references/payloads-and-security.md: payload structure, event types, thin and full payloads, size, formal schemas (JSON Schema, OpenAPI), SSRF, HTTPS and static IPs. Load for steps 3 and 7.
Related skills
http-message-signaturesfor RFC 9421 signatures, a separate general-purpose HTTP signing scheme the Standard Webhooks README lists as a related effort:npx skills add ScaleDockHQ/scaledock-skills --skill http-message-signatures.cloudeventsfor a common event envelope:npx skills add ScaleDockHQ/scaledock-skills --skill cloudevents.asyncapifor describing event-driven interfaces:npx skills add ScaleDockHQ/scaledock-skills --skill asyncapi.openapifor the formal payload schema and OpenAPIwebhooksdescriptions:npx skills add ScaleDockHQ/scaledock-skills --skill openapi.http-semanticsfor status codes,Retry-Afterand POST semantics:npx skills add ScaleDockHQ/scaledock-skills --skill http-semantics.owasp-api-securityfor API7:2023 Server Side Request Forgery:npx skills add ScaleDockHQ/scaledock-skills --skill owasp-api-security.
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- Standard Webhooks specification: Specification, "Version: 1.0.0" (the README calls the file the latest draft and the source of truth), at tag v1.0.2 (2026-02-18); text unchanged on
mainsince 2025-02-16, checked 2026-10-05. - Standard Webhooks README: Repository README,
mainat 7537d2a (2026-08-31), checked 2026-10-05. - Standard Webhooks releases: Released, v1.0.2 (2026-02-18), latest tag, checked 2026-10-05.
- Standard Webhooks libraries: Reference implementations,
mainat 7537d2a (2026-08-31), checked 2026-10-05. - Reference JavaScript library source: Reference implementation,
standardwebhooks1.1.1 onmainat 7537d2a, checked 2026-10-05. - standardwebhooks.com: Project website, checked 2026-10-05.
- OWASP API Security Top 10, API7:2023 Server Side Request Forgery: OWASP Top 10, 2023 edition, cited by the specification, checked 2026-10-05.