Webhook
Webhook 测试。Bin:创建一个 bin,把 webhook 发送方指向 /api/webhooks/{binId},然后查看收到了什么。最多 100 个 bin(最旧的被淘汰),每个 bin 保留 50 个请求(保留最新的),每个捕获的请求体最大 256KB。示例:固定的 Stripe、GitHub 和 Shopify 事件负载,带有有效的签名请求头,用于测试签名校验。这个控制器从不发起对外的 HTTP 调用。Webhook 测试。Bin:创建一个 bin,把 webhook 发送方指向 … 100 个 bin(最旧的被淘汰),每个 bin 保留 50 个请求(保留最新的),每个捕获的请求体最大 256KB。示例:固定的 Stripe、GitHub 和 Shopify 事件负载,带有有效的签名请求头,用于测试签名校验。这个控制器从不发起对外的 HTTP 调用。
你的账号已解锁这些端点。在每个端点的页面上用 Try it 发送请求。
- GETPOSTPUTPATCHDELETEHEADOPTIONS
https://api.testingapis.com/api/webhooks/{binId}Capture any request sent to a binCapture any request sent to a bin. - GETPOSTPUTPATCHDELETEHEADOPTIONS
https://api.testingapis.com/api/webhooks/{binId}/{rest}Capture any request sent to a binCapture any request sent to a bin. - POST
https://api.testingapis.com/api/webhooks/binsCreate a webhook bin that captures incoming requestsCreate a webhook bin that captures incoming requests. - GET
https://api.testingapis.com/api/webhooks/bins/{id}Inspect a bin and the requests it capturedInspect a bin and the requests it captured. - DELETE
https://api.testingapis.com/api/webhooks/bins/{id}Delete a binDelete a bin. - DELETE
https://api.testingapis.com/api/webhooks/bins/{id}/requestsClear a bin's captured requestsClear a bin's captured requests. - GET
https://api.testingapis.com/api/webhooks/samplesList the sample signed webhook eventsList the sample signed webhook events. - GET
https://api.testingapis.com/api/webhooks/samples/{provider}Get a signed sample event for testing signature verificationGet a signed sample event for testing signature verification.
请求示例
List the sample signed webhook events. 完整参考和 Send 按钮(英文).
cURL
curl -X GET "https://api.testingapis.com/api/webhooks/samples"响应 · 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)