Skip to main content

Prerequisites

Before you begin, you’ll need:

1. Install the SDK

2. Initialize the Client

Create a new Flux client with your API key:
Never hardcode your API key. Use environment variables to keep it secure.

3. Send an Event

Events in Flux have a type and a data payload. The type is a string that identifies the kind of event (we recommend using dot notation like user.signup).

4. Verify It Worked

Head to the Events tab in your dashboard. You should see your event logged with its full payload and metadata.
Flux dashboard showing event log

Next Steps

Now that you’ve sent your first event, explore these guides:

Set Up Webhooks

Receive events in real-time via HTTP

Event Filtering

Subscribe to specific event types

Authentication

Secure your integration

API Reference

Full API documentation