Tonedocs
API referenceWebhooks

Send a test to a webhook endpoint

POSTs your body to the endpoint once, signed with its secret exactly as a delivery is, and says what your server answered. The test carries x-tone-test: 1 and an x-tone-event-id starting test_; your handler otherwise sees a real delivery, so use test data. Nothing is recorded: no delivery-log row, and no failure counts toward switching the endpoint off. At most 20 a minute. A live key or the dashboard only: a test key gets 403, because an endpoint receives live events too.

Requires the admin scope. A key with less gets 403 insufficient_scope.

POST
/v1/integrations/webhooks/{id}/test
AuthorizationBearer <token>

Authorization: Bearer tone_live_… or tone_test_…. The prefix IS the environment: a test key reaches only the sandbox, and no request field bridges the two.

In: header

Path Parameters

id*string

The webhook endpoint's id.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/integrations/webhooks/string/test" \  -H "Content-Type: application/json" \  -d '{    "body": {      "data": {        "call": {          "id": "b2e4c1d0-…",          "outputs": {            "order_confirmed": "confirmed"          }        }      },      "type": "call.completed"    },    "eventType": "call.completed"  }'
{  "data": {    "delivered": true,    "durationMs": 312,    "error": null,    "eventId": "test_5b2c1e3d-9a4f-4e6b-8c7d-1f2e3a4b5c6d",    "status": 200  }}
Was this page helpful?