Send Test Webhook
growsurf_test_campaign_webhookSend a live test event to a GrowSurf campaign webhook and return the mock payload plus the endpoint response. Optionally choose the event type to simulate.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"webhookId": "<webhookId>",
"campaignId": "<campaignId>"
},
"name": "growsurf_test_campaign_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | ||
| webhookId | Yes | ||
| campaignId | Yes | Target program id for this call: the `id` returned by `growsurf_list_campaigns`, not the program name or a share URL. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Program IDs also identify newly created programs 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. |