Localisé par IA

Supprimer un Webhook

Supprimez un webhook de votre espace de travail. Nécessite des permissions complètes. Les webhooks peuvent être identifiés par leur ID (wh_xxx) ou leur nom.

DELETE/webhooks/{id}
Copy

Paramètres de Chemin

idstring Required
Link

L'ID du webhook (wh_xxx) ou son nom.

Supprimer un webhook

const response = await fetch('https://api.emailit.com/v2/webhooks/wh_2BxFg7KNqr5M', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer em_test_51RxCWJ...vS00p61e0qRE',
    'Content-Type': 'application/json'
  }
});

const result = await response.json();

Réponses

{
  "object": "webhook",
  "id": "wh_2BxFg7KNqr5M...",
  "name": "Mon Webhook",
  "deleted": true
}