Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://tessera.edstratumlabs.ai/api/v1/assignments/{assignmentId}/submissions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "text": "<string>", "fileId": "<string>", "link": "<string>" } '
import requests url = "https://tessera.edstratumlabs.ai/api/v1/assignments/{assignmentId}/submissions" payload = { "text": "<string>", "fileId": "<string>", "link": "<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({text: '<string>', fileId: '<string>', link: '<string>'}) }; fetch('https://tessera.edstratumlabs.ai/api/v1/assignments/{assignmentId}/submissions', 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://tessera.edstratumlabs.ai/api/v1/assignments/{assignmentId}/submissions", 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([ 'text' => '<string>', 'fileId' => '<string>', 'link' => '<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://tessera.edstratumlabs.ai/api/v1/assignments/{assignmentId}/submissions" payload := strings.NewReader("{\n \"text\": \"<string>\",\n \"fileId\": \"<string>\",\n \"link\": \"<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://tessera.edstratumlabs.ai/api/v1/assignments/{assignmentId}/submissions") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .body("{\n \"text\": \"<string>\",\n \"fileId\": \"<string>\",\n \"link\": \"<string>\"\n}") .asString();
require 'uri' require 'net/http' url = URI("https://tessera.edstratumlabs.ai/api/v1/assignments/{assignmentId}/submissions") 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 \"text\": \"<string>\",\n \"fileId\": \"<string>\",\n \"link\": \"<string>\"\n}" response = http.request(request) puts response.read_body
{ "id": "<string>", "assignmentId": "<string>", "studentId": "<string>", "attempt": 4503599627370496, "state": "submitted", "text": "<string>", "fileId": "<string>", "link": "<string>", "submittedAt": "<string>", "grade": { "score": 1, "criteria": [ { "criterionId": "<string>", "levelId": "<string>", "points": 1, "comment": "<string>" } ], "feedback": "<string>", "feedbackOrigin": "human", "feedbackProvenance": { "model": "<string>", "task": "brief", "generatedAt": "<string>", "sources": [ { "id": "<string>", "name": "<string>" } ], "summary": "<string>" }, "gradedBy": "<string>", "gradedAt": "<string>", "releasedAt": "<string>" }, "version": 4503599627370495, "source": "student", "feedbackDraft": { "text": "<string>", "provenance": { "model": "<string>", "task": "brief", "generatedAt": "<string>", "sources": [ { "id": "<string>", "name": "<string>" } ], "summary": "<string>" }, "createdAt": "<string>" }, "deleted": true }
{ "error": { "code": "unauthenticated", "message": "<string>", "details": "<unknown>" } }
Scoped tsk_… API token or Access JWT
1
Success
1 <= x <= 9007199254740991
submitted
graded
returned
Show child attributes
0 <= x <= 9007199254740991
student
recorded