Endpoints & examples
A few of the most useful endpoints (see /docs for the full reference):
List problems
GET /api/questions?difficulty=Easy&category=Arrays&page=1
Run code against sample cases
POST /api/execute
{ "questionId": "...", "language": "python", "code": "..." }
Run code in the standalone compiler
POST /api/compiler
{ "language": "javascript", "code": "console.log(1+1)", "stdin": "" }
Ask the AI Mentor (streaming)
POST /api/ai/chat
{ "questionId": "...", "message": "Give me a hint" }
The response is a streamed text body — read it incrementally.
Your AI usage
GET /api/billing/usage
All examples assume an authenticated, same-origin request.

