Overview
Journium provides both client-side SDK methods and server-side REST API endpoints to help you integrate conversion tracking and analytics into your applications. This reference covers all available methods, parameters, and response formats.SDK vs REST API
Client-Side SDK
Use for real-time user tracking, client-side events, and browser-based analytics
REST API
Use for server-side tracking, data export, and backend integrations
SDK Methods
The Journium SDK provides the following core methods:Tracking Methods
Journium.init()- Initialize the SDKJournium.track()- Track custom eventsJournium.page()- Track page viewsJournium.identify()- Identify usersJournium.updateUser()- Update user properties
Utility Methods
Journium.ready()- Wait for SDK initializationJournium.reset()- Clear all dataJournium.getConfig()- Get current configurationJournium.isReady()- Check if SDK is ready
Authentication
All API requests require authentication using your project’s API key. You can find your API key in your Journium dashboard.SDK Authentication
The SDK uses your public API key for client-side tracking:REST API Authentication
Server-side API requests use your secret API key in the Authorization header:Rate Limits
To ensure fair usage and optimal performance, the Journium API implements rate limiting:- SDK Events: 1,000 events per minute per project
- REST API: 100 requests per minute per API key
- Bulk Operations: 10 requests per minute for batch endpoints
Error Handling
All API endpoints return standard HTTP status codes and error messages:Success Codes
200- OK: Request successful201- Created: Resource created successfully202- Accepted: Request accepted for processing
Error Codes
400- Bad Request: Invalid parameters or request format401- Unauthorized: Invalid or missing API key403- Forbidden: Insufficient permissions404- Not Found: Resource not found429- Too Many Requests: Rate limit exceeded500- Internal Server Error: Server-side error
Error Response Format
SDKs and Libraries
API Versioning
The Journium API uses URL versioning. The current version isv1:
Changelog
Stay updated with the latest API changes:- v1.2.0 (2024-01-15): Added bulk event tracking
- v1.1.0 (2023-12-01): Enhanced error responses
- v1.0.0 (2023-10-15): Initial API release