Get the details of a learner.

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 a learner with profile form answers, found by orgMemberId, userId or email (the first one sent is used). Returns an empty userInfo when no learner matches.

Endpoint

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

OAuth Scope

TrainerCentral.userapi.READCopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Query Parameters

emailstring(Optional)

Email address of the learner.

Example
learner@example.com
userIdstring(Optional)

Zoho user ID (zuid) of the learner.

Example
51456901
orgMemberIdstring(Optional)

Academy member ID of the learner.

Example
3000000000002
fetchSignupDataboolean(Optional)

Also return signup form answers. Allowed: true=Profile and signup answers, false=Profile answers only. Default false.

Example
true

Request Example

cURL
cURL
Java
Python
Deluge
Copied!
curl --request GET \
  --url 'https://trainercentral.zoho.com/tc/api/v1/trainer/fetchuserdetails.json?email=learner@example.com&userId=51456901&orgMemberId=3000000000002&fetchSignupData=true' \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'tc-orgId: 51517414'

Response Parameters

userInfoJSON Object

The learner. Also holds one key per answered form field, named by the field label. Empty when no learner matches.

Hide Sub-Attributes
orgMemberIdstring

Academy member ID of the learner.

userIdstring

Zoho user ID (zuid) of the learner.

userFirstNamestring

First name of the learner.

userLastNamestring

Last name of the learner.

emailIdstring

Email address of the learner.

statusstring

Membership status. Allowed: -2=Prospect, -1=Removed or blocked, 0=Inactive, 1=Active, 2=Invited, 3=Invite cancelled.

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 active admin of this academy; trainers cannot call it. Do not retry unchanged.

ST_273

INVALID_PORTAL - The academy in tc-orgId is disabled, closed or does not exist. Pass an active academy ID. Do not retry unchanged.

Response Example

Learner found by email.

Learner found by email.

No learner matches.

Invalid email.

200
200
400
500
Copied!
  {
    "userInfo": {
      "orgMemberId": "3000000000002",
      "userId": "51456901",
      "userFirstName": "John",
      "userLastName": "Doe",
      "emailId": "john.doe@example.com",
      "status": "1",
      "Company": "Example Inc",
      "Interests": "Python, Data Science"
    }
  }
                
  {
    "userInfo": {}
  }
                
  {
    "error": {
      "codeStr": "PATTERN_NOT_MATCHED",
      "message": "The value specified for email is invalid"
    }
  }
                
500 Request failed; see the error code.
▼ Show full

Rate Limits

Duration1 minute
Threshold20
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.