curl https://api.flux.dev/v1/webhooks \
-H "Authorization: Bearer sk_live_..."
const webhooks = await flux.webhooks.list();
webhooks = flux.webhooks.list()
{
"data": [
{
"id": "wh_abc123",
"url": "https://api.yourapp.com/webhooks/flux",
"events": ["order.completed", "user.signup"],
"status": "active",
"created": "2024-01-10T08:00:00Z"
},
{
"id": "wh_def456",
"url": "https://api.yourapp.com/analytics",
"events": ["*"],
"status": "active",
"created": "2024-01-05T12:30:00Z"
}
],
"hasMore": false
}
Webhooks
List Webhooks
Retrieve all configured webhooks
GET
/
v1
/
webhooks
curl https://api.flux.dev/v1/webhooks \
-H "Authorization: Bearer sk_live_..."
const webhooks = await flux.webhooks.list();
webhooks = flux.webhooks.list()
{
"data": [
{
"id": "wh_abc123",
"url": "https://api.yourapp.com/webhooks/flux",
"events": ["order.completed", "user.signup"],
"status": "active",
"created": "2024-01-10T08:00:00Z"
},
{
"id": "wh_def456",
"url": "https://api.yourapp.com/analytics",
"events": ["*"],
"status": "active",
"created": "2024-01-05T12:30:00Z"
}
],
"hasMore": false
}
Returns a list of all webhook endpoints configured for your account.
integer
default:"20"
Number of webhooks to return. Maximum is 100.
string
Cursor for pagination.
curl https://api.flux.dev/v1/webhooks \
-H "Authorization: Bearer sk_live_..."
const webhooks = await flux.webhooks.list();
webhooks = flux.webhooks.list()
{
"data": [
{
"id": "wh_abc123",
"url": "https://api.yourapp.com/webhooks/flux",
"events": ["order.completed", "user.signup"],
"status": "active",
"created": "2024-01-10T08:00:00Z"
},
{
"id": "wh_def456",
"url": "https://api.yourapp.com/analytics",
"events": ["*"],
"status": "active",
"created": "2024-01-05T12:30:00Z"
}
],
"hasMore": false
}
⌘I