Zum Inhalt springen
AchaduDevelopers
Developers/API/webhook_create
Webhooks

Webhook erstellen

Erstellt ein HTTPS-Ziel und gibt das Geheimnis einmal preis.

POST/webhookswebhooks:write

Anfrage

namestring · bodyZielname.obligatorisch
urlstring · bodyÖffentliche HTTPS-URL.obligatorisch
eventsarray · bodyEreignisse oder *.obligatorisch
activeboolean · bodyAktiviert das Ziel.optional

Beispiel

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
}'

Antwort

201Ressource erstellt
4xxFehler mit Code, Nachricht und request_id