Submissions
A submission is one student’s answer script for one paper. We read the handwriting, mark every question against the marking scheme and write feedback on each answer.
Submission statuses
Section titled “Submission statuses” queued ──▶ processing ──▶ graded ──▶ released │ │ ├────────────┴──────▶ failed └──(cancel)─────────▶ canceledstatus |
Meaning |
|---|---|
queued |
Accepted. We’re fetching and checking the files and placing the credit hold. In live mode it may also be waiting its turn: see marking at once. One sent with its paper waits here while we read the paper. |
processing |
We’re reading and marking the script. |
graded |
Every question is marked and the credits are charged. On an automatic paper the submission moves straight on to released, unless it has no readable answers. On an after_review paper it waits here for a reviewer. |
released |
The result is final, and the result and report are available. |
failed |
Not marked, and nothing charged. failure.code says why. |
canceled |
You cancelled it before marking started. Nothing charged. |
A script counts as marked only when every question has a mark. If we can’t mark every question, even after our automatic retries, the submission fails with grading_failed. You never get a partial score.
One active submission per student
Section titled “One active submission per student”Each student can have one active submission for each paper: one that is queued, processing, graded or released. A second is refused with 409 submission_exists, and resource_id holds the existing submission’s ID. So resending a whole class after a network failure can’t mark or charge anyone twice.
- After a submission
failedor wascanceled, you can create a new one for that student. - To replace a script that was marked from the wrong file, or for a resit of the same paper, delete the earlier submission first. The new one is marked and charged as new work.
Create a submission
Section titled “Create a submission”POST /v1/submissions. Requires an Idempotency-Key.
| Parameter | Required | Description |
|---|---|---|
paper_id |
One of paper_id and paper |
A paper that is ready. |
paper |
One of paper_id and paper |
A new paper, made with the submission. See Send the paper with the submission. |
student.external_id |
Yes | Your stable ID for the student, up to 128 characters. |
student.name |
No | Printed on the report, up to 100 characters. Without it, the report shows student.external_id. |
files |
One of files and answers |
The script: one PDF, or 1 to 50 images in page order. Each item is { "file_id": "file_…" } or { "url": "https://…" }. A mix of PDFs and images, or more than one PDF, gets 400 parameter_invalid; when that only shows once links are downloaded, the submission fails with invalid_file_combination. |
answers |
One of files and answers |
The student’s answers, typed instead of scanned. See Typed answers. |
metadata |
No | See Your own IDs and metadata. |
test_outcome |
No | Test mode only. See Simulating outcomes. |
Give exactly one of files and answers. Neither gets 400 parameter_missing (param is files), and both get 400 parameter_invalid (param is answers). The same goes for paper_id and paper: neither gets 400 parameter_missing (param is paper_id), and both get 400 parameter_invalid (param is paper).
{ "paper_id": "pap_3fT9qLx2Wd", "student": { "external_id": "STU-0042", "name": "Ayesha K." }, "files": [ { "file_id": "file_As2Vb6Nc8T" } ], "metadata": { "class": "10B" }}Response 201 returns the Submission with status: "queued".
Send the paper with the submission
Section titled “Send the paper with the submission”When a student’s paper is theirs alone, send it in the submission as paper, in place of paper_id. paper takes what POST /v1/papers takes, in any of its three forms, and the paper and the submission are made together or not at all. The response is the Submission, whose paper_id is the new paper’s. Errors name fields under paper, such as paper.from_papers[0].paper_id.
{ "paper": { "title": "Biology practice: chapters 1 and 3", "from_papers": [ { "paper_id": "pap_3fT9qLx2Wd", "question_ids": ["q_4Ws9Tz1Bx6", "q_9Zc2Xv7Bn4"] } ] }, "student": { "external_id": "STU-0042", "name": "Ayesha K." }, "files": [ { "file_id": "file_As2Vb6Nc8T" } ]}paper holds |
What happens | Answers |
|---|---|---|
from_papers |
The paper is ready at once and the submission is marked straight away. |
files or answers |
questions |
The same. | files |
question_paper and marking_scheme |
We read the paper, which is charged as any paper is, and it becomes ready without waiting for your approval: we send paper.ready, and no paper.awaiting_review. The submission stays queued until then, its script checked and its credits held, and is then marked. |
files |
- Typed answers go with
from_papers: eachanswers[].question_idis theidof the question you took, from its own paper. The result names the copies, in the order you set them, so match its questions bynumber. A paper written out or still to be read has no question IDs to answer yet: create it withPOST /v1/papersfirst, then send typed answers with itspaper_id. - No one checks a paper we read this way before the script is marked, so what we read from the marking scheme is what the student is marked against. Its
warningssay what to look at. Where that matters, create the paper first and approve it yourself. - If the paper fails, so does the submission, with
paper_failed: the paper’s ownfailuresays why. Nothing is charged for either. A script that can’t be marked, or a balance that can’t cover it, fails the submission at once, while the paper is still read and stays yours to use. If we read a question with nothing to mark, the paper waits asawaiting_reviewand the submission staysqueued: correct it in the review workspace and approve it, and the submission is marked. - Reuse the paper. For the next student who sits it, send its
paper_id: it isn’t read or charged again. - A paper stays in your account like any other. Cancelling or deleting the submission doesn’t delete it.
- In live mode, a submission waiting for its paper doesn’t count towards marking at once.
Typed answers
Section titled “Typed answers”When students answer in your platform rather than on paper, send their answers as answers instead of files. We mark them against the paper as we mark a script, with the same result, feedback and report.
{ "paper_id": "pap_3fT9qLx2Wd", "student": { "external_id": "STU-0042", "name": "Ayesha K." }, "answers": [ { "question_id": "q_4Ws9Tz1Bx6", "part_key": "a", "text": "The current decreases." }, { "question_id": "q_4Ws9Tz1Bx6", "part_key": "b_i", "text": "$P = IV = 6 \\times 0.5 = 3$ W" }, { "question_id": "q_9Zc2Xv7Bn4", "selected_option": "B" } ]}| Parameter | Required | Description |
|---|---|---|
answers[].question_id |
Yes | The question’s id, from GET /v1/papers/{id}/questions. |
answers[].part_key |
For a question with parts | The part’s key, such as b_i. A question with parts is answered part by part; leave part_key out for a question without parts. |
answers[].text |
One of text and selected_option |
What the student wrote, in our text format, up to 20,000 characters. |
answers[].selected_option |
One of text and selected_option |
For a multiple-choice question or part, the label of the option the student chose, such as B. |
- Give at most one answer for each question or part, and at least one answer in all. Leave out anything the student didn’t answer: it gets 0, and its feedback says it wasn’t answered.
textcan’t be blank, so leave the question out rather than sending"". - We check each answer against the paper when you create the submission. An unknown question or part, a missing
part_key, or an option for a written question gets400, naming the field. - Typed answers are charged per question answered, however many of its parts, at your typed-answer rate (
pricing.typed_grading_credits_per_questionon your account).billing.questionsshows how many. - A typed submission has no script: its
filesis empty and it has no marked script. Its result and report work as for a script. - In test mode, multiple choice is scored against the paper’s key and a question or part left unanswered gets 0, as in live mode; written answers get the sample marks.
test_outcometakesgraded,insufficient_creditsandgrading_failed.
The Submission object
Section titled “The Submission object”{ "id": "sub_7Hk2Pz9QaN", "object": "submission", "livemode": true, "paper_id": "pap_3fT9qLx2Wd", "student": { "external_id": "STU-0042", "name": "Ayesha K." }, "status": "released", "failure": null, "no_readable_answers": false, "files": [ { "file_id": "file_As2Vb6Nc8T", "pages": 12 } ], "billing": { "status": "charged", "pages": 12, "questions": null, "credits": 12 }, "score": { "awarded": 68, "available": 90, "percentage": 75.6 }, "graded_at": "2026-10-06T09:21:40Z", "released_at": "2026-10-06T09:21:40Z", "metadata": { "class": "10B" }, "created_at": "2026-10-06T09:15:30Z", "updated_at": "2026-10-06T09:21:40Z"}| Field | Type | Description |
|---|---|---|
status |
string | See Submission statuses. |
failure |
object | { "code", "message" } when status is failed, otherwise null. |
no_readable_answers |
boolean | true when we found no answers in the script. See below. |
files |
array | The script’s files in page order, with their page counts. For a file sent as a link, file_id and pages are null until we’ve downloaded it. Empty for typed answers. |
billing |
object | See The billing object. |
score |
object | The total once graded, otherwise null. Provisional until released, because a reviewer may still change marks. Questions that the paper’s choice rules leave out are not counted. |
graded_at, released_at |
timestamp | When the script was marked, and when its result became final. |
Scripts with no readable answers
Section titled “Scripts with no readable answers”Sometimes a script is readable but contains no answers: blank pages, the wrong document or another student’s paper. We still read and mark it, so it is charged, but every question gets 0 and its feedback says why.
Because a zero sent to a student by mistake is hard to undo, such a submission is never released automatically. It stays graded with no_readable_answers: true, even on an automatic paper, and submission.graded tells you about it. Check the files, then either:
- release it, if the student really did hand in a blank script; or
- delete it and submit the right file.
Retrieve and list submissions
Section titled “Retrieve and list submissions”| Endpoint | Description |
|---|---|
GET /v1/submissions/{id} |
Retrieve a submission. |
GET /v1/submissions |
List submissions. Filter by paper_id, student_external_id or status, plus the list parameters. |
Update a submission
Section titled “Update a submission”PATCH /v1/submissions/{id} changes student.name or metadata, and returns the submission. A new name appears in the report the next time it is requested.
Cancel a submission
Section titled “Cancel a submission”POST /v1/submissions/{id}/cancel stops a submission that is still queued. Its hold is released, its files are released for reuse, and it becomes canceled. It returns the submission. Cancelling a submission that is already canceled returns it unchanged; any other status gets 409 submission_not_cancelable.
Releasing results
Section titled “Releasing results”A graded result waits for a reviewer when the paper was created with "results_release": "after_review", or when the script has no readable answers. A reviewer can release it:
- in the review workspace, opened with the paper’s review link, after adjusting marks and feedback if needed; or
- through the API:
POST /v1/submissions/{id}/releasemoves agradedsubmission toreleased, sendssubmission.releasedand returns the submission.
Releasing a submission that is already released returns it unchanged. Any other status gets 409 submission_not_releasable. Once released, a result doesn’t change.
Delete a submission
Section titled “Delete a submission”DELETE /v1/submissions/{id} permanently deletes the submission with its files, result, report and marked script, and returns 204. A submission that is queued or processing can’t be deleted (409 submission_in_progress); cancel it first if it is still queued. Credits already charged are not returned.