Saltar al contenido
AchaduDevelopers
Developers/API/webhook_create
Ganchos web

Crear webhook

Crea un destino HTTPS y revela el secreto una vez.

POST/webhookswebhooks:write

Solicitar

namestring · bodyNombre del destino.obligatorio
urlstring · bodyURL HTTPS pública.obligatorio
eventsarray · bodyEventos o *.obligatorio
activeboolean · bodyActiva el destino.opcional

Ejemplo

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

respuesta

201Recurso creado
4xxError con código, mensaje y request_id