Welcome to the Turret API
Turret provides a simple HTTP API for tracking user events with free-form text metadata. Our API analyzes this metadata to automatically detect patterns and group similar events.Single Endpoint Design
One endpoint to track all your events - simple and powerful
Authentication
All API requests must include your project API key in theX-Api-Key header:
Base URL
All API requests should be made to:Request Format
All requests must:- Use HTTPS
- Include
Content-Type: application/jsonheader - Include
X-Api-Keyheader with your project API key - Send data as JSON in the request body
Response Format
All responses are returned as JSON with the following structure:Success Response
Error Response
Rate Limits
Turret implements rate limiting to ensure service quality:- Free tier: 10,000 events per month
- Pro tier: 100,000 events per month
- Enterprise: Custom limits
429 Too Many Requests response with details about when you can retry.
Error Codes
Common error codes you might encounter:| Code | Description |
|---|---|
INVALID_API_KEY | The provided API key is invalid or missing |
RATE_LIMIT_EXCEEDED | You have exceeded your monthly event limit |
INVALID_REQUEST | The request format is incorrect |
MISSING_REQUIRED_FIELD | Required fields are missing from the request |
TEXT_TOO_LONG | Metadata text exceeds maximum length |
Getting Started
- Get your API key from the Turret Dashboard
- Make your first request to
/trackwith event data - View your results in the dashboard to see automatic clustering
Track Your First Event
Learn how to send events to Turret