S
API Reference/Overview

🔌 API Overview

Direct API access for server-side tracking and data retrieval.

⚠️Authentication
All API requests require your project's API key. Include it in the request body as project_key.

📋 Available Endpoints

POST/api/track

Track 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_key in the request body
  • Send timestamps in ISO 8601 format

📈 Response Codes

StatusDescription
200Success
400Bad request - invalid parameters
401Unauthorized - invalid or missing API key
404Project not found
500Server 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.