POST /v1/events
Send a single event from your server.Headers
| Header | Value |
|---|---|
Authorization | Bearer $FLOKIT_API_KEY |
Content-Type | application/json |
Idempotency-Key | (optional) Unique key for safe retries — deduplicated within 24 hours |
Request body
Event name from the event taxonomy. E.g.
paywall_viewed, subscription_started.Your backend user identifier. Required if
anonymous_id is not present.Pre-login device or session identifier. Recommended for events that occur before the user has an account. FloKit links
anonymous_id to user_id when both appear in the same event.ISO 8601 datetime of when the event occurred. Use the actual event time, not the request time.
Additional event properties as key/value pairs. See the event taxonomy for recommended properties per event type.
Examples
Response
Error responses
| Status | Description |
|---|---|
400 Bad Request | Validation error — error and message fields in response body |
401 Unauthorized | Missing or invalid API key |
429 Too Many Requests | Rate limit exceeded — check Retry-After header |
POST /v1/batch/events
Send up to 1,000 events in a single request.Request body
Array of event objects. Each object accepts the same fields as the single-event endpoint:
event, user_id, anonymous_id, timestamp, properties.Example
Response
errors with the array index and reason.
Rate limits
| Limit | Value |
|---|---|
| Events per request | 1,000 |
| Requests per minute | 100 per workspace |