Test endpoint

View .md

Send a sample event to a webhook endpoint.


Send a sample event and inspect the delivery result.

POST/v1/webhooks/{webhook_id}/test
API key (dra_…) or dashboard JWT

Send a test event to a webhook endpoint and return the delivery result.

Authorizationstringheaderrequired

Bearer token. Use a Dravo API key (`dra_...`) or a dashboard JWT.

webhook_idstringpathrequired

Endpoint to test.

idstring

Delivery id.

event_typestring

The event that was delivered.

status_codeintegeroptional

HTTP status returned by your endpoint.

attemptsinteger

Number of delivery attempts so far.

const response = await fetch("https://api.dravo.dev/v1/webhooks/{webhook_id}/test", {  method: "POST",  headers: {  "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);
{  "id": "del_1",  "event_type": "post.published",  "status_code": 200,  "attempts": 1}