List endpoints

View .md

List your registered webhook endpoints.


List your registered webhook endpoints with their subscribed events.

GET/v1/webhooks
API key (dra_…) or dashboard JWT

List your registered outgoing webhook endpoints.

Authorizationstringheaderrequired

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

idstring

Webhook endpoint id.

urlstring

Destination URL events are POSTed to.

eventsstring[]

Subscribed events: post.published, post.failed, post.queued, connection.revoked.

activeboolean

Whether the endpoint currently receives deliveries.

const response = await fetch("https://api.dravo.dev/v1/webhooks", {  method: "GET",  headers: {  "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);
[  {    "id": "wh_1",    "url": "https://example.com/hook",    "events": [      "post.published"    ],    "active": true  }]