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

Webhooks

Testes de webhooks. Bins: crie um bin, aponte um emissor de webhooks para /api/webhooks/{binId} e inspecione o que chegou. Limite de 100 bins (os mais antigos são descartados), 50 requisições por bin (as mais novas ficam) e 256KB por corpo capturado. Exemplos: payloads fixos de eventos do Stripe, GitHub e Shopify com cabeçalhos de assinatura válidos, para testar a verificação de assinaturas. Este controller nunca faz chamadas HTTP de saída.

Requisição de exemplo

List the sample signed webhook events. Referência completa e botão Send (em inglês).

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