HTTP API routes (Express)ΒΆ

Base: /api on port 3847 (dev proxy from Vite).

Route

Purpose

GET /api/health

Config flags (OAuth, bearer, xAI)

GET /api/me

Linked X session

GET /api/compare

Explore search + rank

GET /api/for-you

Home timeline + rank

GET /api/xai/live-sessions

Spaces + Broadcasts rail

GET /api/xai/the-feedtrix/batch

Single topic Grok batch

GET /api/cdn/twimg

TwIMG proxy fallback

GET/POST /api/auth/x/*

OAuth login/logout/callback

Exact handlers: server/index.ts.