Get Your API Key
Before you can start tracking events, you’ll need to get your API key from the Turret dashboard.Create an Account
Sign up for Turret
Sign up for Turret
Visit the Turret Dashboard and create your account. You’ll get a free tier to start experimenting with event tracking.
Get your API key
Get your API key
Once logged in, you’ll find your API key in the Dashboard. This key will be used to authenticate your requests to the Turret API.
Track Your First Event
Make your first API call
Make your first API call
Use the Response:Important: Store these IDs and include them in subsequent requests to maintain session continuity for journey tracking.
/track endpoint to send your first event. At minimum, you only need an event name and metadata:Continue the conversation
Continue the conversation
For the second message and beyond, include the IDs from the first response:This connects both messages into a single conversation journey.
View your data
View your data
After sending a few events, visit your dashboard to see how Turret has automatically clustered your events based on semantic similarity and track user journeys.
Integration Examples
Here are some common ways to integrate Turret into your application:JavaScript/Node.js
Track events from your JavaScript application
Python
Integrate with your Python backend
cURL
Simple HTTP requests for any language
Best Practices
Learn how to structure your events for maximum insight
Understanding the Request Fields
| Field | Required | Description |
|---|---|---|
name | Yes | Event name (e.g., “user_message”, “search_query”). Used to categorize events. |
session_id | Auto-generated | Your conversation/thread ID. Critical for journey tracking. If not provided, Turret generates one and returns it. |
user_id | Auto-generated | Your user’s ID. Enables cross-session analysis. If not provided, Turret generates one and returns it. |
metadata | Yes | Object containing the data to cluster. The key (e.g., “prompt”) becomes the clustering dimension. |
Next Steps
Now that you’ve tracked your first event, explore these topics:- Understanding Topics - Learn how Turret groups your events and tracks journeys
- Tracking Events - Detailed guide on event tracking
- Segmentation - Filter topics by categorical metadata (platform, language, etc.)
- Best Practices - Get the most value from your data
- API Reference - Complete API documentation