Grade a single question (real-time)
curl --request POST \
--url https://edpire.com/api/v1/assessments/{id}/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"exercise_id": "<string>",
"question_id": "<string>",
"answers": [
{}
],
"learner_ref": "<string>",
"session_id": "<string>"
}
'import requests
url = "https://edpire.com/api/v1/assessments/{id}/check"
payload = {
"exercise_id": "<string>",
"question_id": "<string>",
"answers": [{}],
"learner_ref": "<string>",
"session_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
exercise_id: '<string>',
question_id: '<string>',
answers: [{}],
learner_ref: '<string>',
session_id: '<string>'
})
};
fetch('https://edpire.com/api/v1/assessments/{id}/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://edpire.com/api/v1/assessments/{id}/check",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'exercise_id' => '<string>',
'question_id' => '<string>',
'answers' => [
[
]
],
'learner_ref' => '<string>',
'session_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://edpire.com/api/v1/assessments/{id}/check"
payload := strings.NewReader("{\n \"exercise_id\": \"<string>\",\n \"question_id\": \"<string>\",\n \"answers\": [\n {}\n ],\n \"learner_ref\": \"<string>\",\n \"session_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://edpire.com/api/v1/assessments/{id}/check")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"exercise_id\": \"<string>\",\n \"question_id\": \"<string>\",\n \"answers\": [\n {}\n ],\n \"learner_ref\": \"<string>\",\n \"session_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://edpire.com/api/v1/assessments/{id}/check")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"exercise_id\": \"<string>\",\n \"question_id\": \"<string>\",\n \"answers\": [\n {}\n ],\n \"learner_ref\": \"<string>\",\n \"session_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"correct": true,
"score": 123,
"max_score": 123,
"feedback": {}
},
"error": {
"message": "<string>"
},
"meta": {}
}{
"data": null,
"error": {
"message": "<string>"
},
"meta": null
}{
"data": null,
"error": {
"message": "<string>"
},
"meta": null
}{
"data": null,
"error": {
"message": "<string>"
},
"meta": null
}{
"data": null,
"error": {
"message": "<string>"
},
"meta": null
}Assessments
Check Question
Grades a single question without creating a submission. Designed for Duolingo-style flows. Answer keys are never returned. Rate limited per (session_id, question_id).
POST
/
assessments
/
{id}
/
check
Grade a single question (real-time)
curl --request POST \
--url https://edpire.com/api/v1/assessments/{id}/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"exercise_id": "<string>",
"question_id": "<string>",
"answers": [
{}
],
"learner_ref": "<string>",
"session_id": "<string>"
}
'import requests
url = "https://edpire.com/api/v1/assessments/{id}/check"
payload = {
"exercise_id": "<string>",
"question_id": "<string>",
"answers": [{}],
"learner_ref": "<string>",
"session_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
exercise_id: '<string>',
question_id: '<string>',
answers: [{}],
learner_ref: '<string>',
session_id: '<string>'
})
};
fetch('https://edpire.com/api/v1/assessments/{id}/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://edpire.com/api/v1/assessments/{id}/check",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'exercise_id' => '<string>',
'question_id' => '<string>',
'answers' => [
[
]
],
'learner_ref' => '<string>',
'session_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://edpire.com/api/v1/assessments/{id}/check"
payload := strings.NewReader("{\n \"exercise_id\": \"<string>\",\n \"question_id\": \"<string>\",\n \"answers\": [\n {}\n ],\n \"learner_ref\": \"<string>\",\n \"session_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://edpire.com/api/v1/assessments/{id}/check")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"exercise_id\": \"<string>\",\n \"question_id\": \"<string>\",\n \"answers\": [\n {}\n ],\n \"learner_ref\": \"<string>\",\n \"session_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://edpire.com/api/v1/assessments/{id}/check")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"exercise_id\": \"<string>\",\n \"question_id\": \"<string>\",\n \"answers\": [\n {}\n ],\n \"learner_ref\": \"<string>\",\n \"session_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"correct": true,
"score": 123,
"max_score": 123,
"feedback": {}
},
"error": {
"message": "<string>"
},
"meta": {}
}{
"data": null,
"error": {
"message": "<string>"
},
"meta": null
}{
"data": null,
"error": {
"message": "<string>"
},
"meta": null
}{
"data": null,
"error": {
"message": "<string>"
},
"meta": null
}{
"data": null,
"error": {
"message": "<string>"
},
"meta": null
}Authorizations
API key starting with edp_live_. Pass via Authorization: Bearer edp_live_xxx.
Scopes: read:assessments, write:assessments, read:results, write:submissions.
Path Parameters
Assessment UUID
Body
application/json
⌘I