Skip to main content

Campus Tool - AI Evaluation API Reference

Base URL​

http://localhost:8000

Key endpoints​

EndpointUse case
GET /v1/healthHealth check
POST /v1/evaluate/directPrompt-only evaluation (testing)
POST /v1/evaluate/build/directFull build eval: prompt judge -> codegen -> code judge
POST /v1/evaluatePrompt eval in competition round flow
POST /v1/evaluate/buildBuild eval in competition round flow
GET /v1/rubricsPrompt rubric
GET /v1/rubrics/codeCode rubric

Build eval example​

curl -X POST http://localhost:8000/v1/evaluate/build/direct \
-H "Content-Type: application/json" \
-d '{
"problem_statement": "Build a todo app using React...",
"user_prompt": "You are a React developer. Build a todo app...",
"problem_type": "react_spa",
"acceptance_criteria": ["add task", "mark complete", "delete task"]
}'

Important: user_prompt is the participant's prompting answer, not submitted code.

Env vars​

VariableRequiredDefaultDescription
OPENAI_API_KEYYes-OpenAI API key
OPENAI_MODELNogpt-4oJudge / codegen model
DATABASE_URLNosqlite:///./evaluations.dbDB URL
PROMPT_SCORE_WEIGHTNo0.4Prompt weight
OUTPUT_SCORE_WEIGHTNo0.6Code output weight

n8n final-score webhook (shape)​

Includes email, name, round, testScheduleId, api_base_url, problem fields, pass_threshold, optional previous_rounds.

Next Steps​