Get academy OrgID API

Get academy OrgID API


When you log in to TrainerCentral, you can see an ID (<orgId>) in the URL which will be a number.

Example: https://trainercentral.com/#/portal/<orgID>/sessions/upcoming?sort=1 


This <orgID> is used in the request URL of the APIs listed below. If you have customized the URL for your organization profile, then the customized name will be visible in the URL instead of the orgID. Both the URL and orgID of all your portals will be returned as response in the View organization portal API call.

View organization portals

The orgId with the "true" value in the "isDefault" parameter is the currently active organization portal ID.

Description: To fetch the list of all the organization portals of a user. 

Request URL: /api/v4/org/portals.json

Method: GET

OAuth scope: TrainerCentral.portalapi.READ

Sample response

  1. {
  2.   "portals": [
  3.     {
  4.       "planName": <planName>,
  5.       "isTrial": "false",
  6.       "orgLogoUrl": <orgLogoUrl>,
  7.       "url": <url>,
  8.       "referrer": "1",
  9.       "isDefault": "false",
  10.       "portalName": <portalName>,
  11.       "currentUserRole": "0",
  12.       "createdBy": <createdBy>,
  13.       "createdTime": "1502194325666",
  14.       "id": <orgId>,
  15.       "isLogoExists": "false",
  16.       "zsoid": <orgId>