Prepare the endpoint
Use a published Component endpoint withPOST, HTTP response mode, modern results and a visible result element. Set the following body options; this is a fragment, not a complete Endpoint definition:
Example: timestamped HMAC
This Component result element illustrates Stripe’s timestamp-dot-body HMAC construction. Create an instance Vault secret namedWEBHOOK_SIGNING_SECRET with the endpoint’s signing secret. The example accepts multiple v1 header signatures and uses a five-minute timestamp tolerance. Secret rotation and operational retry policy remain your application responsibility.
Component result element · timestamped HMAC
{ "verified": true, "size": ... }. Changing one body byte, supplying a bad signature or using an expired timestamp returns401 before application writes. The runtime’s omitted-format JSON parser must not replace raw mode for this example.
Follow the provider’s current signature and delivery guidance. HMAC verification is bounded; this example’s1MiB request limit stays below its5MiB crypto payload limit.
Example: asymmetric P-256 signature
For a provider using P-256/SHA-256, such as a signed SendGrid Inbound Parse delivery, application code concatenates the exact timestamp bytes and raw body without the HMAC example’s dot separator. Store the provider’s public key in instance Vault asWEBHOOK_VERIFICATION_PUBLIC_KEY (PEM or Base64 DER SPKI).
The following example application policy permits a five-minute timestamp window. Select the tolerance and retry handling for your provider’s contract; do not assume all providers regenerate timestamps or use identical delivery windows.
Component result element · P-256 verification
util.ecdsaVerify is a general P-256/SHA-256 primitive, not a provider integration. It accepts exact bytes and a Base64 DER signature; it does not parse headers, choose trusted keys, enforce timestamp freshness or record processed message IDs. Payloads are bounded at8MiB, public keys at64KiB and signature strings at1024characters. Malformed key configuration throws; a mismatched signature returnsfalse.
Check the provider’s Inbound Parse security documentation when defining its security policy, key rotation and accepted retries. A signature proves authenticity of the signed bytes; parsing email, attachment handling, durable work admission and delivery recovery are later application steps.

