API / Webhooks
POST
/v1/webhooksscope: editMCP: create_webhook
Ajoute un webhook.
Renvoie un secret (affiché une seule fois) pour vérifier la signature HMAC-SHA256.
Paramètres
| Nom | Emplacement | Type | Requis | Description |
|---|---|---|---|---|
url | corps | string | oui | URL HTTPS de réception. |
events | corps | string | non | job.completed,job.failed. |
Exemple de requête
curl -X POST https://deklip.com/v1/webhooks \
-H "Authorization: Bearer dk_live_VOTRE_CLE" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"url":"https://votre-serveur.com/deklip"}'Exemple de réponse
{
"id": "wh_1",
"url": "https://votre-serveur.com/deklip",
"secret": "whsec_…"
}Via MCP: cet endpoint correspond à l'outil
create_webhook.