HybridTrader API Endpoint Tester

Test all API endpoints with live responses

How to Use:
✅ Quick Start:
  1. Make sure your API server is running (uvicorn should auto-reload with recent CORS changes)
  2. Open this HTML file directly in your browser OR serve it via HTTP server
  3. The API URL is pre-filled for local testing (http://127.0.0.1:8000)
  4. Click "Test Connection" to verify everything is working
  5. For authenticated endpoints, paste your JWT token from /verify-token
💡 Troubleshooting:
If you see CORS errors, serve this file through a local web server:
# Option 1: Python
cd D:\CursorProjects\ht-bff
python -m http.server 8080
# Then open: http://localhost:8080/tools/endpoint-testing/endpoint_tester.html

# Option 2: Node.js (npx)
npx serve -p 8080
# Then open: http://localhost:8080/tools/endpoint-testing/endpoint_tester.html

Global Settings

Enter a custom API endpoint URL (should include /v1)
Select the API environment to test against
Get this from /v1/auth/verify-token after clicking a magic link

Authentication Endpoints

POST /v1/auth/register
POST /v1/auth/login
POST /v1/auth/verify-token
GET /v1/me
GET /v1/me/roles

Dashboard Endpoints

GET /v1/consensus-insights:latest
GET /v1/for-you
GET /v1/live-market-status
GET /v1/news-items

AI Macro Desk Endpoints

GET /v1/ai-macro-desk
GET /v1/ai-macro-desk/:asset

Daily Reports Endpoints

GET /v1/daily-reports
GET /v1/daily-reports/:reportId

Calendar Events Endpoints

GET /v1/calendar-events
Default: Returns next 7 days of events with limit of 100
GET /v1/calendar-events?today_only=true
Uses econ_today_matters_v view - returns only high-impact and important medium-impact events for today
GET /v1/calendar-events?currency=USD
Filter events by currency code
GET /v1/calendar-events?impact=High
Filter events by impact level
GET /v1/calendar-events?currency=USD&impact=High&limit=10
Combined filters: currency + impact + custom limit
GET /v1/calendar-events?from_date=...&to_date=...
Custom date range query (ISO 8601 format)
GET /v1/calendar-events?limit=5
Limit to 5 events for quick testing