curl https://api.flux.dev/v1/events?type=user.signup&limit=10 \
-H "Authorization: Bearer sk_live_..."
const events = await flux.events.list({
type: 'user.signup',
limit: 10
});
events = flux.events.list(
type="user.signup",
limit=10
)
{
"data": [
{
"id": "evt_1a2b3c4d",
"type": "user.signup",
"created": "2024-01-15T10:30:00Z",
"data": {
"userId": "usr_123",
"email": "jane@example.com"
}
},
{
"id": "evt_5e6f7g8h",
"type": "user.signup",
"created": "2024-01-15T09:15:00Z",
"data": {
"userId": "usr_456",
"email": "john@example.com"
}
}
],
"hasMore": true,
"nextCursor": "cur_xyz789"
}
Events
List Events
Retrieve a list of events
GET
/
v1
/
events
curl https://api.flux.dev/v1/events?type=user.signup&limit=10 \
-H "Authorization: Bearer sk_live_..."
const events = await flux.events.list({
type: 'user.signup',
limit: 10
});
events = flux.events.list(
type="user.signup",
limit=10
)
{
"data": [
{
"id": "evt_1a2b3c4d",
"type": "user.signup",
"created": "2024-01-15T10:30:00Z",
"data": {
"userId": "usr_123",
"email": "jane@example.com"
}
},
{
"id": "evt_5e6f7g8h",
"type": "user.signup",
"created": "2024-01-15T09:15:00Z",
"data": {
"userId": "usr_456",
"email": "john@example.com"
}
}
],
"hasMore": true,
"nextCursor": "cur_xyz789"
}
Returns a paginated list of events. Events are returned in reverse chronological order (newest first).
string
Filter by event type (e.g.,
user.signup)integer
default:"20"
Number of events to return. Maximum is 100.
string
Cursor for pagination. Use the
nextCursor from a previous response.string
Filter events created after this date (ISO 8601)
string
Filter events created before this date (ISO 8601)
curl https://api.flux.dev/v1/events?type=user.signup&limit=10 \
-H "Authorization: Bearer sk_live_..."
const events = await flux.events.list({
type: 'user.signup',
limit: 10
});
events = flux.events.list(
type="user.signup",
limit=10
)
{
"data": [
{
"id": "evt_1a2b3c4d",
"type": "user.signup",
"created": "2024-01-15T10:30:00Z",
"data": {
"userId": "usr_123",
"email": "jane@example.com"
}
},
{
"id": "evt_5e6f7g8h",
"type": "user.signup",
"created": "2024-01-15T09:15:00Z",
"data": {
"userId": "usr_456",
"email": "john@example.com"
}
}
],
"hasMore": true,
"nextCursor": "cur_xyz789"
}