Invite a learner.
Invites a learner to the academy and, optionally, to a course, group or live workshop. Send courseId for a course or group (with courseType=2), or sessionId for a live workshop.
Endpoint
post https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/addCourseAttendee.json
OAuth Scope
Headers
ID of the academy (orgId).
Query Parameters
Type of courseAttendee.courseId; must match it. Allowed: 0=Course, 1=Course bundle, 2=Group.
Group invites only. Send 3 to add a group learner; leave it out to add a moderator.
Request Body
application/jsonThe learner to invite (one per call).
Hide Sub-Attributes
Email address of the learner.
First name of the learner. Required for a new learner.
Last name of the learner.
ID of the course, course bundle or group to invite to. For a group, also send courseType=2.
ID of the live workshop to invite to.
true gives access without payment. Default false.
Time the course access ends, in epoch milliseconds. Send expiryTime or expiryDuration, not both.
Length of course access, in expiryFrequency units (1-2000).
Unit of expiryDuration. Allowed: 0=Days, 4=Hours.
Password for a new learner account.
curl --request POST \
--url 'https://trainercentral.zoho.com/tc/api/v1/trainer/addCourseAttendee.json?courseType=2&groupLearner=3' \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--header 'tc-orgId: 51517414' \
--data '{"courseAttendee":{"email":"learner@example.com","firstName":"John","lastName":"Doe"}}' {
"courseAttendee": {
"email": "learner@example.com",
"firstName": "John",
"lastName": "Doe"
}
}
{
"courseAttendee": {
"email": "learner@example.com",
"firstName": "John",
"lastName": "Doe",
"courseId": 3000000000022
}
}
{
"courseAttendee": {
"email": "learner@example.com",
"firstName": "John",
"lastName": "Doe",
"courseId": 3000000000022,
"isAccessGranted": true
}
}
{
"courseAttendee": {
"email": "learner@example.com",
"firstName": "John",
"lastName": "Doe",
"courseId": 3000000000070
}
}
{
"courseAttendee": {
"email": "learner@example.com",
"firstName": "John",
"lastName": "Doe",
"sessionId": 3000000000200
}
}
Response Parameters
Academy member record of the learner.
Hide Sub-Attributes
Academy member ID of the learner.
Zoho user ID (zuid) of the learner.
Email address of the learner.
First name of the learner.
Last name of the learner.
Academy role. Allowed: 4=Learner.
Membership status. Allowed: 1=Active, 2=Invited.
ID of the academy (orgId).
Course or group membership of the learner. Returned only when courseId is sent.
Hide Sub-Attributes
Show Sub-Attributes
ID of the course member (courseMemberId).
Same as courseMembersId.
ID of the course or group.
Same as courseId.
User ID (zuid) of the member.
Academy member ID.
ID of the academy (orgId).
Role in the course. Allowed: 0=Course admin, 1=Trainer, 3=Learner, 4=Previewer.
Membership status. Allowed: 0=None, 1=Access requested, 2=Approved, 3=Rejected, 10=Invited, 11=Prospect, 50=Enrolled, 51=Blocked.
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.
Full name of the member.
Email of the member; * when hidden from trainers.
Profile image URL.
Course completion percentage (0-100).
How the course was completed. Allowed: 0=By the learner, 1=Marked by a trainer.
Number of lessons completed.
Total number of lessons in the course.
Last membership change in epoch milliseconds.
Invite time in epoch milliseconds.
First enrollment time in epoch milliseconds.
Completion time in epoch milliseconds.
Last time the learner opened the course, in epoch milliseconds.
Last sign-in time in epoch milliseconds.
IP address of the last sign-in.
Country of the last sign-in.
true when a certificate has been issued.
true when a badge has been issued.
Amount the learner paid, in the academy base currency.
totalRevenue with the currency symbol.
Access expiry time in epoch milliseconds.
Live workshop registration. Returned only when sessionId is sent.
Payment records created for the invite; often empty.
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_102 | UNAUTHORISED_ACCESS - The user is not an academy owner or admin, or courseType does not match courseId. Do not retry unchanged. |
| ST_565 | USER_EMAIL_UNCONFIRMED - The caller's Zoho account email is not confirmed. Confirm it, then retry. | |
| TC_1401 | ZOHOONE_CLIENTPORTAL_ACCESS_RESTRICTED - Learners of a Zoho One client portal cannot be invited here. Manage them in Zoho One. Do not retry. | |
| ST_913 | NAME_FIELDS_MANDATORY - firstName is missing for a new learner. Send a non-empty firstName. | |
| ST_94 | INVALID_COURSE - Course or group not found or deleted. Pass a valid courseId. Do not retry unchanged. | |
| ST_79 | INVALID_SESSION - Live workshop not found. Pass a valid sessionId. Do not retry unchanged. | |
| ST_1302 | LEARNER_BLOCKED - The learner is blocked in this academy. Unblock them first. | |
| ST_371 | INVALID_USER_INVITE - The learner was removed from this academy. Use another email or restore the learner. | |
| ST_556 | EMAIL_ALREADY_REGISTERED - The learner is already in the academy. Send a courseId or sessionId to invite them further. | |
| ST_822 | ALREADY_PORTAL_MEMBER - The person is already in this group. Do not retry unchanged. | |
| ST_824 | MODERATOR_ALREADY_IN_GROUP - The person is already a moderator of this group. Do not retry unchanged. | |
| ST_825 | LEARNER_ALREADY_IN_GROUP - The learner is already in this group. Do not retry unchanged. | |
| ST_95 | INVALID_USER_EMAIL - Invalid email address. Send a valid email. | |
| ST_364 | PASSWORD_DATA_BREACH - The password appears in a known data breach. Send a different password. | |
| ST_372 | SEQUENTIAL_CHARACTERS_NOT_ALLOWED - The password has sequential characters (like 1234). Send a different password. | |
| ST_373 | CONTINUOUS_CHARACTERS_NOT_ALLOWED - The password repeats one character. Send a different password. | |
| TC_1506 | USER_NOT_CONFIRMED_TO_DO_THIS_ACTION - Setting a password needs a confirmed Zoho account for the caller. Confirm it or leave password out. |
{
"portalMember": {
"orgMemberId": "3000000000055",
"zuid": "51456902",
"emailId": "learner@example.com",
"firstName": "John",
"lastName": "Doe",
"role": "4",
"status": "2",
"orgId": "51517414"
},
"courseMember": [
{
"courseMembersId": "3000000000056",
"courseId": "3000000000022",
"orgMemberId": "3000000000055",
"userId": "51456902",
"role": "3",
"status": "10",
"currentStatus": "1"
}
],
"ticketPayments": []
}
{
"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.