Backend API
The Solute SDK requires a backend API to receive events and serve feature flags. This section documents the API endpoints that your backend must implement.Base URL
Authentication
All requests must include the API key in theX-Api-Key header:
Required Endpoints
Your backend must implement at least these two endpoints:- POST /api/events - Receive batched events from the SDK
- GET /api/feature-flags - Serve feature flags for a user
Optional Endpoints
These endpoints are optional but recommended:- POST /api/identify - Update user traits (can also be sent via
/api/events) - POST /api/group - Associate users with groups
- POST /api/alias - Merge user identities
Rate Limiting
Recommended rate limits:- Event ingestion: 1000 requests/minute per API key
- Feature flags: 100 requests/minute per API key
- Identify/Group/Alias: 500 requests/minute per API key
429 Too Many Requests when limits are exceeded.
Error Responses
All endpoints should return errors in this format:Common Error Codes
INVALID_API_KEY- Invalid or missing API keyVALIDATION_ERROR- Request body validation failedRATE_LIMIT_EXCEEDED- Too many requestsINTERNAL_ERROR- Server errorNOT_FOUND- Resource not found
