Webhooks
Créer un webhook
Crée une destination HTTPS et révèle le secret une fois.
POST
/webhookswebhooks:writeDemande
namestring · bodyNom de la destination.obligatoireurlstring · bodyURL HTTPS publique.obligatoireeventsarray · bodyÉvénements ou *.obligatoireactiveboolean · bodyActive la destination.facultatifExemple
curl
curl -X POST 'https://achadu.com/api/v1/webhooks' \
+ -H 'Authorization: Bearer ach_live_...' \
+ -H 'Accept: application/json' \
+ -H 'Content-Type: application/json' \
+ --data '{
"name": "My integration",
"url": "https://example.com/product",
"events": [
"offer.created"
],
"active": true
}'Réponse
201Ressource créée4xxErreur avec le code, le message et request_id