Menu

Your backend (X-Api-Key)

Send test webhook

POST/v1/webhooks/test

Sends one signed request to the URL you give, right away, with your current webhook_secret. Nothing is stored or retried.

Authorization: X-Api-Key (your backend)

400: no webhook secret yet, or the URL is not public (internal network, loopback). 502: the connection failed or timed out (10 s).

Request
curl -X POST https://api.idotta.com/v1/webhooks/test \
  -H "X-Api-Key: idv_test_XXXX" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/webhooks/idotta",
    "event_type": "test.ping"
  }'
JSON
// Request
{ "url": "https://example.com/webhooks/idotta", "event_type": "test.ping" }

// Body we send: { "event_type": "test.ping", "event_id": "…", "session_id": null, "test": true }

// Response 200
{ "status": "delivered", "http_status": 200, "event_id": "…" }   // your endpoint answered 2xx
{ "status": "failed",    "http_status": 500, "event_id": "…" }   // reached, but not 2xx