List the academies the user belongs to.

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 academies the user belongs to. Pass an academy ID from this list as the tc-orgId header in all other APIs.

Endpoint

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

OAuth Scope

TrainerCentral.portalapi.READCopied!

Request Example

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

Response Parameters

portalsJSON Array

Academies the user belongs to.

Hide Sub-Attributes
JSON Object
Show 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.

customdomainsJSON Array

Custom domains of the listed academies; match by portal.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
idstring

ID of the custom domain.

portalstring

ID of the academy (orgId).

urlstring

Custom domain URL.

editorurlstring

Editor URL of the domain.

typestring

Domain type.

productTypestring

Product type of the domain.

isDefaultstring

true for the default domain.

isPrimarystring

true for the primary domain.

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.

Response Example

Admin of one academy.

Admin of one academy.

Admin of one academy and trainer of another, with a custom domain.

200
200
400
Copied!
  {
    "portals": [
      {
        "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"
      }
    ],
    "customdomains": []
  }
                
  {
    "portals": [
      {
        "id": "51517414",
        "zsoid": "51517414",
        "portalName": "Example Academy",
        "url": "exampleacademy.trainercentral.com",
        "currentUserRole": "2",
        "isLogoExists": "true",
        "isFaviconExists": "false",
        "favIconUrl": "https://exampleacademy.trainercentral.com/tc/favicon",
        "orgLogoUrl": "https://exampleacademy.trainercentral.com/tc/orglogo"
      },
      {
        "id": "51517520",
        "zsoid": "51517520",
        "portalName": "Sample Coding School",
        "url": "samplecoding.trainercentral.com",
        "currentUserRole": "1",
        "isLogoExists": "false",
        "isFaviconExists": "false",
        "favIconUrl": "https://samplecoding.trainercentral.com/tc/favicon",
        "orgLogoUrl": "https://samplecoding.trainercentral.com/tc/orglogo"
      }
    ],
    "customdomains": [
      {
        "id": "3000000000701",
        "portal": "51517520",
        "url": "learn.example.com",
        "editorurl": "learn.example.com",
        "type": "1",
        "isDefault": "true",
        "isPrimary": "true"
      }
    ]
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
▼ Show full

Rate Limits

Duration1 minute
Threshold10

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