# List all admins ## Example Request & Response ```curl $ curl https://api.intercom.io/admins \ -H 'Authorization:Bearer ' \ -H 'Accept: application/json' ``` ```curl HTTP/1.1 200 Ok { "type": "admin.list", "admins": [ { "type": "admin", "id": "493881", "name": "Joe Example", "email": "email@example.com" "away_mode_enabled": false, "away_mode_reassign": false, "team_ids": [ 814865 ] }, { "type": "admin", "email": "mal@example.com", "id": "646303", "name": "Malcolm Reynolds ", "away_mode_enabled": true, "away_mode_reassign": false, "team_ids": [ 814865 ] }, { "type": "admin", "email": "jayne@example.com", "id": "1195856", "name": "Jayne Cobb ", "away_mode_enabled": false, "away_mode_reassign": false, "team_ids": [ 814865 ] }, { "type": "team", "email": null, "id": "814865", "name": "SerenityTeam", "away_mode_enabled": false, "away_mode_reassign": false, "admin_ids": [ 493881, 646303, 1195856 ] } ] } ``` ```ruby intercom.admins.all.each { ... } ``` ```php admins->getAdmins(); foreach ($admins->admins as $admin) { print_r($admin->id); }?> ``` ```java AdminCollection admins = Admin.list(); // get first page... List pageItems = admins.getPageItems(); // ...or iterate over pages while (admins.hasNext()) { System.out.println(admins.next().getName()); } ``` You can fetch a list of admins for a given workspace. ### Response This will return a list of [Admin Objects](/docs/references/2.0/rest-api/admins/admin-model) for a given workspace. ### Admin List | Attribute | Type | Description | | --- | --- | --- | | type | string | Value is 'admin.list' | | admins | array | A list of admin objects |