POST /api/events
Receives batched events from the Solute SDK. This is the primary endpoint for event ingestion.Request
Headers
application/jsonYour API key
Body
Array of events to process. Each event has the following structure:
ISO 8601 timestamp when the batch was sent
Event Object
Event type
ISO 8601 timestamp
User ID (if user is identified)
Anonymous ID
UUID for deduplication
Event context including page info, user agent, screen, locale, library, and session ID
Event name (for ‘track’ events)
Event properties (for ‘track’ events)
User traits (for ‘identify’ events)
Page name (for ‘page’ events)
Page category (for ‘page’ events)
Group ID (for ‘group’ events)
Previous user ID (for ‘alias’ events)
Example Request
Response
Success Response
true if the request was successfulNumber of events successfully processed
Number of events that failed to process
Array of errors for failed events
Example Response
Best Practices
Deduplication
Deduplication
Use the
messageId field to deduplicate events. Store processed message IDs and reject duplicates.Batching
Batching
Accept batches of up to 100 events. Process them asynchronously and return 200 immediately.
Validation
Validation
Validate event schemas before processing. Return validation errors for invalid events.
Async Processing
Async Processing
Process events asynchronously. Don’t block the response waiting for event processing to complete.
