# Add — returns `secret` ONCE
curl -X POST https://api.dinari.me/api/v1/webhook-endpoints \
-H "X-API-Key: sk_live_…" -H 'Content-Type: application/json' \
-d '{"url":"https://your-app.example/webhooks"}'
# List (secrets are never returned)
curl -H "X-API-Key: sk_live_…" https://api.dinari.me/api/v1/webhook-endpoints
# Update URL / status, or rotate the secret (returns the new secret once)
curl -X PATCH https://api.dinari.me/api/v1/webhook-endpoints/ENDPOINT_ID \
-H "X-API-Key: sk_live_…" -H 'Content-Type: application/json' \
-d '{"rotate_secret":true}'
# Remove
curl -X DELETE https://api.dinari.me/api/v1/webhook-endpoints/ENDPOINT_ID \
-H "X-API-Key: sk_live_…"