Get the details of an 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 name, domain, user role and logo or favicon details of an academy. Details are read for the tc-orgId academy, so pass the same ID in the path.

Endpoint

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

OAuth Scope

TrainerCentral.portalapi.READCopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Path Parameters

orgIdlong(Required)

ID of the academy (orgId). Pass the same value as the tc-orgId header.

Example
51517414

Request Example

cURL
cURL
Java
Python
Deluge
Copied!
curl --request GET \
  --url https://trainercentral.zoho.com/tc/api/v1/trainer/portals/51517414.json \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'tc-orgId: 51517414'

Response Parameters

portalJSON Object

Details of the academy.

Hide Sub-Attributes
idstring

ID of the academy (orgId).

zsoidstring

Same value as id.

portalNamestring

Name of the academy.

urlstring

Primary domain of the academy, without the protocol.

currentUserRolestring

Role of the user in the academy. Allowed: 0=Member, 1=Trainer, 2=Admin.

isLogoExistsstring

true when a logo is uploaded.

isFaviconExistsstring

true when a favicon is uploaded.

favIconUrlstring

URL of the academy favicon.

orgLogoUrlstring

URL of the academy logo.

descriptionstring

Description of 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. Pass an academy ID from List Academies. 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

Academy details for an admin.

200
200
400
500
Copied!
  {
    "portal": {
      "id": "51517414",
      "zsoid": "51517414",
      "portalName": "Example Academy",
      "url": "exampleacademy.trainercentral.com",
      "currentUserRole": "2",
      "isLogoExists": "true",
      "isFaviconExists": "true",
      "favIconUrl": "https://exampleacademy.trainercentral.com/tc/favicon",
      "orgLogoUrl": "https://exampleacademy.trainercentral.com/tc/orglogo",
      "description": "Online courses by Example Academy"
    }
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full