Question Papers
Start a question paper upload
Step 1 of 2. Returns presigned URLs to upload your PDFs to. No question paper is created and nothing is charged until you confirm.
Flow
- Call this endpoint.
- PUT each PDF to the URL(s) returned, sending Content-Type: application/pdf.
- Call POST /v1/question-papers/confirm-upload with the upload_ref.
- Poll GET /v1/question-papers/{id} until the status is GENERATED.
model_answer — where the answers come from. Optional, defaults to auto. Exactly one of:
| Value | Meaning | PDFs to upload |
|---|---|---|
| auto | You are not supplying answers; they are worked out for you. | 1 |
| in_question_paper | The answer key is inside the question paper PDF, e.g. an answer section at the end. | 1 |
| separate_pdf | The answer key is its own file. A second upload URL is returned and must also be uploaded to. | 2 |
With in_question_paper or separate_pdf your answers are used verbatim and are never overwritten. A separate marking-scheme PDF is not supported yet — marks come from the answer key when you supply one.
URLs expire 10 minutes after issue; if that passes, just call this again.
post/v1/question-papers/initiate-upload
Request
- Base URL: https://api.acadine.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.acadine.ai/v1/question-papers/initiate-upload
- Auth: API key in header X-API-Key
Request body
Example request
{
"course_id": "ORG_CRS_2msnplIgOEXImjfvuihUqhIqNJO",
"model_answer": "auto",
"subject_id": "ORG_SUB_2msnplIgOEXImjfvuihUqhIqNJO"
}Response
Successful Response
Example response
{
"upload_ref": "QPU_2msnplIgOEXImjfvuihUqhIqNJO"
}Changes
No recorded changes to this operation across all 1 revision of this API.