GET - Assignment Model Answer
This API fetches the detailed model answer sheet for a given assignment ID. The response includes rubric data, document links (if any), and status indicators.
Path Parameter:
id(required): The unique identifier of the model answer sheet.
Response Includes:
id: Model answer sheet ID.documents[]: List of any uploaded documents (usually empty if only rubric is used).rubric: Rubric details used for evaluationrubricCriteria: Each evaluation criterion (e.g., Clarity, Creativity).scoringLogic: Explanation of scores from 1 to 5 for each criterion.status: Evaluation status (e.g., 1 = In Progress, 2 = Extracted, etc.)
Want to receive automatic notifications when assignment model answer sheet is processed? Set up webhooks to get real-time updates on assignment model answer sheet extraction. Check out the Webhooks.
GET
/
assignment-evaluation
/
v1
/
assignment
/
{id}
/
model-answer
/
cURL
curl --request GET \
--url https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/', 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://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3b27e0be-f9e8-4c4d-977b-b315bfb292ab",
"documents": [],
"rubric": {
"id": "2b973c83-2830-4712-87b7-64a8c0a99035",
"name": "English Rubrics",
"description": null,
"rubricCriteria": [
{
"id": "d102b0ff-1111-4235-b8e9-764ef03c57cb",
"name": "Confidence & fluency in speaking",
"description": "",
"maxScore": "5 Star",
"minScore": "1 Star",
"scoringLogic": [
{
"score": "5 Star",
"scoringLogic": "Speaking: Reflects poise & confidence. Great body language, eye contact."
}
],
"createdAt": "2023-10-01T12:00:00Z",
"modifiedAt": "2023-10-01T12:00:00Z"
}
],
"createdAt": "2023-10-01T12:00:00Z",
"modifiedAt": "2023-10-01T12:00:00Z"
},
"status": 1
}{
"detail": "Token has expired"
}{
"error": {
"code": 404,
"message": {
"non_field_errors": [
"Assignment not found"
]
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Model answer sheet updated successfully.
Was this page helpful?
⌘I
cURL
curl --request GET \
--url https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/', 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://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.crazygoldfish.com/assignment-evaluation/v1/assignment/{id}/model-answer/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3b27e0be-f9e8-4c4d-977b-b315bfb292ab",
"documents": [],
"rubric": {
"id": "2b973c83-2830-4712-87b7-64a8c0a99035",
"name": "English Rubrics",
"description": null,
"rubricCriteria": [
{
"id": "d102b0ff-1111-4235-b8e9-764ef03c57cb",
"name": "Confidence & fluency in speaking",
"description": "",
"maxScore": "5 Star",
"minScore": "1 Star",
"scoringLogic": [
{
"score": "5 Star",
"scoringLogic": "Speaking: Reflects poise & confidence. Great body language, eye contact."
}
],
"createdAt": "2023-10-01T12:00:00Z",
"modifiedAt": "2023-10-01T12:00:00Z"
}
],
"createdAt": "2023-10-01T12:00:00Z",
"modifiedAt": "2023-10-01T12:00:00Z"
},
"status": 1
}{
"detail": "Token has expired"
}{
"error": {
"code": 404,
"message": {
"non_field_errors": [
"Assignment not found"
]
}
}
}