Webhooks
Send a test event
POST
/webhooks/{webhookId}/testSends a webhook this API subscribed a signed sample of any event (fictional people), or a test.ping, right away. The try shows in its delivery log. A failed test still answers 200, with sent: false and the answer the address gave.
Try itSend a real request with your API key
Path
webhookIdstringRequiredThe webhook.
Headers
Idempotency-KeystringAny unique value up to 255 characters, like a UUID. The request runs once; repeats within 24 hours get the first answer, with Idempotent-Replayed: true. Up to 255 characters.
Body optional
eventone ofThe event to send a sample of. Without it (or null), a test.ping.
Inside it
One of these shapes:
Option 1: An event type
Option 2
Option 3
Answer
200 OK What happened.
dataWebhookTestResultRequiredInside it
sentbooleanRequiredmessagestringRequireddeliveryDeliveryRequiredInside it
idstringRequireddestinationIdstringRequiredeventIdstringRequiredeventone ofRequiredInside it
One of these shapes:
Option 1: An event type
Option 2
statusstringRequiredOne of
queued,retrying,sent,failed.attemptsintegerRequiredstatusCodeintegerThe answer the address gave.
errorstringnextAttemptAtstring · date-timecreatedAtstring · date-timeRequiredupdatedAtstring · date-timeRequired
Errors
- 400 Bad request
invalid_requestinvalid_jsonduplicate_in_request - 401 Unauthorized
unauthorized - 404 Not found
not_foundnot_in_campaign - 422 Can’t process
idempotency_key_reused - 429 Too many requests
rate_limited - 500 Server error
server_error
Every error has the same shape. See Errors.