The Email Tracker Server provides a REST API for tracking email opens and managing tracking data.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/shlokjain2031/email-tracker-extension/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
The server runs on port 8080 by default. You can configure the port using thePORT environment variable:
Authentication
The Email Tracker API uses two authentication methods depending on the endpoint:Dashboard API authentication
Dashboard endpoints require theX-Tracker-Token header for authentication:
DASHBOARD_TOKEN environment variable:
Tracking pixel authentication
The tracking pixel endpoint (/t/:token.gif) uses signed tokens embedded in the URL. These tokens are generated by the encodeTrackingToken() function from @email-tracker/shared and include:
- Email ID
- User ID
- Recipient email
- Sender email
- Sent timestamp
API endpoints
The Email Tracker Server provides the following endpoint categories:- Tracking: Pixel endpoint for recording email opens
- Dashboard: Retrieve tracked emails and open events
- Suppression: Control sender suppression for Gmail proxy handling
- Metrics: Debug endpoints for monitoring suppression signals and latency
Health check
The server includes a basic health check endpoint:Error responses
API errors return JSON responses with the following structure:200- Success400- Bad request (missing or invalid parameters)401- Unauthorized (missing or invalid authentication token)500- Internal server error