curl --request GET \
--url https://api.example.com/job_status{
"status": "<string>",
"result": {
"mcqs": [
{
"question": "<string>",
"options": [
{}
],
"correct_answer": "<string>",
"bloom_level": "<string>",
"explanation": "<string>"
}
]
},
"error": "<string>"
}curl --request GET \
--url https://api.example.com/job_status{
"status": "<string>",
"result": {
"mcqs": [
{
"question": "<string>",
"options": [
{}
],
"correct_answer": "<string>",
"bloom_level": "<string>",
"explanation": "<string>"
}
]
},
"error": "<string>"
}null if the job ID doesn’t exist or has expired."finished" when job completed successfully.Show result properties
Show MCQ structure
"failed" when job encountered an error."queued", "started", or other intermediate states.curl -X GET "http://localhost:8000/job_status?job_id=abc123-def456-ghi789"
{
"status": "started"
}
{
"status": "finished",
"result": {
"mcqs": [
{
"question": "What is the primary function of chlorophyll in photosynthesis?",
"options": [
"Absorb light energy",
"Store glucose",
"Release oxygen",
"Transport water"
],
"correct_answer": "Absorb light energy",
"bloom_level": "remember",
"explanation": "Chlorophyll is the pigment that captures light energy from the sun, which is the first step in photosynthesis."
},
{
"question": "How would limiting carbon dioxide affect the rate of photosynthesis?",
"options": [
"No effect",
"Increase the rate",
"Decrease the rate",
"Stop it completely"
],
"correct_answer": "Decrease the rate",
"bloom_level": "analyze",
"explanation": "Carbon dioxide is a key reactant in photosynthesis. Limiting it would slow down the process as plants have less raw material to convert into glucose."
}
]
}
}
{
"status": "failed",
"error": "Connection timeout to vector database"
}
{
"status": null
}
"finished", save the result immediately as job data may expire