growsurf_test_campaign_webhook
Send a live test event to your GrowSurf webhook to verify integration. Optionally specify an event type, otherwise the first enabled event is used, and returns the mock payload and response.
Instructions
Send a live test event to a webhook on your GrowSurf program using its stored URL and secret. Optionally pass event to choose which event type to simulate; when omitted, the webhook's first enabled event is used (returns 400 if the webhook has no enabled events). Returns the mock payload and the receiving endpoint's response. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | ||
| webhookId | Yes | ||
| campaignId | No | Target program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Pass the `id` returned by growsurf_create_campaign to configure or operate a program you just created, without restarting the server. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | No | The mock event payload that was sent. | |
| success | No | Whether the test webhook request completed. | |
| response | No | Response returned by the webhook endpoint during the test. |