Skip to main content
POST
/
api
/
GetCompanies
Gets the list of companies under a user / API key.
curl --request POST \
  --url https://api.telemax.com.au/api/GetCompanies \
  --header 'Authorization: <authorization>'
{
  "Companies": [
    {
      "id": 123,
      "name": "Acme Corporation",
      "parentId": null,
      "showCommands": false
    },
    {
      "id": 124,
      "name": "Subsidiary Corp",
      "parentId": 123,
      "showCommands": true
    }
  ],
  "TimeZone": "SE Asia Standard Time",
  "UtcOffset": "00:07:00",
  "DateTimeFormat": "yyyy-MM-dd"
}

Headers

Content-Type
string

Standard and must keep as it is.

Authorization
string
required

Bearer your_token

Response

200 - application/json

Successful response with list of companies

Companies
object[]
TimeZone
string

Current user's timezone

UtcOffset
string

Current user's UTC offset, based on the timezone.

Example:

"00:07:00"

DateTimeFormat
string

Current user's date-time format.