curl -X POST https://api.flux.dev/v1/webhooks \ -H "Authorization: Bearer sk_live_..." \ -H "Content-Type: application/json" \ -d '{ "url": "https://api.yourapp.com/webhooks/flux", "events": ["order.completed", "user.signup"], "description": "Production webhook" }'
{ "id": "wh_abc123", "url": "https://api.yourapp.com/webhooks/flux", "events": ["order.completed", "user.signup"], "description": "Production webhook", "status": "active", "secret": "whsec_a1b2c3d4e5f6...", "created": "2024-01-15T10:30:00Z" }
Register a new webhook endpoint
["*"]
secret