List the tests in a course.
Returns every test in a course with its settings; not paginated. id is the test id, and the part of formId before the underscore is the form UUID used by the form and question APIs.
Endpoint
get https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/course/{courseId}/tests.json
OAuth Scope
Headers
ID of the academy (orgId).
Path Parameters
ID of the course.
curl --request GET \
--url https://trainercentral.zoho.com/tc/api/v1/trainer/course/21603000000092046/tests.json \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'tc-orgId: 51517414'Response Parameters
Tests of the course; not paginated.
Hide Sub-Attributes
Show Sub-Attributes
Test id (not the form UUID).
Test form id (formUuid_talkId); the part before the underscore is the form UUID.
Same as formId.
Name of the test.
Instructions shown before the test. Supports rich text.
ID of the lesson (sessionId) that holds the test.
Same as sessionId.
ID of the lesson occurrence (talkId) that holds the test.
Same as talkId.
Number of questions in the test.
true when attempts are graded pass or fail.
Pass mark as a percentage of the total score.
true when learners can retake the test.
Retakes allowed after the first attempt; 0 when retakes are off.
Who may retake when grading is on. Allowed: 1=All learners, 3=Passed only, 4=Failed only.
Who sees the result. Allowed: 0=Default (hidden), 1=All learners, 2=No one, 3=Passed only, 4=Failed only.
Who sees the score. Allowed: 0=Default (hidden), 1=All learners, 2=No one, 3=Passed only, 4=Failed only.
Who sees their own answers. Allowed: 0=Default (hidden), 1=All learners, 2=No one, 3=Passed only, 4=Failed only.
Who sees whether each answer was correct. Allowed: 0=Default (hidden), 1=All learners, 2=No one, 3=Passed only, 4=Failed only.
Who sees the correct answers. Allowed: 0=Default (hidden), 1=All learners, 2=No one, 3=Passed only, 4=Failed only.
Who sees the question feedback. Allowed: 0=Default (hidden), 1=All learners, 2=No one, 3=Passed only, 4=Failed only.
Legacy flag; true when testResultAllowType is 1.
Legacy flag; true when testResultAllowType and learnersAnswerAllowType are 1.
true when questions are shuffled.
Questions picked at random per attempt.
true when Choice options are shuffled.
true when marks are deducted for wrong answers.
Marks or percent deducted per wrong answer.
How negativeMark applies. Allowed: 0=Points, 1=Percentage.
true when each attempt has a time limit.
Time limit per attempt in minutes.
Grace time in seconds after the time limit; always 10.
true when learners can change a submitted answer.
true when feedback is shown after each answer.
Message displayed when the assessment ends. Supports rich text.
Message displayed to learners when they pass the assessment. Supports rich text.
Message displayed to learners when they fail the assessment. Supports rich text.
Error details.
Hide Sub-Attributes
Deprecated numeric error code (for example ST_202). Prefer codeStr; omitted from doc samples.
Error code name (ShowtimeErrorCode / err_code_str), for example MISSING_PARAMETER.
Error message.
Possible Error Codes
| HTTP Code | Error Code | Description |
|---|---|---|
| 500 | ST_94 | INVALID_COURSE - The courseId is not a course in this academy, or it is deleted. Pass a valid courseId; do not retry unchanged. |
| ST_102 | UNAUTHORISED_ACCESS - The user is not an academy owner, admin or trainer of this course. Use a user with one of these roles; do not retry unchanged. |
{
"tests": [
{
"id": "59f7b492-b1d4-4573-a4d2-54a957fb6c50",
"formId": "ccba4295-e247-4ead-9519-ccd8ba1924da_21603000000092053",
"form": "ccba4295-e247-4ead-9519-ccd8ba1924da_21603000000092053",
"name": "Business Fundamentals Quiz",
"description": "<p>Answer all questions.</p>",
"sessionId": "21603000000092051",
"session": "21603000000092051",
"talkId": "21603000000092053",
"talk": "21603000000092053",
"totalQuestions": "5",
"enableGrading": "true",
"gradingPercentage": "50",
"enableRetake": "true",
"attemptsCount": "2",
"allowRetakeAllowType": "4",
"testResultAllowType": "1",
"testScoreAllowType": "1",
"learnersAnswerAllowType": "3",
"correctOrIncorrectAllowType": "3",
"correctAnswerAllowType": "3",
"answerFeedbackAllowType": "0",
"enableShowResult": "true",
"enableShowCorrectAnswer": "false",
"enableShuffleQuestion": "false",
"shuffleLimit": "0",
"enableShuffleAnswerOption": "false",
"enableNegativeMark": "false",
"enableTimedTest": "false",
"graceTimeForEndTest": "10",
"allowLearnersToChangeAnswerOnceSubmitted": "true",
"showFeedbackForEachQuestionAfterAnswering": "false",
"customEndMessage": "",
"passGradeMessage": "Well done!",
"failGradeMessage": "Review the lesson and try again."
}
]
}
{
"error": {
"code": "string",
"codeStr": "string",
"message": "string"
}
}
500 Request failed; see the error code.Rate Limits
Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.