Returns an array of webhooks.
The record has been successfully created.
The webhook has been successfully deleted.
Returns a single webhook.
The webhook has been successfully updated.
const response = await fetch('/v1/webhooks', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "id": "text", "label": "text", "url": "text", "signingSecret": "text", "headers": [ "text" ], "dataEvents": [ "text" ], "oauthConnection": {}, "createdBy": "text", "createdAt": "2024-11-21T07:19:32.334Z", "updatedAt": "2024-11-21T07:19:32.334Z" } ]
const response = await fetch('/v1/webhooks', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
const response = await fetch('/v1/webhooks/{id}', { method: 'DELETE', headers: {}, }); const data = await response.json();
{ "id": "text", "label": "text", "url": "text", "signingSecret": "text", "headers": [ "text" ], "dataEvents": [ "text" ], "oauthConnection": {}, "createdBy": "text", "createdAt": "2024-11-21T07:19:32.334Z", "updatedAt": "2024-11-21T07:19:32.334Z" }
const response = await fetch('/v1/webhooks/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('/v1/webhooks/{id}', { method: 'PATCH', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();