New in 2.4: Test runs you can trust See what's new →

Webhook

Webhook 测试。Bin:创建一个 bin,把 webhook 发送方指向 /api/webhooks/{binId},然后查看收到了什么。最多 100 个 bin(最旧的被淘汰),每个 bin 保留 50 个请求(保留最新的),每个捕获的请求体最大 256KB。示例:固定的 Stripe、GitHub 和 Shopify 事件负载,带有有效的签名请求头,用于测试签名校验。这个控制器从不发起对外的 HTTP 调用。

请求示例

List the sample signed webhook events. 完整参考和 Send 按钮(英文).

cURL
curl -X GET "https://api.testingapis.com/api/webhooks/samples"
在 Studio 中运行
响应 · 200 OK
{
  "signingSecret": "whsec_apibee_test_secret",
  "note": "Each sample returns the exact signed payload as the body, with the provider's signature headers. ?format=envelope returns everything as JSO…
  "samples": [
    {
      "provider": "stripe",
      "eventType": "payment_intent.succeeded",
      "signatureHeader": "Stripe-Signature",
      "url": "/api/webhooks/samples/stripe"
    },
    {
      "provider": "github",
      "eventType": "push",
      "signatureHeader": "X-Hub-Signature-256,
… (10 more lines)