List administrators

List administrators

To view all the administrators within an organization, including super admins and standard dispatchers. Returns a collection of admins.

curl -X GET "https://onfleet.com/api/v2/admins" \
       -u "cd3b3de84cc1ee040bf06512d233719c:"
onfleet.administrators.get()
onfleet.administrators.get();
$onfleet->administrator->get()
[
	// ...
  {
    "id": "tbVmEoNQwN9K92bsITQNUtWY",
    "timeCreated": 1455048957000,
    "timeLastModified": 1455048957461,
    "organization": "yAM*fDkztrT3gUcz9mNDgNOL",
    "email": "[email protected]",
    "type": "super",
    "name": "Sergey Tupolev",
    "isActive": true,
    "isReadOnly": false,
    "phone": "+16505557710",
    "teams": ["Q4Ay4XaJ77rvYtrxQ2WJmqh~"],
    "metadata": []
  },
  {
    "id": "jBOlwJTkN0JzfE9Rj5vEL~UT",
    "timeCreated": 1455048990000,
    "timeLastModified": 1455048990578,
    "organization": "yAM*fDkztrT3gUcz9mNDgNOL",
    "email": "[email protected]",
    "type": "standard",
    "name": "Iñaki Smith",
    "isActive": false,
    "isReadOnly" : false,
    "phone": "+14155556327",
    "teams": [],
    "metadata": []
  },
  {
    "id": "8AxaiKwMd~np7I*YP2NfukBE",
    "timeCreated": 1455156651000,
    "timeLastModified": 1455156651779,
    "organization": "yAM*fDkztrT3gUcz9mNDgNOL",
    "email": "[email protected]",
    "type": "standard",
    "name": "Chelsea M",
    "isActive": false,
    "isReadOnly": true,
    "teams": ["Q4Ay4XaJ77rvYtrxQ2WJmqh~", "JDu~fDkztr*6fUcz9mNDgNOL"],   
    "metadata": []
  },
  // ...
]
{
  "code": "InvalidCredentials",
  "message": {
    "error": 1102,
    "message": "The API key provided is invalid.",
    "cause": "The API key provided is not valid. Please contact [email protected] for further assistance.",
    "request": "be5bd42f-6c60-4d0b-85aa-97a611f945f2"
  }
}