Results

Results viewer payload

Everything the dashboard's results page loads for one submission, in one call: the submission's files (the first one with content inline, the rest fetched through /check/viewer/file), its peer and AI matches, its web sources collapsed to one entry per source, and a rail of every submission in the check carrying the Group, Web and AI scores the dashboard prints beside each name. Built by the same loader as the dashboard, so the two never disagree. Omit submission_id for the highest-scoring submission. Results that are paywalled on the account answer 402 with paywalled: true.

post/check/viewer

Request

  • Base URL: https://codequiry.com/api/v1
  • URL: https://codequiry.com/api/v1/check/viewer
  • Auth: API key in header apikey

Request body

check_idinteger required
submission_idinteger

Which submission to load. Omit for the highest-scoring one.

Example request

{
  "check_id": 12345,
  "submission_id": 90271
}

Response

Viewer payload

successboolean
avgnumber
maxnumber
minnumber
dashboard_urlstring

Example response

{
  "success": true,
  "check": {
    "id": 12345,
    "name": "Assignment 4",
    "status_id": 4,
    "status": "Completed",
    "test_type": 1,
    "language_id": 13,
    "ai_run": true,
    "created_at": "2026-08-11 09:40:00",
    "updated_at": "2026-08-11 09:52:10"
  },
  "submission": {
    "id": 90271,
    "assignment_id": 12345,
    "filename": "Nowak_Alice_A4",
    "result1": 75,
    "result2": 89,
    "updated_at": "2026-08-11 09:52:10"
  },
  "rail": [
    {
      "id": 90271,
      "filename": "Nowak_Alice_A4",
      "status_id": 4,
      "status": "Completed",
      "group_score": 75,
      "web_score": 89,
      "ai_score": 64.3,
      "ai_max": 91.2,
      "ai_files": 1,
      "matches_local": 3,
      "matches_web": 12,
      "file_size": 1091,
      "created_at": "2026-08-11 09:41:37",
      "updated_at": "2026-08-11 09:52:10"
    }
  ],
  "submissions": [
    {
      "id": 90272,
      "filename": "carter_ben_assignment4",
      "updated_at": "2026-08-11 09:52:10"
    }
  ],
  "files": [
    {
      "id": 785285,
      "submission_id": 90271,
      "filedir": "nowak_alice_a4/BankAccount.java",
      "size_bytes": 2310,
      "total_lines": 96,
      "content": "package banking;\n"
    }
  ],
  "matches": [
    {
      "id": 1849201,
      "submission_id": 90271,
      "match_type": 1,
      "similarity": 82,
      "matched_similarity": 75,
      "file": "nowak_alice_a4/BankAccount.java",
      "file_matched": "carter_ben_assignment4/BankAccount.java",
      "submission_id_matched": 90272,
      "line_start": 12,
      "line_end": 58,
      "line_matched_start": 10,
      "line_matched_end": 56,
      "tokens": 47,
      "location": "GitHub: octocat/bank-account",
      "source": "https://github.com/octocat/bank-account/blob/main/BankAccount.java",
      "flags": [
        "uniform_style"
      ],
      "is_peer": true,
      "has_content": true,
      "web_lines": 33,
      "web_longest": 12
    }
  ],
  "web_files": [
    {
      "id": 1849201,
      "submission_id": 90271,
      "match_type": 1,
      "similarity": 82,
      "matched_similarity": 75,
      "file": "nowak_alice_a4/BankAccount.java",
      "file_matched": "carter_ben_assignment4/BankAccount.java",
      "submission_id_matched": 90272,
      "line_start": 12,
      "line_end": 58,
      "line_matched_start": 10,
      "line_matched_end": 56,
      "tokens": 47,
      "location": "GitHub: octocat/bank-account",
      "source": "https://github.com/octocat/bank-account/blob/main/BankAccount.java",
      "flags": [
        "uniform_style"
      ],
      "is_peer": true,
      "has_content": true,
      "web_lines": 33,
      "web_longest": 12
    }
  ],
  "ai_files": [
    {
      "id": 5120,
      "file_path": "nowak_alice_a4/BankAccount.java",
      "ai_probability": 91.2,
      "human_probability": 8.8,
      "classification": "AI-generated",
      "confidence": 0.93,
      "summary": "Uniform structure and comment density typical of generated code."
    }
  ],
  "stats": {
    "avg": 18.4,
    "max": 89
  },
  "avg": 18.4,
  "max": 89,
  "dashboard_url": "https://dashboard.codequiry.com/course/57963/assignment/12345/result-drillerv2",
  "meta": {
    "execution_time_ms": 84.2,
    "optimized": true
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.