Webhooks
Criar webhook
Cria um destino HTTPS e revela o segredo uma única vez.
POST
/webhookswebhooks:writeSolicitação
namestring · bodyNome do destino.obrigatóriourlstring · bodyURL HTTPS pública.obrigatórioeventsarray · bodyEventos ou *.obrigatórioactiveboolean · bodyAtiva o destino.opcionalExemplo
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
}'Resposta
201Recurso criado4xxErro com code, message e request_id