⚠️Authentication
All API requests require your project's API key. Include it in the request body as
project_key.📋 Available Endpoints
POST
/api/trackTrack one or more events from client or server
GET
/api/sdk/[key]Get the JavaScript SDK configured for your project
🌐 Base URL
All API requests should be made to your Sypnia instance:
https://your-sypnia-domain.com/api/📤 Request Format
All requests should:
- •Use
Content-Type: application/json - •Include your
project_keyin the request body - •Send timestamps in ISO 8601 format
📈 Response Codes
| Status | Description |
|---|---|
| 200 | Success |
| 400 | Bad request - invalid parameters |
| 401 | Unauthorized - invalid or missing API key |
| 404 | Project not found |
| 500 | Server error |
🔐 CORS
The /api/track endpoint supports CORS and can be called from any domain. However, we recommend using the Allowed Domains setting to restrict which domains can send data.