[{"data":1,"prerenderedAt":2094},["ShallowReactive",2],{"docs-navigation":3,"content-query-96EY53fbUr":360},[4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58,61,64,67,70,73,76,79,82,85,88,91,94,97,100,103,106,109,112,115,118,121,124,127,130,133,136,139,142,145,148,151,154,157,160,163,166,169,172,175,178,181,184,187,190,193,196,199,202,205,208,211,214,217,220,223,226,229,232,235,238,241,244,247,250,253,256,259,262,265,268,271,274,277,280,283,286,289,292,295,297,300,303,306,309,312,315,318,321,324,327,330,333,336,339,342,345,348,351,354,357],{"_path":5,"title":6},"/docs/account/account-management","Account management",{"_path":8,"title":9},"/docs/account/mfa","Multi-factor authentication (MFA)",{"_path":11,"title":12},"/docs/account/team","Teams and sub-accounts",{"_path":14,"title":15},"/docs/account/billing-and-subscriptions","Billing & subscriptions",{"_path":17,"title":18},"/docs/account/access-tokens","Webhook Relay access tokens: permissions and subscription scopes",{"_path":20,"title":21},"/docs/clawhub","Webhook Relay on ClawHub",{"_path":23,"title":24},"/docs/email","Receive emails as webhooks",{"_path":26,"title":27},"/docs/email/payload","Email webhook payload",{"_path":29,"title":30},"/docs/email/filtering-and-policy","Sender filtering & policy",{"_path":32,"title":33},"/docs/email/cli","Create & poll email addresses from the CLI",{"_path":35,"title":36},"/docs","Getting Started",{"_path":38,"title":39},"/docs/installation/cli","CLI",{"_path":41,"title":42},"/docs/installation/docker","Docker container",{"_path":44,"title":45},"/docs/installation/docker-compose","Docker Compose",{"_path":47,"title":48},"/docs/installation/kubernetes","Kubernetes",{"_path":50,"title":51},"/docs/installation/autostart-windows","Autostart (Windows)",{"_path":53,"title":54},"/docs/installation/autostart-linux","Autostart (Linux)",{"_path":56,"title":57},"/docs/installation/autostart-macos","Autostart (MacOS)",{"_path":59,"title":60},"/docs/installation/behind-proxy","HTTP proxy configuration",{"_path":62,"title":63},"/docs/mcp","MCP Server",{"_path":65,"title":66},"/docs/outbound","Outbound Gateway: send webhooks to your customers",{"_path":68,"title":69},"/docs/outbound/setup","Set up the Outbound Gateway",{"_path":71,"title":72},"/docs/outbound/receiving","Receive and verify outbound webhooks",{"_path":74,"title":75},"/docs/outbound/operating","Monitor, retry and recover deliveries",{"_path":77,"title":78},"/docs/outbound/portal","Embed the customer portal",{"_path":80,"title":81},"/docs/outbound/migrate","Migrate to the Outbound Gateway",{"_path":83,"title":84},"/docs/outbound/migrate/svix","Migrate from Svix",{"_path":86,"title":87},"/docs/outbound/migrate/hookdeck-outpost","Migrate from Hookdeck Outpost",{"_path":89,"title":90},"/docs/outbound/migrate/convoy","Migrate from Convoy",{"_path":92,"title":93},"/docs/outbound/migrate/hook0","Migrate from Hook0",{"_path":95,"title":96},"/docs/outbound/migrate/diy","Migrate a homegrown webhook sender",{"_path":98,"title":99},"/docs/security","Security & Tech",{"_path":101,"title":102},"/docs/service-connections","Service Connections",{"_path":104,"title":105},"/docs/service-connections/ai-providers","AI provider connections",{"_path":107,"title":108},"/docs/service-connections/aws_s3","AWS S3",{"_path":110,"title":111},"/docs/service-connections/aws_sns","AWS SNS",{"_path":113,"title":114},"/docs/service-connections/aws_sqs","AWS SQS",{"_path":116,"title":117},"/docs/service-connections/azure","Azure",{"_path":119,"title":120},"/docs/service-connections/gcp_gcs","GCP Cloud Storage",{"_path":122,"title":123},"/docs/service-connections/gcp_pubsub","GCP Pub/Sub",{"_path":125,"title":126},"/docs/service-connections/secrets","Secrets",{"_path":128,"title":129},"/docs/skills","Agent Skills",{"_path":131,"title":132},"/docs/skills-cli","skills.sh — the Agent Skills CLI",{"_path":134,"title":135},"/docs/tunnels/demoing-your-website","Demoing your website",{"_path":137,"title":138},"/docs/tunnels/regions","Regions",{"_path":140,"title":141},"/docs/tutorials/cicd/jenkins-bitbucket","Jenkins and Bitbucket",{"_path":143,"title":144},"/docs/tutorials/cicd/jenkins-generic-webhook-trigger","Jenkins Generic Webhook Trigger with Bitbucket",{"_path":146,"title":147},"/docs/tutorials/cicd/jenkins-github","Jenkins and GitHub",{"_path":149,"title":150},"/docs/tutorials/cicd/jenkins-plugin","Jenkins Plugin",{"_path":152,"title":153},"/docs/tutorials/cicd/jenkins-plugin-multibranch","Jenkins Multibranch Pipelines",{"_path":155,"title":156},"/docs/tutorials/cicd/kubernetes-operator","Kubernetes Operator",{"_path":158,"title":159},"/docs/tutorials/cicd/terraform-atlantis","Terraform Atlantis",{"_path":161,"title":162},"/docs/tutorials/cicd/webhook-exec","Execute scripts on webhook",{"_path":164,"title":165},"/docs/tutorials/edge/home-assistant","Home Assistant",{"_path":167,"title":168},"/docs/tutorials/edge/javascript-app","JavaScript app",{"_path":170,"title":171},"/docs/tutorials/edge/node-red","Node-RED",{"_path":173,"title":174},"/docs/tutorials/email/airtable","Email to Airtable",{"_path":176,"title":177},"/docs/tutorials/email/api","Email to API",{"_path":179,"title":180},"/docs/tutorials/email/database","Email to Database",{"_path":182,"title":183},"/docs/tutorials/email/discord","Email to Discord",{"_path":185,"title":186},"/docs/tutorials/email/google-sheets","Email to Google Sheets",{"_path":188,"title":189},"/docs/tutorials/email/microsoft-teams","Email to Microsoft Teams",{"_path":191,"title":192},"/docs/tutorials/email/notion","Email to Notion",{"_path":194,"title":195},"/docs/tutorials/email/slack","Email to Slack",{"_path":197,"title":198},"/docs/tutorials","Tutorials",{"_path":200,"title":201},"/docs/tutorials/n8n/email-trigger","n8n Email Trigger (Inbound Email)",{"_path":203,"title":204},"/docs/tutorials/n8n/webhook-trigger","n8n Webhook Trigger (No Public IP)",{"_path":206,"title":207},"/docs/tutorials/n8n/whatsapp-cloud-api-webhook","n8n WhatsApp Cloud API Webhook Setup",{"_path":209,"title":210},"/docs/tutorials/outbound/send-webhooks-nodejs","Send webhooks to your customers from a Node.js / TypeScript app",{"_path":212,"title":213},"/docs/tutorials/outbound/send-webhooks-go","Send webhooks to your customers from a Go service",{"_path":215,"title":216},"/docs/tutorials/outbound/nextjs-saas-webhooks","Add webhooks to a Next.js SaaS app",{"_path":218,"title":219},"/docs/tutorials/transform/docker-to-slack","DockerHub webhook to Slack notification",{"_path":221,"title":222},"/docs/tutorials/transform/enrich-webhooks","Enrich webhooks from APIs",{"_path":224,"title":225},"/docs/tutorials/transform/stripe-to-plain","Sync Stripe subscriptions to Plain.com tenants",{"_path":227,"title":228},"/docs/tutorials/warehouse/bigquery","GCP BigQuery",{"_path":230,"title":231},"/docs/webhooks/alerts","Alerts",{"_path":233,"title":234},"/docs/webhooks/auth/username-password","Username and password",{"_path":236,"title":237},"/docs/webhooks/auth/hmac","HMAC",{"_path":239,"title":240},"/docs/webhooks/auth/jwt","JWT authentication",{"_path":242,"title":243},"/docs/webhooks/auth/http-method","Auth using request method",{"_path":245,"title":246},"/docs/webhooks/auth/ip-allowlist","Source IP allowlist",{"_path":248,"title":249},"/docs/webhooks/auth/signature-verification","Signature verification",{"_path":251,"title":252},"/docs/webhooks/cors","CORS for webhooks",{"_path":254,"title":255},"/docs/webhooks/cron/using-cron-webhooks","Schedule recurring webhooks",{"_path":257,"title":258},"/docs/webhooks/custom-domains","Custom webhook domains",{"_path":260,"title":261},"/docs/webhooks/custom-subdomains","Custom webhook subdomains",{"_path":263,"title":264},"/docs/webhooks/custom-webhook-response","Custom response to webhooks",{"_path":266,"title":267},"/docs/webhooks/durable-webhooks","Durable webhooks: reliable delivery with automatic retries",{"_path":269,"title":270},"/docs/webhooks/functions/manipulating-json","JSON encoding",{"_path":272,"title":273},"/docs/webhooks/functions/make-http-request","Make HTTP request",{"_path":275,"title":276},"/docs/webhooks/functions/modify-request","Modify webhook headers, body, method and path",{"_path":278,"title":279},"/docs/webhooks/functions/multipart-form-data","Multipart form to JSON",{"_path":281,"title":282},"/docs/webhooks/functions/url-encoded-data","URL Encoded Form",{"_path":284,"title":285},"/docs/webhooks/functions/working-with-time","Working with time",{"_path":287,"title":288},"/docs/webhooks/functions/send-emails","Sending emails",{"_path":290,"title":291},"/docs/webhooks/functions/crypto-functions","Base64, encryption",{"_path":293,"title":294},"/docs/webhooks/functions/integrate-into-cicd","Integrating into CI/CD",{"_path":296,"title":228},"/docs/webhooks/functions/big-query",{"_path":298,"title":299},"/docs/webhooks/functions/accessing-metadata","Accessing metadata",{"_path":301,"title":302},"/docs/webhooks/functions/response-functions","Response (post-delivery) functions",{"_path":304,"title":305},"/docs/webhooks/functions/alerting","Alerting from functions",{"_path":307,"title":308},"/docs/webhooks/functions/helper-libraries","Helper libraries",{"_path":310,"title":311},"/docs/webhooks/functions/transform-webhook-payload","Transform a webhook payload and headers before forwarding",{"_path":313,"title":314},"/docs/webhooks/functions/filter-webhooks","Filter or drop webhooks before forwarding",{"_path":316,"title":317},"/docs/webhooks/functions/provider-helpers","Provider-aware function helpers",{"_path":319,"title":320},"/docs/webhooks/functions/kv-store","KV store for functions: persist state, dedupe and cache with TTL",{"_path":322,"title":323},"/docs/webhooks/functions/file-store","File store for functions: save files and share pre-signed URLs",{"_path":325,"title":326},"/docs/webhooks/functions","Webhook transformations (functions): modify body, headers, method and path",{"_path":328,"title":329},"/docs/webhooks/internal/localhost","Receive webhooks on localhost with the relay CLI",{"_path":331,"title":332},"/docs/webhooks/large-webhooks","Large Webhooks",{"_path":334,"title":335},"/docs/webhooks/outbound-throttling","Outbound throttling: control webhook delivery speed",{"_path":337,"title":338},"/docs/webhooks/polling-webhooks","Polling webhooks with /v1/events",{"_path":340,"title":341},"/docs/webhooks/public/public-destination","Forward to public URL",{"_path":343,"title":344},"/docs/webhooks/public/multiple-destination-urls","Forward webhooks to multiple destinations",{"_path":346,"title":347},"/docs/webhooks/replay-on-agent-connect","Webhook replay on agent connect: recover missed webhooks",{"_path":349,"title":350},"/docs/webhooks/static-ip-address","Static IP Address",{"_path":352,"title":353},"/docs/webhooks/tls-ssl-errors","Fix TLS/SSL handshake errors: unsupported protocol, wrong version number, handshake failure",{"_path":355,"title":356},"/docs/webhooks/websocket-server","Connecting to websocket server",{"_path":358,"title":359},"/docs/webhooks/zero-retention-buckets","Zero Retention Buckets",{"_path":248,"_dir":361,"_draft":362,"_partial":362,"_locale":363,"title":249,"description":364,"intro":365,"type":366,"order":367,"section":361,"level":368,"layout":369,"tags":370,"faq":373,"body":386,"_type":2087,"_id":2088,"_source":2089,"_file":2090,"_stem":2091,"_extension":2092,"sitemap":2093},"auth",false,"","Verify Stripe, Standard Webhooks (Svix, Clerk, Resend), Slack, Shopify and GitHub webhook signatures on the input, and re-sign deliveries so retries and replays pass your server's timestamp check.","Check the provider's signature when a webhook arrives, before it is logged or forwarded. Turn on re-sign on delivery so retried, replayed and transformed webhooks still pass your server's own verification.","example",6,"Beginner","doc",[371,372],"Security","Webhooks",[374,377,380,383],{"q":375,"a":376},"Which webhook providers can Webhook Relay verify without a function?","Stripe, Standard Webhooks (Svix and the senders built on it, such as Clerk and Resend), Slack, Shopify and GitHub. Pick the provider in the input's Signature verification settings and paste the signing secret. For any other provider, verify the signature with a function on the input.",{"q":378,"a":379},"What is re-sign on delivery?","Webhook Relay signs each delivery again with the same signing secret, the current time and the body actually delivered. Stripe, Standard Webhooks and Slack sign a timestamp and SDKs reject signatures older than 5 minutes, so without re-signing a webhook that is retried, replayed or delivered to an agent that was offline fails verification on your server. Your code keeps verifying with its existing secret.",{"q":381,"a":382},"What happens to a webhook with an invalid signature?","It is rejected with HTTP 401 at the edge. No webhook log is written, no function runs and nothing is forwarded to your outputs or agents.",{"q":384,"a":385},"Is signature verification available on the free plan?","Yes. Built-in signature verification and re-signing are available on every plan.",{"type":387,"children":388,"toc":2073},"root",[389,421,433,440,605,618,631,637,723,733,745,757,764,846,851,872,917,922,935,940,950,956,969,1168,1313,1362,1368,1521,1526,1532,1550,1914,1941,1954,1960,1966,1971,2016,2021,2026,2067],{"type":390,"tag":391,"props":392,"children":393},"element","p",{},[394,401,403,410,412,419],{"type":390,"tag":395,"props":396,"children":397},"strong",{},[398],{"type":399,"value":400},"text","Open the input, go to Security → Signature verification, choose the provider, paste its signing secret and click Save.",{"type":399,"value":402}," From then on, a webhook with a missing, invalid or expired signature gets a ",{"type":390,"tag":404,"props":405,"children":407},"code",{"className":406},[],[408],{"type":399,"value":409},"401",{"type":399,"value":411}," and is never logged or forwarded. ",{"type":390,"tag":413,"props":414,"children":416},"a",{"href":415},"#turn-it-on-in-the-dashboard",[417],{"type":399,"value":418},"Step-by-step setup",{"type":399,"value":420},".",{"type":390,"tag":391,"props":422,"children":423},{},[424,426,431],{"type":399,"value":425},"Optional: turn on ",{"type":390,"tag":395,"props":427,"children":428},{},[429],{"type":399,"value":430},"re-sign on delivery",{"type":399,"value":432}," so retries and replays of verified webhooks still pass your server's 5-minute timestamp check. Available on every plan.",{"type":390,"tag":434,"props":435,"children":437},"h2",{"id":436},"supported-providers",[438],{"type":399,"value":439},"Supported providers",{"type":390,"tag":441,"props":442,"children":443},"table",{},[444,468],{"type":390,"tag":445,"props":446,"children":447},"thead",{},[448],{"type":390,"tag":449,"props":450,"children":451},"tr",{},[452,458,463],{"type":390,"tag":453,"props":454,"children":455},"th",{},[456],{"type":399,"value":457},"Provider",{"type":390,"tag":453,"props":459,"children":460},{},[461],{"type":399,"value":462},"Header checked",{"type":390,"tag":453,"props":464,"children":465},{},[466],{"type":399,"value":467},"Arrival tolerance",{"type":390,"tag":469,"props":470,"children":471},"tbody",{},[472,498,532,556,581],{"type":390,"tag":449,"props":473,"children":474},{},[475,484,493],{"type":390,"tag":476,"props":477,"children":478},"td",{},[479],{"type":390,"tag":395,"props":480,"children":481},{},[482],{"type":399,"value":483},"Stripe",{"type":390,"tag":476,"props":485,"children":486},{},[487],{"type":390,"tag":404,"props":488,"children":490},{"className":489},[],[491],{"type":399,"value":492},"Stripe-Signature",{"type":390,"tag":476,"props":494,"children":495},{},[496],{"type":399,"value":497},"5 min",{"type":390,"tag":449,"props":499,"children":500},{},[501,511,528],{"type":390,"tag":476,"props":502,"children":503},{},[504,509],{"type":390,"tag":395,"props":505,"children":506},{},[507],{"type":399,"value":508},"Standard Webhooks / Svix",{"type":399,"value":510}," (Clerk, Resend, …)",{"type":390,"tag":476,"props":512,"children":513},{},[514,520,522],{"type":390,"tag":404,"props":515,"children":517},{"className":516},[],[518],{"type":399,"value":519},"webhook-signature",{"type":399,"value":521}," or ",{"type":390,"tag":404,"props":523,"children":525},{"className":524},[],[526],{"type":399,"value":527},"svix-signature",{"type":390,"tag":476,"props":529,"children":530},{},[531],{"type":399,"value":497},{"type":390,"tag":449,"props":533,"children":534},{},[535,543,552],{"type":390,"tag":476,"props":536,"children":537},{},[538],{"type":390,"tag":395,"props":539,"children":540},{},[541],{"type":399,"value":542},"Slack",{"type":390,"tag":476,"props":544,"children":545},{},[546],{"type":390,"tag":404,"props":547,"children":549},{"className":548},[],[550],{"type":399,"value":551},"X-Slack-Signature",{"type":390,"tag":476,"props":553,"children":554},{},[555],{"type":399,"value":497},{"type":390,"tag":449,"props":557,"children":558},{},[559,567,576],{"type":390,"tag":476,"props":560,"children":561},{},[562],{"type":390,"tag":395,"props":563,"children":564},{},[565],{"type":399,"value":566},"Shopify",{"type":390,"tag":476,"props":568,"children":569},{},[570],{"type":390,"tag":404,"props":571,"children":573},{"className":572},[],[574],{"type":399,"value":575},"X-Shopify-Hmac-Sha256",{"type":390,"tag":476,"props":577,"children":578},{},[579],{"type":399,"value":580},"No signed timestamp",{"type":390,"tag":449,"props":582,"children":583},{},[584,592,601],{"type":390,"tag":476,"props":585,"children":586},{},[587],{"type":390,"tag":395,"props":588,"children":589},{},[590],{"type":399,"value":591},"GitHub",{"type":390,"tag":476,"props":593,"children":594},{},[595],{"type":390,"tag":404,"props":596,"children":598},{"className":597},[],[599],{"type":399,"value":600},"X-Hub-Signature-256",{"type":390,"tag":476,"props":602,"children":603},{},[604],{"type":399,"value":580},{"type":390,"tag":391,"props":606,"children":607},{},[608,610,616],{"type":399,"value":609},"Webhook Relay applies the tolerance when the request reaches your input. Your receiver applies its own timestamp check when the delivery reaches it. ",{"type":390,"tag":413,"props":611,"children":613},{"href":612},"#re-sign-on-delivery",[614],{"type":399,"value":615},"Re-sign on delivery",{"type":399,"value":617}," refreshes the timestamp for verified webhooks.",{"type":390,"tag":391,"props":619,"children":620},{},[621,623,629],{"type":399,"value":622},"Using a provider that isn't on this list? See ",{"type":390,"tag":413,"props":624,"children":626},{"href":625},"#other-providers-verify-with-a-function",[627],{"type":399,"value":628},"other providers",{"type":399,"value":630}," below.",{"type":390,"tag":434,"props":632,"children":634},{"id":633},"turn-it-on-in-the-dashboard",[635],{"type":399,"value":636},"Turn it on in the dashboard",{"type":390,"tag":638,"props":639,"children":640},"ol",{},[641,654,670,680,700,711],{"type":390,"tag":642,"props":643,"children":644},"li",{},[645,647,652],{"type":399,"value":646},"Open ",{"type":390,"tag":395,"props":648,"children":649},{},[650],{"type":399,"value":651},"Buckets",{"type":399,"value":653},", then the bucket, then the input. The input settings open in a dialog.",{"type":390,"tag":642,"props":655,"children":656},{},[657,659,663,665,669],{"type":399,"value":658},"Under ",{"type":390,"tag":395,"props":660,"children":661},{},[662],{"type":399,"value":371},{"type":399,"value":664},", select ",{"type":390,"tag":395,"props":666,"children":667},{},[668],{"type":399,"value":249},{"type":399,"value":420},{"type":390,"tag":642,"props":671,"children":672},{},[673,675,679],{"type":399,"value":674},"Pick the ",{"type":390,"tag":395,"props":676,"children":677},{},[678],{"type":399,"value":457},{"type":399,"value":420},{"type":390,"tag":642,"props":681,"children":682},{},[683,685,690,692,698],{"type":399,"value":684},"Paste the provider's ",{"type":390,"tag":395,"props":686,"children":687},{},[688],{"type":399,"value":689},"Signing secret",{"type":399,"value":691}," (see ",{"type":390,"tag":413,"props":693,"children":695},{"href":694},"#which-secret-to-paste",[696],{"type":399,"value":697},"which secret to paste",{"type":399,"value":699},"). It's encrypted at rest and never shown again.",{"type":390,"tag":642,"props":701,"children":702},{},[703,705,709],{"type":399,"value":704},"Optionally turn on ",{"type":390,"tag":395,"props":706,"children":707},{},[708],{"type":399,"value":615},{"type":399,"value":710},". Leave it off if nothing downstream checks the signature.",{"type":390,"tag":642,"props":712,"children":713},{},[714,716,721],{"type":399,"value":715},"Click ",{"type":390,"tag":395,"props":717,"children":718},{},[719],{"type":399,"value":720},"Save",{"type":399,"value":722},". From now on, webhooks to this input need a valid signature.",{"type":390,"tag":724,"props":725,"children":732},"screenshot",{"alt":726,"caption":727,"height":728,"src":729,"url":730,"width":731},"Signature verification settings for an input: Provider set to Stripe, a masked signing secret checked against the Stripe-Signature header, and the Re-sign on delivery switch turned on, with Cancel and Save buttons","Provider, signing secret and re-sign on delivery, in the input's Signature verification settings.",550,"/images/docs/webhooks/auth/signature-verification.webp","my.webhookrelay.com/buckets",908,[],{"type":390,"tag":391,"props":734,"children":735},{},[736,738,743],{"type":399,"value":737},"To test it, use a test input. Send an event from the provider and check that it appears in the bucket's logs. Save a deliberately wrong secret and send another: the sender gets a ",{"type":390,"tag":404,"props":739,"children":741},{"className":740},[],[742],{"type":399,"value":409},{"type":399,"value":744}," and nothing new is logged. Then save the correct secret again and confirm the next event goes through.",{"type":390,"tag":391,"props":746,"children":747},{},[748,750,755],{"type":399,"value":749},"To turn verification off, set the provider back to ",{"type":390,"tag":395,"props":751,"children":752},{},[753],{"type":399,"value":754},"Off",{"type":399,"value":756},". To change the secret, paste a new one and save. Leaving the field empty keeps the stored secret.",{"type":390,"tag":758,"props":759,"children":761},"h3",{"id":760},"which-secret-to-paste",[762],{"type":399,"value":763},"Which secret to paste",{"type":390,"tag":765,"props":766,"children":767},"ul",{},[768,793,809,826,836],{"type":390,"tag":642,"props":769,"children":770},{},[771,776,778,784,786,791],{"type":390,"tag":395,"props":772,"children":773},{},[774],{"type":399,"value":775},"Stripe:",{"type":399,"value":777}," the endpoint's signing secret, ",{"type":390,"tag":404,"props":779,"children":781},{"className":780},[],[782],{"type":399,"value":783},"whsec_…",{"type":399,"value":785}," (Workbench → Webhooks → the endpoint → ",{"type":390,"tag":395,"props":787,"children":788},{},[789],{"type":399,"value":790},"Click to reveal",{"type":399,"value":792},").",{"type":390,"tag":642,"props":794,"children":795},{},[796,801,802,807],{"type":390,"tag":395,"props":797,"children":798},{},[799],{"type":399,"value":800},"Standard Webhooks / Svix:",{"type":399,"value":777},{"type":390,"tag":404,"props":803,"children":805},{"className":804},[],[806],{"type":399,"value":783},{"type":399,"value":808}," followed by base64.",{"type":390,"tag":642,"props":810,"children":811},{},[812,817,819,824],{"type":390,"tag":395,"props":813,"children":814},{},[815],{"type":399,"value":816},"Slack:",{"type":399,"value":818}," the app's signing secret, on its ",{"type":390,"tag":395,"props":820,"children":821},{},[822],{"type":399,"value":823},"Basic Information",{"type":399,"value":825}," page.",{"type":390,"tag":642,"props":827,"children":828},{},[829,834],{"type":390,"tag":395,"props":830,"children":831},{},[832],{"type":399,"value":833},"Shopify:",{"type":399,"value":835}," the app's client secret. For a webhook created in the store admin, the signing secret shown there.",{"type":390,"tag":642,"props":837,"children":838},{},[839,844],{"type":390,"tag":395,"props":840,"children":841},{},[842],{"type":399,"value":843},"GitHub:",{"type":399,"value":845}," the secret set on the repository, organization or app webhook.",{"type":390,"tag":434,"props":847,"children":849},{"id":848},"re-sign-on-delivery",[850],{"type":399,"value":615},{"type":390,"tag":391,"props":852,"children":853},{},[854,856,862,864,870],{"type":399,"value":855},"Stripe, Standard Webhooks and Slack put a timestamp inside the signature. Their SDKs refuse a webhook whose timestamp is more than 5 minutes old. For example, Stripe's ",{"type":390,"tag":404,"props":857,"children":859},{"className":858},[],[860],{"type":399,"value":861},"constructEvent",{"type":399,"value":863}," throws ",{"type":390,"tag":404,"props":865,"children":867},{"className":866},[],[868],{"type":399,"value":869},"Timestamp outside the tolerance zone",{"type":399,"value":871},". That is a good defence against replay attacks, but it also rejects authentic webhooks that arrive late:",{"type":390,"tag":765,"props":873,"children":874},{},[875,888,893,906],{"type":390,"tag":642,"props":876,"children":877},{},[878,880,886],{"type":399,"value":879},"a delivery that Webhook Relay ",{"type":390,"tag":413,"props":881,"children":883},{"href":882},"/features/durable-retries/",[884],{"type":399,"value":885},"retries",{"type":399,"value":887}," after your server was down",{"type":390,"tag":642,"props":889,"children":890},{},[891],{"type":399,"value":892},"a webhook you replay from the logs",{"type":390,"tag":642,"props":894,"children":895},{},[896,898,904],{"type":399,"value":897},"a webhook queued for a ",{"type":390,"tag":413,"props":899,"children":901},{"href":900},"/docs/webhooks/internal/localhost/",[902],{"type":399,"value":903},"relay agent",{"type":399,"value":905}," that was offline, delivered when it reconnects",{"type":390,"tag":642,"props":907,"children":908},{},[909,911],{"type":399,"value":910},"a webhook held back by ",{"type":390,"tag":413,"props":912,"children":914},{"href":913},"/features/throttling/",[915],{"type":399,"value":916},"throttling",{"type":390,"tag":391,"props":918,"children":919},{},[920],{"type":399,"value":921},"With re-sign on, each delivery attempt is signed again with the current time, the same secret and the body that is actually sent. Your server's existing verification code passes, with no change to the secret or the tolerance.",{"type":390,"tag":391,"props":923,"children":924},{},[925,927,933],{"type":399,"value":926},"For Shopify and GitHub, which sign only the body, re-signing keeps the signature valid after an input or output ",{"type":390,"tag":413,"props":928,"children":930},{"href":929},"/docs/webhooks/functions/",[931],{"type":399,"value":932},"function",{"type":399,"value":934}," changes the payload.",{"type":390,"tag":391,"props":936,"children":937},{},[938],{"type":399,"value":939},"Re-signing applies to deliveries to public URLs and to relay agents. If a delivery can't be signed, it goes out with the original headers rather than not at all, and the error is logged.",{"type":390,"tag":941,"props":942,"children":944},"callout",{"label":943},"Same secret, end to end",[945],{"type":390,"tag":391,"props":946,"children":947},{},[948],{"type":399,"value":949},"Re-signing uses the same secret as verification, so your destination keeps verifying with the provider's secret. Only webhooks that passed verification on arrival are re-signed. A forged request can't be made to look authentic, and a webhook whose signature had already expired when it reached Webhook Relay is rejected, not rescued.",{"type":390,"tag":434,"props":951,"children":953},{"id":952},"set-it-through-the-api",[954],{"type":399,"value":955},"Set it through the API",{"type":390,"tag":391,"props":957,"children":958},{},[959,961,967],{"type":399,"value":960},"Send a ",{"type":390,"tag":404,"props":962,"children":964},{"className":963},[],[965],{"type":399,"value":966},"verification",{"type":399,"value":968}," block when you create or update an input:",{"type":390,"tag":970,"props":971,"children":972},"code-block",{},[973],{"type":390,"tag":974,"props":975,"children":979},"pre",{"className":976,"code":977,"language":978,"meta":363,"style":363},"language-bash shiki shiki-themes github-dark","curl -X PUT \\\n  \"https://my.webhookrelay.com/v1/buckets/$BUCKET_ID/inputs/$INPUT_ID\" \\\n  -u \"$RELAY_KEY:$RELAY_SECRET\" \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"verification\": {\n      \"provider\": \"stripe\",\n      \"secret\": \"whsec_...\",\n      \"resign\": true\n    }\n  }'\n","bash",[980],{"type":390,"tag":404,"props":981,"children":982},{"__ignoreMap":363},[983,1012,1046,1083,1101,1115,1123,1132,1141,1150,1159],{"type":390,"tag":984,"props":985,"children":988},"span",{"class":986,"line":987},"line",1,[989,995,1001,1007],{"type":390,"tag":984,"props":990,"children":992},{"style":991},"--shiki-default:#B392F0",[993],{"type":399,"value":994},"curl",{"type":390,"tag":984,"props":996,"children":998},{"style":997},"--shiki-default:#79B8FF",[999],{"type":399,"value":1000}," -X",{"type":390,"tag":984,"props":1002,"children":1004},{"style":1003},"--shiki-default:#9ECBFF",[1005],{"type":399,"value":1006}," PUT",{"type":390,"tag":984,"props":1008,"children":1009},{"style":997},[1010],{"type":399,"value":1011}," \\\n",{"type":390,"tag":984,"props":1013,"children":1015},{"class":986,"line":1014},2,[1016,1021,1027,1032,1037,1042],{"type":390,"tag":984,"props":1017,"children":1018},{"style":1003},[1019],{"type":399,"value":1020},"  \"https://my.webhookrelay.com/v1/buckets/",{"type":390,"tag":984,"props":1022,"children":1024},{"style":1023},"--shiki-default:#E1E4E8",[1025],{"type":399,"value":1026},"$BUCKET_ID",{"type":390,"tag":984,"props":1028,"children":1029},{"style":1003},[1030],{"type":399,"value":1031},"/inputs/",{"type":390,"tag":984,"props":1033,"children":1034},{"style":1023},[1035],{"type":399,"value":1036},"$INPUT_ID",{"type":390,"tag":984,"props":1038,"children":1039},{"style":1003},[1040],{"type":399,"value":1041},"\"",{"type":390,"tag":984,"props":1043,"children":1044},{"style":997},[1045],{"type":399,"value":1011},{"type":390,"tag":984,"props":1047,"children":1049},{"class":986,"line":1048},3,[1050,1055,1060,1065,1070,1075,1079],{"type":390,"tag":984,"props":1051,"children":1052},{"style":997},[1053],{"type":399,"value":1054},"  -u",{"type":390,"tag":984,"props":1056,"children":1057},{"style":1003},[1058],{"type":399,"value":1059}," \"",{"type":390,"tag":984,"props":1061,"children":1062},{"style":1023},[1063],{"type":399,"value":1064},"$RELAY_KEY",{"type":390,"tag":984,"props":1066,"children":1067},{"style":1003},[1068],{"type":399,"value":1069},":",{"type":390,"tag":984,"props":1071,"children":1072},{"style":1023},[1073],{"type":399,"value":1074},"$RELAY_SECRET",{"type":390,"tag":984,"props":1076,"children":1077},{"style":1003},[1078],{"type":399,"value":1041},{"type":390,"tag":984,"props":1080,"children":1081},{"style":997},[1082],{"type":399,"value":1011},{"type":390,"tag":984,"props":1084,"children":1086},{"class":986,"line":1085},4,[1087,1092,1097],{"type":390,"tag":984,"props":1088,"children":1089},{"style":997},[1090],{"type":399,"value":1091},"  -H",{"type":390,"tag":984,"props":1093,"children":1094},{"style":1003},[1095],{"type":399,"value":1096}," 'Content-Type: application/json'",{"type":390,"tag":984,"props":1098,"children":1099},{"style":997},[1100],{"type":399,"value":1011},{"type":390,"tag":984,"props":1102,"children":1104},{"class":986,"line":1103},5,[1105,1110],{"type":390,"tag":984,"props":1106,"children":1107},{"style":997},[1108],{"type":399,"value":1109},"  -d",{"type":390,"tag":984,"props":1111,"children":1112},{"style":1003},[1113],{"type":399,"value":1114}," '{\n",{"type":390,"tag":984,"props":1116,"children":1117},{"class":986,"line":367},[1118],{"type":390,"tag":984,"props":1119,"children":1120},{"style":1003},[1121],{"type":399,"value":1122},"    \"verification\": {\n",{"type":390,"tag":984,"props":1124,"children":1126},{"class":986,"line":1125},7,[1127],{"type":390,"tag":984,"props":1128,"children":1129},{"style":1003},[1130],{"type":399,"value":1131},"      \"provider\": \"stripe\",\n",{"type":390,"tag":984,"props":1133,"children":1135},{"class":986,"line":1134},8,[1136],{"type":390,"tag":984,"props":1137,"children":1138},{"style":1003},[1139],{"type":399,"value":1140},"      \"secret\": \"whsec_...\",\n",{"type":390,"tag":984,"props":1142,"children":1144},{"class":986,"line":1143},9,[1145],{"type":390,"tag":984,"props":1146,"children":1147},{"style":1003},[1148],{"type":399,"value":1149},"      \"resign\": true\n",{"type":390,"tag":984,"props":1151,"children":1153},{"class":986,"line":1152},10,[1154],{"type":390,"tag":984,"props":1155,"children":1156},{"style":1003},[1157],{"type":399,"value":1158},"    }\n",{"type":390,"tag":984,"props":1160,"children":1162},{"class":986,"line":1161},11,[1163],{"type":390,"tag":984,"props":1164,"children":1165},{"style":1003},[1166],{"type":399,"value":1167},"  }'\n",{"type":390,"tag":441,"props":1169,"children":1170},{},[1171,1187],{"type":390,"tag":445,"props":1172,"children":1173},{},[1174],{"type":390,"tag":449,"props":1175,"children":1176},{},[1177,1182],{"type":390,"tag":453,"props":1178,"children":1179},{},[1180],{"type":399,"value":1181},"Field",{"type":390,"tag":453,"props":1183,"children":1184},{},[1185],{"type":399,"value":1186},"Notes",{"type":390,"tag":469,"props":1188,"children":1189},{},[1190,1242,1259,1289],{"type":390,"tag":449,"props":1191,"children":1192},{},[1193,1202],{"type":390,"tag":476,"props":1194,"children":1195},{},[1196],{"type":390,"tag":404,"props":1197,"children":1199},{"className":1198},[],[1200],{"type":399,"value":1201},"provider",{"type":390,"tag":476,"props":1203,"children":1204},{},[1205,1211,1213,1219,1220,1226,1227,1233,1234,1240],{"type":390,"tag":404,"props":1206,"children":1208},{"className":1207},[],[1209],{"type":399,"value":1210},"stripe",{"type":399,"value":1212},", ",{"type":390,"tag":404,"props":1214,"children":1216},{"className":1215},[],[1217],{"type":399,"value":1218},"standard_webhooks",{"type":399,"value":1212},{"type":390,"tag":404,"props":1221,"children":1223},{"className":1222},[],[1224],{"type":399,"value":1225},"slack",{"type":399,"value":1212},{"type":390,"tag":404,"props":1228,"children":1230},{"className":1229},[],[1231],{"type":399,"value":1232},"shopify",{"type":399,"value":521},{"type":390,"tag":404,"props":1235,"children":1237},{"className":1236},[],[1238],{"type":399,"value":1239},"github",{"type":399,"value":1241},". An empty string turns verification off.",{"type":390,"tag":449,"props":1243,"children":1244},{},[1245,1254],{"type":390,"tag":476,"props":1246,"children":1247},{},[1248],{"type":390,"tag":404,"props":1249,"children":1251},{"className":1250},[],[1252],{"type":399,"value":1253},"secret",{"type":390,"tag":476,"props":1255,"children":1256},{},[1257],{"type":399,"value":1258},"Write-only. It's required when you turn verification on or change the provider. On an update with the same provider, leave it out to keep the stored secret.",{"type":390,"tag":449,"props":1260,"children":1261},{},[1262,1271],{"type":390,"tag":476,"props":1263,"children":1264},{},[1265],{"type":390,"tag":404,"props":1266,"children":1268},{"className":1267},[],[1269],{"type":399,"value":1270},"resign",{"type":390,"tag":476,"props":1272,"children":1273},{},[1274,1280,1282,1288],{"type":390,"tag":404,"props":1275,"children":1277},{"className":1276},[],[1278],{"type":399,"value":1279},"true",{"type":399,"value":1281}," re-signs every delivery. Defaults to ",{"type":390,"tag":404,"props":1283,"children":1285},{"className":1284},[],[1286],{"type":399,"value":1287},"false",{"type":399,"value":420},{"type":390,"tag":449,"props":1290,"children":1291},{},[1292,1301],{"type":390,"tag":476,"props":1293,"children":1294},{},[1295],{"type":390,"tag":404,"props":1296,"children":1298},{"className":1297},[],[1299],{"type":399,"value":1300},"secret_set",{"type":390,"tag":476,"props":1302,"children":1303},{},[1304,1306,1311],{"type":399,"value":1305},"Read-only. ",{"type":390,"tag":404,"props":1307,"children":1309},{"className":1308},[],[1310],{"type":399,"value":1279},{"type":399,"value":1312}," when a secret is stored. The secret itself is never returned.",{"type":390,"tag":391,"props":1314,"children":1315},{},[1316,1318,1324,1326,1332,1333,1339,1341,1347,1349,1354,1356],{"type":399,"value":1317},"The ",{"type":390,"tag":413,"props":1319,"children":1321},{"href":1320},"/docs/mcp/",[1322],{"type":399,"value":1323},"MCP server",{"type":399,"value":1325}," tools ",{"type":390,"tag":404,"props":1327,"children":1329},{"className":1328},[],[1330],{"type":399,"value":1331},"create_input",{"type":399,"value":1212},{"type":390,"tag":404,"props":1334,"children":1336},{"className":1335},[],[1337],{"type":399,"value":1338},"update_input",{"type":399,"value":1340}," and ",{"type":390,"tag":404,"props":1342,"children":1344},{"className":1343},[],[1345],{"type":399,"value":1346},"get_input",{"type":399,"value":1348}," take and return the same ",{"type":390,"tag":404,"props":1350,"children":1352},{"className":1351},[],[1353],{"type":399,"value":966},{"type":399,"value":1355}," block, so an AI agent can turn it on for you: ",{"type":390,"tag":1357,"props":1358,"children":1359},"em",{},[1360],{"type":399,"value":1361},"\"Verify Stripe signatures on my billing bucket's input and re-sign deliveries.\"",{"type":390,"tag":434,"props":1363,"children":1365},{"id":1364},"what-a-rejected-sender-sees",[1366],{"type":399,"value":1367},"What a rejected sender sees",{"type":390,"tag":441,"props":1369,"children":1370},{},[1371,1392],{"type":390,"tag":445,"props":1372,"children":1373},{},[1374],{"type":390,"tag":449,"props":1375,"children":1376},{},[1377,1382,1387],{"type":390,"tag":453,"props":1378,"children":1379},{},[1380],{"type":399,"value":1381},"Status",{"type":390,"tag":453,"props":1383,"children":1384},{},[1385],{"type":399,"value":1386},"Body",{"type":390,"tag":453,"props":1388,"children":1389},{},[1390],{"type":399,"value":1391},"When",{"type":390,"tag":469,"props":1393,"children":1394},{},[1395,1420,1445,1470,1495],{"type":390,"tag":449,"props":1396,"children":1397},{},[1398,1406,1415],{"type":390,"tag":476,"props":1399,"children":1400},{},[1401],{"type":390,"tag":404,"props":1402,"children":1404},{"className":1403},[],[1405],{"type":399,"value":409},{"type":390,"tag":476,"props":1407,"children":1408},{},[1409],{"type":390,"tag":404,"props":1410,"children":1412},{"className":1411},[],[1413],{"type":399,"value":1414},"webhook signature verification failed: missing signature: no Stripe-Signature header",{"type":390,"tag":476,"props":1416,"children":1417},{},[1418],{"type":399,"value":1419},"The signature header is missing",{"type":390,"tag":449,"props":1421,"children":1422},{},[1423,1431,1440],{"type":390,"tag":476,"props":1424,"children":1425},{},[1426],{"type":390,"tag":404,"props":1427,"children":1429},{"className":1428},[],[1430],{"type":399,"value":409},{"type":390,"tag":476,"props":1432,"children":1433},{},[1434],{"type":390,"tag":404,"props":1435,"children":1437},{"className":1436},[],[1438],{"type":399,"value":1439},"webhook signature verification failed: invalid signature: Stripe-Signature does not match",{"type":390,"tag":476,"props":1441,"children":1442},{},[1443],{"type":399,"value":1444},"Wrong secret, or the body was changed",{"type":390,"tag":449,"props":1446,"children":1447},{},[1448,1456,1465],{"type":390,"tag":476,"props":1449,"children":1450},{},[1451],{"type":390,"tag":404,"props":1452,"children":1454},{"className":1453},[],[1455],{"type":399,"value":409},{"type":390,"tag":476,"props":1457,"children":1458},{},[1459],{"type":390,"tag":404,"props":1460,"children":1462},{"className":1461},[],[1463],{"type":399,"value":1464},"webhook signature verification failed: signature timestamp outside the tolerance window",{"type":390,"tag":476,"props":1466,"children":1467},{},[1468],{"type":399,"value":1469},"The signed timestamp is more than 5 minutes off",{"type":390,"tag":449,"props":1471,"children":1472},{},[1473,1481,1490],{"type":390,"tag":476,"props":1474,"children":1475},{},[1476],{"type":390,"tag":404,"props":1477,"children":1479},{"className":1478},[],[1480],{"type":399,"value":409},{"type":390,"tag":476,"props":1482,"children":1483},{},[1484],{"type":390,"tag":404,"props":1485,"children":1487},{"className":1486},[],[1488],{"type":399,"value":1489},"signature verification is enabled but no signing secret is configured",{"type":390,"tag":476,"props":1491,"children":1492},{},[1493],{"type":399,"value":1494},"Verification is on but no secret is stored",{"type":390,"tag":449,"props":1496,"children":1497},{},[1498,1507,1516],{"type":390,"tag":476,"props":1499,"children":1500},{},[1501],{"type":390,"tag":404,"props":1502,"children":1504},{"className":1503},[],[1505],{"type":399,"value":1506},"503",{"type":390,"tag":476,"props":1508,"children":1509},{},[1510],{"type":390,"tag":404,"props":1511,"children":1513},{"className":1512},[],[1514],{"type":399,"value":1515},"signature verification temporarily unavailable",{"type":390,"tag":476,"props":1517,"children":1518},{},[1519],{"type":399,"value":1520},"The secret couldn't be loaded. The provider retries.",{"type":390,"tag":391,"props":1522,"children":1523},{},[1524],{"type":399,"value":1525},"Rejected requests don't create webhook logs, run functions or reach your outputs. Forged traffic can't fill your logs or leave payloads in your account.",{"type":390,"tag":434,"props":1527,"children":1529},{"id":1528},"other-providers-verify-with-a-function",[1530],{"type":399,"value":1531},"Other providers: verify with a function",{"type":390,"tag":391,"props":1533,"children":1534},{},[1535,1537,1541,1543,1548],{"type":399,"value":1536},"For providers that aren't built in, such as PagerDuty, Square, Twilio, Zendesk, DocuSign or your own systems, attach a ",{"type":390,"tag":413,"props":1538,"children":1539},{"href":929},[1540],{"type":399,"value":932},{"type":399,"value":1542}," to the input. The function recomputes the HMAC and stops forwarding with a ",{"type":390,"tag":404,"props":1544,"children":1546},{"className":1545},[],[1547],{"type":399,"value":409},{"type":399,"value":1549}," when it doesn't match. Adapt it to your provider's format: which bytes it signs, the header name and prefix, hex or base64, and whether a timestamp is included.",{"type":390,"tag":970,"props":1551,"children":1552},{},[1553],{"type":390,"tag":974,"props":1554,"children":1558},{"className":1555,"code":1556,"language":1557,"meta":363,"style":363},"language-lua shiki shiki-themes github-dark","local crypto = require('crypto')\n\n-- The secret comes from the function's config variables\nlocal secret = cfg:GetValue(\"WEBHOOK_SECRET\")\nlocal sig, err = crypto.hmac('sha256', r.RequestBody, secret)\nif err then error(err) end\n\n-- Change the header name and prefix to match your provider\nif \"v1=\" .. sig ~= r.RequestHeader[\"X-PagerDuty-Signature\"] then\n  r:SetResponseStatusCode(401)\n  r:SetResponseBody(\"invalid signature\")\n  r:StopForwarding()\n  return\nend\n","lua",[1559],{"type":390,"tag":404,"props":1560,"children":1561},{"__ignoreMap":363},[1562,1601,1610,1619,1662,1712,1745,1752,1760,1817,1846,1875,1897,1906],{"type":390,"tag":984,"props":1563,"children":1564},{"class":986,"line":987},[1565,1571,1576,1581,1586,1591,1596],{"type":390,"tag":984,"props":1566,"children":1568},{"style":1567},"--shiki-default:#F97583",[1569],{"type":399,"value":1570},"local",{"type":390,"tag":984,"props":1572,"children":1573},{"style":1023},[1574],{"type":399,"value":1575}," crypto ",{"type":390,"tag":984,"props":1577,"children":1578},{"style":1567},[1579],{"type":399,"value":1580},"=",{"type":390,"tag":984,"props":1582,"children":1583},{"style":997},[1584],{"type":399,"value":1585}," require",{"type":390,"tag":984,"props":1587,"children":1588},{"style":1023},[1589],{"type":399,"value":1590},"(",{"type":390,"tag":984,"props":1592,"children":1593},{"style":1003},[1594],{"type":399,"value":1595},"'crypto'",{"type":390,"tag":984,"props":1597,"children":1598},{"style":1023},[1599],{"type":399,"value":1600},")\n",{"type":390,"tag":984,"props":1602,"children":1603},{"class":986,"line":1014},[1604],{"type":390,"tag":984,"props":1605,"children":1607},{"emptyLinePlaceholder":1606},true,[1608],{"type":399,"value":1609},"\n",{"type":390,"tag":984,"props":1611,"children":1612},{"class":986,"line":1048},[1613],{"type":390,"tag":984,"props":1614,"children":1616},{"style":1615},"--shiki-default:#6A737D",[1617],{"type":399,"value":1618},"-- The secret comes from the function's config variables\n",{"type":390,"tag":984,"props":1620,"children":1621},{"class":986,"line":1085},[1622,1626,1631,1635,1640,1644,1649,1653,1658],{"type":390,"tag":984,"props":1623,"children":1624},{"style":1567},[1625],{"type":399,"value":1570},{"type":390,"tag":984,"props":1627,"children":1628},{"style":1023},[1629],{"type":399,"value":1630}," secret ",{"type":390,"tag":984,"props":1632,"children":1633},{"style":1567},[1634],{"type":399,"value":1580},{"type":390,"tag":984,"props":1636,"children":1637},{"style":991},[1638],{"type":399,"value":1639}," cfg",{"type":390,"tag":984,"props":1641,"children":1642},{"style":1023},[1643],{"type":399,"value":1069},{"type":390,"tag":984,"props":1645,"children":1646},{"style":997},[1647],{"type":399,"value":1648},"GetValue",{"type":390,"tag":984,"props":1650,"children":1651},{"style":1023},[1652],{"type":399,"value":1590},{"type":390,"tag":984,"props":1654,"children":1655},{"style":1003},[1656],{"type":399,"value":1657},"\"WEBHOOK_SECRET\"",{"type":390,"tag":984,"props":1659,"children":1660},{"style":1023},[1661],{"type":399,"value":1600},{"type":390,"tag":984,"props":1663,"children":1664},{"class":986,"line":1103},[1665,1669,1674,1678,1683,1688,1692,1697,1702,1707],{"type":390,"tag":984,"props":1666,"children":1667},{"style":1567},[1668],{"type":399,"value":1570},{"type":390,"tag":984,"props":1670,"children":1671},{"style":1023},[1672],{"type":399,"value":1673}," sig, err ",{"type":390,"tag":984,"props":1675,"children":1676},{"style":1567},[1677],{"type":399,"value":1580},{"type":390,"tag":984,"props":1679,"children":1680},{"style":1023},[1681],{"type":399,"value":1682}," crypto.",{"type":390,"tag":984,"props":1684,"children":1685},{"style":997},[1686],{"type":399,"value":1687},"hmac",{"type":390,"tag":984,"props":1689,"children":1690},{"style":1023},[1691],{"type":399,"value":1590},{"type":390,"tag":984,"props":1693,"children":1694},{"style":1003},[1695],{"type":399,"value":1696},"'sha256'",{"type":390,"tag":984,"props":1698,"children":1699},{"style":1023},[1700],{"type":399,"value":1701},", r.",{"type":390,"tag":984,"props":1703,"children":1704},{"style":991},[1705],{"type":399,"value":1706},"RequestBody",{"type":390,"tag":984,"props":1708,"children":1709},{"style":1023},[1710],{"type":399,"value":1711},", secret)\n",{"type":390,"tag":984,"props":1713,"children":1714},{"class":986,"line":367},[1715,1720,1725,1730,1735,1740],{"type":390,"tag":984,"props":1716,"children":1717},{"style":1567},[1718],{"type":399,"value":1719},"if",{"type":390,"tag":984,"props":1721,"children":1722},{"style":1023},[1723],{"type":399,"value":1724}," err ",{"type":390,"tag":984,"props":1726,"children":1727},{"style":1567},[1728],{"type":399,"value":1729},"then",{"type":390,"tag":984,"props":1731,"children":1732},{"style":997},[1733],{"type":399,"value":1734}," error",{"type":390,"tag":984,"props":1736,"children":1737},{"style":1023},[1738],{"type":399,"value":1739},"(err) ",{"type":390,"tag":984,"props":1741,"children":1742},{"style":1567},[1743],{"type":399,"value":1744},"end\n",{"type":390,"tag":984,"props":1746,"children":1747},{"class":986,"line":1125},[1748],{"type":390,"tag":984,"props":1749,"children":1750},{"emptyLinePlaceholder":1606},[1751],{"type":399,"value":1609},{"type":390,"tag":984,"props":1753,"children":1754},{"class":986,"line":1134},[1755],{"type":390,"tag":984,"props":1756,"children":1757},{"style":1615},[1758],{"type":399,"value":1759},"-- Change the header name and prefix to match your provider\n",{"type":390,"tag":984,"props":1761,"children":1762},{"class":986,"line":1143},[1763,1767,1772,1777,1782,1787,1792,1797,1802,1807,1812],{"type":390,"tag":984,"props":1764,"children":1765},{"style":1567},[1766],{"type":399,"value":1719},{"type":390,"tag":984,"props":1768,"children":1769},{"style":1003},[1770],{"type":399,"value":1771}," \"v1=\" ",{"type":390,"tag":984,"props":1773,"children":1774},{"style":1567},[1775],{"type":399,"value":1776},"..",{"type":390,"tag":984,"props":1778,"children":1779},{"style":1023},[1780],{"type":399,"value":1781}," sig ",{"type":390,"tag":984,"props":1783,"children":1784},{"style":1567},[1785],{"type":399,"value":1786},"~=",{"type":390,"tag":984,"props":1788,"children":1789},{"style":1023},[1790],{"type":399,"value":1791}," r.",{"type":390,"tag":984,"props":1793,"children":1794},{"style":991},[1795],{"type":399,"value":1796},"RequestHeader",{"type":390,"tag":984,"props":1798,"children":1799},{"style":1023},[1800],{"type":399,"value":1801},"[",{"type":390,"tag":984,"props":1803,"children":1804},{"style":1003},[1805],{"type":399,"value":1806},"\"X-PagerDuty-Signature\"",{"type":390,"tag":984,"props":1808,"children":1809},{"style":1023},[1810],{"type":399,"value":1811},"] ",{"type":390,"tag":984,"props":1813,"children":1814},{"style":1567},[1815],{"type":399,"value":1816},"then\n",{"type":390,"tag":984,"props":1818,"children":1819},{"class":986,"line":1152},[1820,1825,1829,1834,1838,1842],{"type":390,"tag":984,"props":1821,"children":1822},{"style":991},[1823],{"type":399,"value":1824},"  r",{"type":390,"tag":984,"props":1826,"children":1827},{"style":1023},[1828],{"type":399,"value":1069},{"type":390,"tag":984,"props":1830,"children":1831},{"style":997},[1832],{"type":399,"value":1833},"SetResponseStatusCode",{"type":390,"tag":984,"props":1835,"children":1836},{"style":1023},[1837],{"type":399,"value":1590},{"type":390,"tag":984,"props":1839,"children":1840},{"style":997},[1841],{"type":399,"value":409},{"type":390,"tag":984,"props":1843,"children":1844},{"style":1023},[1845],{"type":399,"value":1600},{"type":390,"tag":984,"props":1847,"children":1848},{"class":986,"line":1161},[1849,1853,1857,1862,1866,1871],{"type":390,"tag":984,"props":1850,"children":1851},{"style":991},[1852],{"type":399,"value":1824},{"type":390,"tag":984,"props":1854,"children":1855},{"style":1023},[1856],{"type":399,"value":1069},{"type":390,"tag":984,"props":1858,"children":1859},{"style":997},[1860],{"type":399,"value":1861},"SetResponseBody",{"type":390,"tag":984,"props":1863,"children":1864},{"style":1023},[1865],{"type":399,"value":1590},{"type":390,"tag":984,"props":1867,"children":1868},{"style":1003},[1869],{"type":399,"value":1870},"\"invalid signature\"",{"type":390,"tag":984,"props":1872,"children":1873},{"style":1023},[1874],{"type":399,"value":1600},{"type":390,"tag":984,"props":1876,"children":1878},{"class":986,"line":1877},12,[1879,1883,1887,1892],{"type":390,"tag":984,"props":1880,"children":1881},{"style":991},[1882],{"type":399,"value":1824},{"type":390,"tag":984,"props":1884,"children":1885},{"style":1023},[1886],{"type":399,"value":1069},{"type":390,"tag":984,"props":1888,"children":1889},{"style":997},[1890],{"type":399,"value":1891},"StopForwarding",{"type":390,"tag":984,"props":1893,"children":1894},{"style":1023},[1895],{"type":399,"value":1896},"()\n",{"type":390,"tag":984,"props":1898,"children":1900},{"class":986,"line":1899},13,[1901],{"type":390,"tag":984,"props":1902,"children":1903},{"style":1567},[1904],{"type":399,"value":1905},"  return\n",{"type":390,"tag":984,"props":1907,"children":1909},{"class":986,"line":1908},14,[1910],{"type":390,"tag":984,"props":1911,"children":1912},{"style":1567},[1913],{"type":399,"value":1744},{"type":390,"tag":391,"props":1915,"children":1916},{},[1917,1918,1924,1926,1932,1933,1939],{"type":399,"value":1317},{"type":390,"tag":413,"props":1919,"children":1921},{"href":1920},"/docs/webhooks/auth/hmac/",[1922],{"type":399,"value":1923},"HMAC guide",{"type":399,"value":1925}," walks through creating the function, storing the secret as a config variable and testing it in the function editor. Senders that use other schemes are covered by ",{"type":390,"tag":413,"props":1927,"children":1929},{"href":1928},"/docs/webhooks/auth/jwt/",[1930],{"type":399,"value":1931},"JWT",{"type":399,"value":1340},{"type":390,"tag":413,"props":1934,"children":1936},{"href":1935},"/docs/webhooks/auth/username-password/",[1937],{"type":399,"value":1938},"username and password",{"type":399,"value":1940}," authentication.",{"type":390,"tag":391,"props":1942,"children":1943},{},[1944,1946,1952],{"type":399,"value":1945},"Not sure what a provider signs? Paste a captured request into the free ",{"type":390,"tag":413,"props":1947,"children":1949},{"href":1948},"/verify-webhook-signature/",[1950],{"type":399,"value":1951},"webhook signature verifier",{"type":399,"value":1953},". It covers Stripe, GitHub, Shopify, Slack, Twilio, Square, Zendesk and more.",{"type":390,"tag":434,"props":1955,"children":1957},{"id":1956},"reference",[1958],{"type":399,"value":1959},"Reference",{"type":390,"tag":758,"props":1961,"children":1963},{"id":1962},"what-each-scheme-signs",[1964],{"type":399,"value":1965},"What each scheme signs",{"type":390,"tag":391,"props":1967,"children":1968},{},[1969],{"type":399,"value":1970},"Every built-in scheme uses HMAC-SHA256 and a constant-time comparison. The raw request body, exactly as it arrived, is always part of the signed message. Some schemes also sign a timestamp or message ID:",{"type":390,"tag":765,"props":1972,"children":1973},{},[1974,1987,1999,2011],{"type":390,"tag":642,"props":1975,"children":1976},{},[1977,1979,1985],{"type":399,"value":1978},"Stripe: ",{"type":390,"tag":404,"props":1980,"children":1982},{"className":1981},[],[1983],{"type":399,"value":1984},"t.body",{"type":399,"value":1986},", the timestamp and the body.",{"type":390,"tag":642,"props":1988,"children":1989},{},[1990,1992,1998],{"type":399,"value":1991},"Standard Webhooks / Svix: ",{"type":390,"tag":404,"props":1993,"children":1995},{"className":1994},[],[1996],{"type":399,"value":1997},"id.timestamp.body",{"type":399,"value":420},{"type":390,"tag":642,"props":2000,"children":2001},{},[2002,2004,2010],{"type":399,"value":2003},"Slack: ",{"type":390,"tag":404,"props":2005,"children":2007},{"className":2006},[],[2008],{"type":399,"value":2009},"v0:timestamp:body",{"type":399,"value":420},{"type":390,"tag":642,"props":2012,"children":2013},{},[2014],{"type":399,"value":2015},"Shopify and GitHub: the body only.",{"type":390,"tag":391,"props":2017,"children":2018},{},[2019],{"type":399,"value":2020},"When a provider sends several signatures at once, which Stripe and Svix do while you roll a secret, any one that matches is accepted. Each input verifies one provider, so give each provider its own input. They can share the same outputs.",{"type":390,"tag":434,"props":2022,"children":2024},{"id":2023},"notes",[2025],{"type":399,"value":1186},{"type":390,"tag":765,"props":2027,"children":2028},{},[2029,2039,2049],{"type":390,"tag":642,"props":2030,"children":2031},{},[2032,2037],{"type":390,"tag":395,"props":2033,"children":2034},{},[2035],{"type":399,"value":2036},"Raw body.",{"type":399,"value":2038}," Verification runs on the bytes the provider sent, before any function runs. It isn't affected by how your destination parses JSON.",{"type":390,"tag":642,"props":2040,"children":2041},{},[2042,2047],{"type":390,"tag":395,"props":2043,"children":2044},{},[2045],{"type":399,"value":2046},"Clock.",{"type":399,"value":2048}," The 5-minute window is measured against Webhook Relay's clock when the webhook arrives, the same tolerance as Stripe's and Svix's SDKs.",{"type":390,"tag":642,"props":2050,"children":2051},{},[2052,2057,2059,2065],{"type":390,"tag":395,"props":2053,"children":2054},{},[2055],{"type":399,"value":2056},"Combine it with an IP allowlist.",{"type":399,"value":2058}," A signature proves the payload came from the provider. A ",{"type":390,"tag":413,"props":2060,"children":2062},{"href":2061},"/docs/webhooks/auth/ip-allowlist/",[2063],{"type":399,"value":2064},"source IP allowlist",{"type":399,"value":2066}," also blocks traffic from unknown networks. Use both for webhooks that reach private networks.",{"type":390,"tag":2068,"props":2069,"children":2070},"style",{},[2071],{"type":399,"value":2072},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":363,"searchDepth":1048,"depth":1048,"links":2074},[2075,2076,2079,2080,2081,2082,2083,2086],{"id":436,"depth":1014,"text":439},{"id":633,"depth":1014,"text":636,"children":2077},[2078],{"id":760,"depth":1048,"text":763},{"id":848,"depth":1014,"text":615},{"id":952,"depth":1014,"text":955},{"id":1364,"depth":1014,"text":1367},{"id":1528,"depth":1014,"text":1531},{"id":1956,"depth":1014,"text":1959,"children":2084},[2085],{"id":1962,"depth":1048,"text":1965},{"id":2023,"depth":1014,"text":1186},"markdown","content:docs:webhooks:auth:6.signature-verification.md","content","docs/webhooks/auth/6.signature-verification.md","docs/webhooks/auth/6.signature-verification","md",{"loc":248},1795866778654]