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.Testes de webhooks. Bins: crie um bin, aponte um emissor de webhooks para … 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.
Sua conta libera estes endpoints. Use Try it na página de cada endpoint para enviar requisições.
Estes endpoints precisam de uma conta gratuita. Crie uma ou entre para ver os detalhes e testá-los aqui.
- 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.
Requisição de exemplo
List the sample signed webhook events. Referência completa e botão Send (em inglês).
curl -X GET "https://api.testingapis.com/api/webhooks/samples"{
"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)Entre para ver os detalhes
Os parâmetros, os exemplos de requisição e resposta e o painel Try it ao vivo de estes endpoints são para membros conectados. As contas são gratuitas e levam poucos segundos para criar.