This endpoint allows you to create or update webhook.
cURL
curl --request POST \ --url https://processor-prod.up.railway.app/webhook \ --header 'Content-Type: application/json' \ --header 'x-service-key: <api-key>' \ --data ' { "url": "https://your-site.com/webhook" } '
{ "success": true, "status": 200, "message": "Webhook created successfully", "timestamp": "2025-09-17T01:09:23.027Z", "data": { "enabled": true, "url": "https://google.com/webhook", "secret": "z9o4j778vsn5ivog9beacrvld" } }
The webhook URL to receive notifications. Leave empty to disable.
"https://your-site.com/webhook"
Webhook created successfully
true
200
"Webhook created successfully"
"2025-09-17T01:09:23.027Z"
Show child attributes
Whether webhook is enabled
The configured webhook URL
"https://google.com/webhook"
Secret key for webhook verification
"z9o4j778vsn5ivog9beacrvld"