Results
Get AI detection results (POST)
post/ai-results
Request
- Base URL: https://codequiry.com/api/v1
- URL: https://codequiry.com/api/v1/ai-results
- Auth: API key in header apikey
Request body
Example request
{
"assignment_id": 12345
}Response
AI results
Example response
{
"success": true,
"assignment_id": 12345,
"assignment_name": "CS-201 Assignment 4",
"message": "No submissions found for this check.",
"assignment_status": 4,
"statistics": {
"total_submissions": 28,
"submissions_with_ai_detection": 26,
"submissions_with_code_quality": 26,
"avg_ai_detection": 22.7,
"avg_code_quality": 71.3,
"high_ai_risk_count": 3,
"medium_ai_risk_count": 7,
"low_ai_risk_count": 16
},
"submissions": [
{
"submission_id": 90271,
"filename": "nowak_alice_a4.zip",
"status": "Completed",
"status_id": 4,
"plagiarism_score": {
"local": 75,
"web": 89,
"total": 89
},
"matches": {
"local": 3,
"web": 12
},
"ai_detection": {
"total_files": 4,
"avg_ai_probability": 91,
"max_ai_probability": 94,
"min_ai_probability": 88,
"risk_level": "high",
"files": [
{
"id": 150669,
"file_path": "nowak_alice_a4/BankAccount.java",
"ai_probability": 94,
"human_probability": 6,
"classification": "AI-Generated",
"confidence": 0.96,
"summary": "Uniform structure, textbook docstrings and near-zero stylistic variance across functions are strong indicators of AI-generated code.",
"created_at": "2026-08-11 09:14:02"
}
]
},
"ai_code_quality": {
"total_files": 4,
"avg_score": 77,
"max_score": 93,
"min_score": 61,
"files": [
{
"id": 156147,
"file_path": "nowak_alice_a4/BankAccount.java",
"score": 93,
"level": "High",
"total_lines": 84,
"comment_density": 0.31,
"entropy": 3.9,
"issues": [
"Deeply nested control flow in transfer()"
],
"created_at": "2026-08-11 09:14:02"
}
]
},
"file_size": 10874,
"created_at": "2026-08-11 09:14:02",
"updated_at": "2026-08-11 09:41:37"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.