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

Webhook

Pengujian webhook. Bin: buat bin, arahkan pengirim webhook ke /api/webhooks/{binId}, lalu periksa apa yang tiba. Dibatasi 100 bin (yang paling lama dibuang), 50 request per bin (yang terbaru disimpan), dan 256KB per body yang ditangkap. Contoh: payload event tetap dari Stripe, GitHub, dan Shopify dengan header tanda tangan yang valid, untuk menguji verifikasi tanda tangan. Controller ini tidak pernah melakukan panggilan HTTP keluar.

Contoh request

List the sample signed webhook events. Referensi lengkap dan tombol Send (dalam bahasa Inggris).

cURL
curl -X GET "https://api.testingapis.com/api/webhooks/samples"
Jalankan di Studio
Response · 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)