Webhook
Crea webhook
Crea una destinazione HTTPS e rivela il segreto una volta.
POST
/webhookswebhooks:writeRichiesta
namestring · bodyNome della destinazione.obbligatoriourlstring · bodyURL HTTPS pubblico.obbligatorioeventsarray · bodyEventi o *.obbligatorioactiveboolean · bodyAttiva la destinazione.facoltativoEsempio
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
}'Rispondi
201Risorsa creata4xxErrore con codice, messaggio e request_id