Skip to content

Test a webhook

Request

Send a sample payload for the given event to a target URL and return the target's response — use it to verify connectivity and see the payload shape for an event.

Send the full webhook config, not just the uuid: event, request_method and target_url are all required (sending uuid alone returns a 422). The sample payload uses placeholder data and matches the webhook-payload schema.

Security
bearerAuth
Bodyapplication/jsonrequired
uuidstringrequired

UUID of the webhook to test.

eventstringrequired

Event whose sample payload to send (see createWebhook for values).

Example:"sender_profile_sent_email"
request_methodstringrequired
Enum:"POST""GET""PUT""PATCH""DELETE"
Example:"POST"
target_urlstring, (uri)required
Example:"https://your-endpoint.com/hook"
POST
/integrations/api/webhooks/test
curl -i -X POST \
  https://leadgen.grinfi.io/integrations/api/webhooks/test \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "uuid": "b27f3cfc-84a0-4fb8-956b-91d032f9c523",
    "event": "sender_profile_sent_email",
    "request_method": "POST",
    "target_url": "https://your-endpoint.com/hook"
  }'

Responses

Test payload sent. Returns the target response.