Skip to main content
The Events API is part of the v1 REST API design-partner preview. It has no public host yet — YOUR-FLOKIT-API-HOST is a placeholder your FloKit team fills in when you get preview access. To send app events today, use @flokitai/subscriptions-sdk or the live measurement ingest endpoint.
The FloKit Events API accepts JSON events from your server. Use it to send funnel events, revenue events, or custom events not covered by your subscription platform.

Authentication

All requests require an API key passed as a Bearer token.
Find or create API keys in FloKit → Settings → API Keys. Base URL: https://YOUR-FLOKIT-API-HOST

Send a single event

Response

Request fields

string
required
Event name from the event taxonomy. E.g. paywall_viewed, subscription_started.
string
Your backend user identifier. Required if anonymous_id is not present.
string
Pre-login device or session identifier. Recommended for events that occur before a user account is created. FloKit links anonymous_id to user_id automatically when both appear together in any event.
string
required
ISO 8601 datetime of when the event occurred. Use the event’s actual occurrence time, not the time the request is sent.
object
Any additional event properties as key/value pairs. See the event taxonomy for recommended properties per event type.

Error responses


Idempotency

Include an Idempotency-Key header to safely retry requests without creating duplicate events. FloKit deduplicates on this key within a 24-hour window.
If a duplicate request is received within 24 hours, FloKit returns 200 OK with the original event_id — no duplicate is stored.

Event ordering

Send events in chronological order where possible. Out-of-order events are accepted and will be processed correctly, but funnel metrics may appear inconsistent for a brief period until FloKit’s event sorter catches up. For historical imports with large volumes of out-of-order events, use the batch endpoint and sort events by timestamp before sending.