Quickstart: Events
Set up real-time event collection, define contracts for data quality, and forward events to downstream tools.
Prerequisites
- A SignalSmith workspace
- An application or website that can send HTTP requests
- (Optional) Destinations configured for event forwarding
Step 1: Create a Write Key
Write keys authenticate event sources and route events to the correct pipeline.
- Navigate to Events > Write Keys
- Click Create Write Key
- Name your write key (e.g., “Production Web App”)
- Copy the generated key — you’ll need it to send events
Step 2: Send Your First Event
SignalSmith accepts events in a Segment-compatible format. Send an event using curl:
curl -X POST https://your-instance.signalsmith.io/api/v1/events/track \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_WRITE_KEY" \
-d '{
"type": "track",
"event": "Product Viewed",
"userId": "user_123",
"properties": {
"product_id": "prod_456",
"product_name": "Premium Widget",
"price": 49.99,
"category": "widgets"
},
"timestamp": "2024-01-15T10:30:00Z"
}'Step 3: Define an Event Contract
Event contracts enforce a schema on incoming events to ensure data quality.
- Navigate to Events > Contracts
- Click Create Contract
- Select the event type (e.g., “Product Viewed”)
- Define required and optional properties with types
- Choose a violation policy:
- Allow — Accept all events, flag violations
- Drop Property — Remove non-conforming properties
- Reject — Reject events that violate the contract
- Click Save
Step 4: Set Up Event Forwarding
Forward events in real-time to downstream tools.
- Navigate to Events > Forwarding
- Click Create Forwarding Rule
- Select a destination (e.g., Amplitude, Mixpanel)
- Configure event filters (which events to forward)
- Map event properties to destination fields
- Click Save
Step 5: Debug Events
- Navigate to Events > Debugger
- See events arriving in real-time
- Filter by event type, user ID, or write key
- Inspect individual events for schema compliance
Next Steps
- Set up consent management for privacy compliance
- Configure event transformations to enrich or reshape events
- Write events to your warehouse for analysis