List the trainers and admins 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 active trainers and admins of the academy, with search and pagination (si, limit). Use the returned zuid as userId when assigning a trainer.

Endpoint

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

OAuth Scope

TrainerCentral.presenterapi.READCopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Query Parameters

siinteger(Optional)

Start index of the first member, from 0. Default 0.

Example
0
limitinteger(Optional)

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

Example
10
searchparamstring(Optional)

Search text matched against name, email or member ID.

Example
john

Request Example

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

Response Parameters

portalMembersJSON Array

Trainers and admins on this page.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
idstring

Academy member ID (orgMemberId).

zuidstring

Zoho user ID (zuid) of the member.

namestring

Full name of the member.

emailstring

Email address of the member.

rolestring

Role in the academy. Allowed: 1=Trainer, 2=Admin.

statusstring

Membership status. Always 1=Active.

metaJSON Object

Counts for pagination. Returned only when si is 0.

Hide Sub-Attributes
totalMembersCountstring

Total active trainers and admins in the academy.

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 or trainer of this academy (for example a guest trainer). 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

First page (si=0).

First page (si=0).

Later page; meta is not returned.

200
200
400
500
Copied!
  {
    "portalMembers": [
      {
        "id": "3000000000002",
        "zuid": "51456901",
        "name": "John Doe",
        "email": "john.doe@example.com",
        "role": "2",
        "status": "1"
      },
      {
        "id": "3000000000015",
        "zuid": "51456977",
        "name": "Priya Raman",
        "email": "priya.raman@example.com",
        "role": "1",
        "status": "1"
      }
    ],
    "meta": {
      "totalMembersCount": "2"
    }
  }
                
  {
    "portalMembers": [
      {
        "id": "3000000000031",
        "zuid": "51457012",
        "name": "alex.kim",
        "email": "alex.kim@example.com",
        "role": "1",
        "status": "1"
      }
    ]
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full