Webhooks
Tests de webhooks. Bins : créez un bin, pointez un émetteur de webhooks vers /api/webhooks/{binId}, puis inspectez ce qui est arrivé. Limite de 100 bins (les plus anciens sont évincés), 50 requêtes par bin (les plus récentes sont gardées) et 256KB par corps capturé. Exemples : des payloads d’événements fixes de Stripe, GitHub et Shopify avec des en-têtes de signature valides, pour tester la vérification des signatures. Ce contrôleur ne fait jamais d’appel HTTP sortant.
- GETPOSTPUTPATCHDELETEHEADOPTIONS
https://api.testingapis.com/api/webhooks/{binId}Capture any request sent to a bin. - GETPOSTPUTPATCHDELETEHEADOPTIONS
https://api.testingapis.com/api/webhooks/{binId}/{rest}Capture any request sent to a bin. - POST
https://api.testingapis.com/api/webhooks/binsCreate a webhook bin that captures incoming requests. - GET
https://api.testingapis.com/api/webhooks/bins/{id}Inspect a bin and the requests it captured. - DELETE
https://api.testingapis.com/api/webhooks/bins/{id}Delete a bin. - DELETE
https://api.testingapis.com/api/webhooks/bins/{id}/requestsClear a bin's captured requests. - GET
https://api.testingapis.com/api/webhooks/samplesList the sample signed webhook events. - GET
https://api.testingapis.com/api/webhooks/samples/{provider}Get a signed sample event for testing signature verification.
Exemple de requête
List the sample signed webhook events. Référence complète et bouton Send (en anglais).
cURL
curl -X GET "https://api.testingapis.com/api/webhooks/samples"Réponse · 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)