cURL
curl --request POST \ --url https://api.telemax.com.au/api/GetCompanies \ --header 'Authorization: <authorization>'
[ { "id": 123, "name": "Acme Corporation", "parentId": null, "showCommands": false }, { "id": 124, "name": "Subsidiary Corp", "parentId": 123, "showCommands": true } ]
Gets the list of companies under the currently logged in user (user or API key based).
Standard and must keep as it is.
Bearer your_token
Successful response with list of companies
Unique identifier for the company
123
Company name
"Acme Corporation"
ID of parent company, null if top-level
456
Whether commands should be shown for this company
false
Was this page helpful?