Mock a webhook
anyhook_mockGenerate signed webhook requests for Stripe, GitHub, or Slack to test integrations. Specify an event and optional data; optionally include a target URL to POST the request and return the response.
Instructions
Generate a webhook request with a valid signature for Stripe, GitHub, or Slack. If targetUrl is provided, the request is POSTed there and the response is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Optional fields to deep-merge into the fixture. | |
| event | Yes | Event name (e.g. 'payment_intent.succeeded' for Stripe). | |
| secret | No | Signing secret. Falls back to a deterministic default per provider. | |
| provider | Yes | Webhook provider to simulate. | |
| targetUrl | No | If set, POST the generated request to this URL and return the response. |