API
Reference.
Build institution-grade extensions on top of ThirdLeaf's high-bandwidth journaling engine. Our REST API provides programmatic access to your analytics and trade logs.
Authentication
ThirdLeaf uses JWT-based authentication via Clerk. All requests must include a Bearer token in the header.
Rotate your production API keys in your dashboard settings.
Header Definition
Authorization: Bearer <clerk_token_here> Content-Type: application/json
Main Hub
GET
/api/analytics/overviewPerformance Overview
Retrieve high-level statistics like Win Rate, Profit Factor, and Sharpe Ratio.
Parameters
timeframe (string - optional)
POST
/api/journal/syncManual Trade Sync
Trigger a manual synchronization for a specific broker connection.
Parameters
connectionId (string)
GET
/api/tradesList Recent Trades
Paginated list of historical trade logs with MAE/MFE details.
Parameters
page (number)limit (number)