List Admins
$ curl https://api.intercom.io/admins \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept: application/json'
HTTP/1.1 200 Ok
{
"type": "admin.list",
"admins": [
{
"type": "admin",
"id": "493881",
"name": "Hoban Washburne",
"email": "[email protected]"
"away_mode_enabled": false,
"away_mode_reassign": false,
"team_ids": [
814865
]
},
{
"type": "admin",
"email": "[email protected]",
"id": "646303",
"name": "Malcolm Reynolds ",
"away_mode_enabled": true,
"away_mode_reassign": false,
"team_ids": [
814865
]
},
{
"type": "admin",
"email": "[email protected]",
"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
]
}
]
}
intercom.admins.all.each { ... }
<?php
$admins= $intercom->admins->getAdmins();
foreach ($admins->admins as $admin) {
print_r($admin->id);
}?>
AdminCollection admins = Admin.list();
// get first page...
List<Admin> pageItems = admins.getPageItems();
// ...or iterate over pages
while (admins.hasNext()) {
System.out.println(admins.next().getName());
}
An App's admins can be fetched by sending a GET
request to https://api.intercom.io/admins/
.
Admin List
Attribute | Type | Description |
---|---|---|
type | string | value is 'admin.list' |
admins | array | A list of admin objects |
pages | object | Optional. A pagination object, which may be empty, indicating no further pages to fetch. |
Request Parameters
None.
Returns
A list of admin objects for the App. The result may also have a pages
object if the response is paginated.
A tag allows you to label your users and companies and list them using that tag.
This section describes how tags can be created updated and deleted. It also describes how users and companies can be tagged or untagged individually or in bulk.
How to query using a tag is described in the respective sections for users and companies - see "List by Tag, Segment, Company" for Users, and "List by Tag or Segment" for Companies.