List the access requests of a private course.

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 learners who asked to join a private course, with the status of each request. Send filter=2; results are paginated with si and limit.

Endpoint

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

OAuth Scope

TrainerCentral.courseapi.READCopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Path Parameters

courseIdstring(Required)

ID of the private course.

Query Parameters

siinteger(Optional)

Start index (0-based). Default 0.

Example
0
limitinteger(Optional)

Number of requests to return. Default 10, max 200.

Example
10
Minimum Value :00Copied!
Maximum Value :200200Copied!
searchTextstring(Optional)

Text to search in the learner name and email.

Example
jane
filterinteger(Optional)

Member set to return. Allowed: 2=Access requests.

Example
2

Request Example

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

Response Parameters

courseMembersJSON Array

Members on this page.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
courseMembersIdstring

ID of the course member (courseMemberId).

idstring

Same as courseMembersId.

courseIdstring

ID of the course or 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 course. Allowed: 0=Course admin, 1=Trainer, 3=Learner, 4=Previewer.

statusstring

Membership status. Allowed: 0=None, 1=Access requested, 2=Approved, 3=Rejected, 10=Invited, 11=Prospect, 50=Enrolled, 51=Blocked.

currentStatusstring

Learner progress status. Allowed: 1=Invited, 2=Access requested, 3=Access rejected, 4=Access approved, 5=Free preview, 6=Prospect, 7=Enrolled, 8=Accessed, 9=Access revoked, 10=Blocked, 11=Preview user, 12=Deleted.

namestring

Full name of the member.

emailstring

Email of the member; * when hidden from trainers.

imageUrlstring

Profile image URL.

completionPercentagestring

Course completion percentage (0-100).

completionTypestring

How the course was completed. Allowed: 0=By the learner, 1=Marked by a trainer.

completedLessonstring

Number of lessons completed.

totalLessonstring

Total number of lessons in the course.

timestring

Last membership change in epoch milliseconds.

invitedTimestring

Invite time in epoch milliseconds.

enrolledTimestring

First enrollment time in epoch milliseconds.

completedTimestring

Completion time in epoch milliseconds.

accessedTimestring

Last time the learner opened the course, in epoch milliseconds.

lastLoginstring

Last sign-in time in epoch milliseconds.

ipAddressstring

IP address of the last sign-in.

countrystring

Country of the last sign-in.

isCertificateIssuedstring

true when a certificate has been issued.

isBadgeIssuedstring

true when a badge has been issued.

totalRevenuestring

Amount the learner paid, in the academy base currency.

formattedTotalRevenuestring

totalRevenue with the currency symbol.

expiryTimestring

Access expiry time in epoch milliseconds.

metaJSON Object

Counts for pagination.

Hide Sub-Attributes
membersCountstring

Number of members that match filter and searchText, across all pages.

prospectMembersCountstring

Number of prospect learners (added but not enrolled). Returned only with filter=3.

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_94

INVALID_COURSE - Course not found or 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. Do not retry with the same token.

Response Example

Pending access request.

200
200
400
500
Copied!
  {
    "courseMembers": [
      {
        "courseMembersId": "3000000000091",
        "id": "3000000000091",
        "courseId": "3000000000022",
        "course": "3000000000022",
        "userId": "51456991",
        "orgMemberId": "3000000000003",
        "role": "3",
        "status": "1",
        "currentStatus": "2",
        "name": "Jane Smith",
        "email": "jane.smith@example.com",
        "time": "1782727568989"
      }
    ],
    "meta": {
      "membersCount": "1"
    }
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full

Rate Limits

Duration2 minutes
Threshold50
Lock Period1 minute

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