Create a submission
POST
/v1/submissions
const url = 'https://api.learningaide.ai/v1/submissions';const options = { method: 'POST', headers: { 'Idempotency-Key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '"example"'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.learningaide.ai/v1/submissions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --data '"example"'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Idempotency-Key
required
string
A unique value, such as a v4 UUID, that you reuse only to retry this request.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
paper_id
string
paper
One of:
object
title
string
subject_id
required
string
question_paper
required
marking_scheme
required
from_papers
Array<object>
object
paper_id
required
string
question_ids
Array<string>
questions
Array<object>
object
marks
required
integer
stem
string
type
string
answer_key
string
options
Array<string>
correct_option
string
parts
Array<object>
object
label
required
string
text
string
marks
integer
type
string
answer_key
string
options
Array<string>
correct_option
string
parts
Array<object>
object
label
required
string
text
string
marks
integer
type
string
answer_key
string
options
Array<string>
correct_option
string
parts
Array<object>
object
label
required
string
text
string
marks
integer
type
string
answer_key
string
options
Array<string>
correct_option
string
results_release
string
grading
object
strictness
string
feedback
string
instructions
string
external_id
string
metadata
object
key
additional properties
string
test_outcome
string
object
title
string
subject_id
string
question_paper
marking_scheme
from_papers
required
Array<object>
object
paper_id
required
string
question_ids
Array<string>
questions
Array<object>
object
marks
required
integer
stem
string
type
string
answer_key
string
options
Array<string>
correct_option
string
parts
Array<object>
object
label
required
string
text
string
marks
integer
type
string
answer_key
string
options
Array<string>
correct_option
string
parts
Array<object>
object
label
required
string
text
string
marks
integer
type
string
answer_key
string
options
Array<string>
correct_option
string
parts
Array<object>
object
label
required
string
text
string
marks
integer
type
string
answer_key
string
options
Array<string>
correct_option
string
results_release
string
grading
object
strictness
string
feedback
string
instructions
string
external_id
string
metadata
object
key
additional properties
string
test_outcome
string
object
title
string
subject_id
required
string
question_paper
marking_scheme
from_papers
Array<object>
object
paper_id
required
string
question_ids
Array<string>
questions
required
Array<object>
object
marks
required
integer
stem
string
type
string
answer_key
string
options
Array<string>
correct_option
string
parts
Array<object>
object
label
required
string
text
string
marks
integer
type
string
answer_key
string
options
Array<string>
correct_option
string
parts
Array<object>
object
label
required
string
text
string
marks
integer
type
string
answer_key
string
options
Array<string>
correct_option
string
parts
Array<object>
object
label
required
string
text
string
marks
integer
type
string
answer_key
string
options
Array<string>
correct_option
string
results_release
string
grading
object
strictness
string
feedback
string
instructions
string
external_id
string
metadata
object
key
additional properties
string
test_outcome
string
student
required
object
external_id
required
string
name
string
files
answers
Array<object>
object
question_id
required
string
part_key
string
text
string
selected_option
string
metadata
object
key
additional properties
string
test_outcome
string
One of:
One of:
Responses
Section titled “Responses”A new object was created. Its processing may continue in the background.
Media typeapplication/json
object
id
required
string
object
required
string
livemode
required
boolean
paper_id
required
string
status
required
string
no_readable_answers
required
boolean
files
required
billing
required
score
required
metadata
required
object
key
additional properties
string
created_at
required
string format: date-time
updated_at
required
string format: date-time
Example
{ "object": "submission", "status": "queued", "failure": { "code": "file_download_failed" }, "billing": { "status": "pending" }}Headers
Section titled “Headers”X-Request-Id
required
string
This request’s ID. Quote it when you contact support.
RateLimit-Limit
integer
Requests allowed per window.
RateLimit-Remaining
integer
Requests left in the current window.
RateLimit-Reset
integer
Seconds until the window resets.
Idempotent-Replayed
string
On the saved response to an earlier request with this Idempotency-Key.
default
Section titled “default”An error (client docs, “Errors”).
Media typeapplication/json
Headers
Section titled “Headers”X-Request-Id
required
string
This request’s ID. Quote it when you contact support.
RateLimit-Limit
integer
Requests allowed per window.
RateLimit-Remaining
integer
Requests left in the current window.
RateLimit-Reset
integer
Seconds until the window resets.
Retry-After
integer
Seconds to wait before asking again.