const url = 'https://studyfetchapi.com/api/v1/assignment-grader/create';
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: '{"title":"<string>","materialId":"<string>","textToGrade":"<string>","userId":"<string>","model":"<string>","rubric":{"criteria":[{"title":"<string>","description":"<string>","pointsPossible":123}]},"rubricTemplateId":"<string>","assignmentId":"<string>","studentIdentifier":"<string>"}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}