Last updated 10 months ago
const response = await fetch('/v1/api-keys/webhook/unsubscribe/{apiWebhookId}', { method: 'DELETE', headers: { "api-key": "text" }, }); const data = await response.json();
Default if null: print.failed, print.completed
const response = await fetch('/v1/api-keys/webhook/subscribe', { method: 'POST', headers: { "api-key": "text", "Content-Type": "application/json" }, body: JSON.stringify({ "url": "text" }), }); const data = await response.json();
{ "webhookId": "text" }