The record has been successfully created.
const response = await fetch('/v1/webhooks', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
The webhook has been successfully deleted.
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-10-03T09:48:44.898Z", "updatedAt": "2024-10-03T09:48:44.898Z" }
Returns an array of webhooks.
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-10-03T09:48:44.898Z", "updatedAt": "2024-10-03T09:48:44.898Z" } ]
Returns a single webhook.
const response = await fetch('/v1/webhooks/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
The webhook has been successfully updated.
const response = await fetch('/v1/webhooks/{id}', { method: 'PATCH', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();