Skip to main content

The Track Endpoint

Request Body


Language Examples


Tracking UNIQUE_COUNT Events

For UNIQUE_COUNT meters, include the value to count in metadata.user_id:

Best Practices

Always pass a unique idempotency_key so it’s safe to retry failed requests without double-counting.
Don’t block your main request path waiting for Fluxrate’s response. Track usage in a background task or fire-and-forget.
Log tracking failures but don’t let them break your main workflow. Implement retry logic with exponential backoff for transient errors.
If you have millions of events per day, pre-aggregate at your backend and send totals every minute rather than sending individual events.