{"uid":"cap_eGe2jz-XEQodAvTBpVI8b","slug":"agent402-tools-webhook-debug-ed6b0f6d","name":"agent402.tools Webhook Debug","description":"Bundled execution of the Webhook debug workflow - A webhook hit your endpoint and you need to confirm it's authentic, valid, and safe to log. Pretty-print the payload, decode any JWT auth header, verify the HMAC signature against the raw body, sch...","url":"https://agent402.tools/api/skill/webhook-debug","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rawBody":{"type":"string","description":"the raw webhook body as received on the wire (single-line JSON string)"},"signingSecret":{"type":"string","description":"the shared webhook signing secret from the provider dashboard"}}},"responseSchema":{"type":"json","example":{"args":{"rawBody":"{\"id\":\"evt_3O2eYxL5d8\",\"type\":\"checkout.session.completed\",\"created\":1750982400,\"data\":{\"object\":{\"id\":\"cs_test_a1b2c3\",\"customer_email\":\"alice@example.com\",\"amount_total\":4999,\"client_ip\":\"203.0.113.42\",\"success_url\":\"https://app.example.com/orders/cs_test_a1b2c3\"}}}","signingSecret":"whsec_demo_secret_do_not_use"},"pack":"webhook-debug","steps":[{"ok":true,"slug":"json-format","result":{}},{"ok":true,"slug":"jwt-decode","result":{}},{"ok":true,"slug":"hmac","result":{}},{"ok":true,"slug":"json-validate","result":{}},{"ok":true,"slug":"time-convert","result":{}},{"ok":true,"slug":"redact","result":{}},{"ok":true,"slug":"extract-entities","result":{}}],"summary":"7/7 steps succeeded"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TdBWthIfnMJl5nLWjUqvl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates an inbound webhook by pretty-printing its payload, decoding any JWT auth header, and verifying the HMAC signature against the raw body","exampleAgentPrompt":"I just received a webhook from our payment provider — the raw body is '{\"event\":\"payment.completed\",\"id\":\"evt_123\"}' and the signing secret from the dashboard is 'whsec_abc123xyz'. Can you verify the HMAC signature, decode the JWT auth header, and confirm it's safe and authentic?","exampleUseCases":null,"resultDescription":"Returns a structured response containing the pretty-printed webhook payload, the decoded JWT (if present in the auth header), the HMAC signature verification result (valid/invalid), and an overall assessment of whether the webhook is authentic and safe to process.","failureModes":["Invalid or malformed raw body JSON — returns parse error","Missing or incorrect signing secret — HMAC verification fails with mismatch error","Missing JWT header — JWT decode step is skipped or returns null","Signature mismatch — returns invalid signature with expected vs received values","Malformed JWT — returns decode error with details"],"whenToPreferThis":"Use this endpoint when you need a bundled, one-call solution to fully authenticate and inspect an inbound webhook — combining HMAC verification, JWT decoding, and payload pretty-printing in a single request. Prefer this over building your own validation pipeline when speed and reliability matter more than customization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:07:52.924Z","isFirstParty":false}