List the learner groups of the academy.

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Returns the learner groups in the academy, with search and pagination (si, limit). Send courseType=2; without it this endpoint returns courses.

Endpoint

get https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/courses.json

OAuth Scope

TrainerCentral.courseapi.READCopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Query Parameters

siinteger(Optional)

Start index (0-based). Default 0.

Example
0
limitinteger(Optional)

Number of groups to return. Default 15, max 50.

Example
10
searchTextstring(Optional)

Text to search in the group name and description.

Example
Beginner
courseTypeinteger(Optional)

Record type to list. Allowed: 2=Groups.

Example
2

Request Example

cURL
cURL
Java
Python
Deluge
Copied!
curl --request GET \
  --url 'https://trainercentral.zoho.com/tc/api/v1/trainer/courses.json?si=0&limit=10&searchText=Beginner&courseType=2' \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'tc-orgId: 51517414'

Response Parameters

coursesJSON Array

Groups on this page, newest first.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
courseIdstring

ID of the group (used as courseId in group APIs).

idstring

Same as courseId.

courseNamestring

Name of the group.

typestring

Record type. Always 2 (Group).

orgIdstring

ID of the academy (orgId).

descriptionstring

Description of the group. Supports rich text.

enrolledCountstring

Number of learners in the group.

createdBystring

User ID of the creator.

timestring

Creation time in epoch milliseconds.

lastUpdatedBystring

User ID of the last editor.

lastUpdatedTimestring

Last update time in epoch milliseconds.

courseMembersJSON Array

Admins and moderators of the listed groups, plus the caller's membership.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
courseMembersIdstring

ID of the group membership (courseMemberId).

idstring

Same as courseMembersId.

courseIdstring

ID of the group.

coursestring

Same as courseId.

userIdstring

User ID (zuid) of the member.

orgMemberIdstring

Academy member ID.

orgIdstring

ID of the academy (orgId).

rolestring

Role in the group. Allowed: 0=Group admin, 1=Moderator, 3=Learner.

statusstring

Membership status. Allowed: 0=Active, 10=Invited, 50=Enrolled, 51=Unenrolled.

namestring

Full name of the member.

emailstring

Email of the member; * when hidden from trainers.

imageUrlstring

Profile image URL.

timestring

Last membership change in epoch milliseconds.

invitedTimestring

Invite time in epoch milliseconds.

enrolledTimestring

Enrollment time in epoch milliseconds.

metaJSON Object

Counts for pagination.

Hide Sub-Attributes
totalCourseCountstring

Total number of groups the caller can see, ignoring search.

selectedCourseCountstring

Number of groups that match the search, across all pages.

errorJSON Object

Error details.

Hide Sub-Attributes
codestring

Deprecated numeric error code (for example ST_202). Prefer codeStr; omitted from doc samples.

codeStrstring

Error code name (ShowtimeErrorCode / err_code_str), for example MISSING_PARAMETER.

messagestring

Error message.

Possible Error Codes

HTTP CodeError CodeDescription
500ST_102

UNAUTHORISED_ACCESS - The user is not an academy owner or admin. Do not retry with the same token.

ST_821

GROUP_FEATURE_UNAVAILABLE - The plan does not include groups. Upgrade the plan.

Response Example

Groups matching a search.

200
200
400
500
Copied!
  {
    "courses": [
      {
        "courseId": "3000000000070",
        "id": "3000000000070",
        "courseName": "Beginner Batch",
        "type": "2",
        "orgId": "51517414",
        "enrolledCount": "18",
        "createdBy": "51456901",
        "time": "1782727568966",
        "lastUpdatedBy": "51456901",
        "lastUpdatedTime": "1782727568966"
      }
    ],
    "courseMembers": [
      {
        "courseMembersId": "3000000000072",
        "id": "3000000000072",
        "courseId": "3000000000070",
        "userId": "51456901",
        "role": "0",
        "name": "John Doe"
      }
    ],
    "meta": {
      "totalCourseCount": "3",
      "selectedCourseCount": "1"
    }
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full

Rate Limits

Duration1 minute
Threshold50
Lock Period5 minutes

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.