Ganchos web
Crear webhook
Crea un destino HTTPS y revela el secreto una vez.
POST
/webhookswebhooks:writeSolicitar
namestring · bodyNombre del destino.obligatoriourlstring · bodyURL HTTPS pública.obligatorioeventsarray · bodyEventos o *.obligatorioactiveboolean · bodyActiva el destino.opcionalEjemplo
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 creado4xxError con código, mensaje y request_id