Webhooks
Create webhook
Creates an HTTPS destination and reveals the secret once.
POST
/webhookswebhooks:writeRequest
namestring · bodyDestination name.mandatoryurlstring · bodyPublic HTTPS URL.mandatoryeventsarray · bodyEvents or *.mandatoryactiveboolean · bodyActivates the destination.optionalExample
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
}'Answer
201Resource created4xxError with code, message and request_id