Admin Conversations Count Model

Admin Conversation Count Object

The admin conversation count supplies per Admin counts

AttributeTypeDescription
typestringvalue is 'count'
conversationobjectContains counts related to admins
conversation.adminarrayContains and array of objects detailing each Admin
conversation.admin.opennumberContains the number of open conversations for the Admin
conversation.admin.closednumberContains the number of closed conversations for the Admin
conversation.admin.idstringContains the Admin id
conversation.admin.namestringContains the Admin name
{
  "type": "count",
  "conversation": {
    "admin": [
      {
        "id": "1",
        "name": "Wash",
        "open": 0,
        "closed": 1
      },
      {
        "id": "2",
        "name": "Jayne",
        "open": 0,
        "closed": 0
      }
    ]
  }
}
# Conversation Admin Counts
$ curl 'https://api.intercom.io/counts?type=conversation&count=admin' \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept:application/json'
# Conversation Admin Counts
HTTP/1.1 200 OK

{
  "type": "count",
  "conversation": {
    "admin": [
      {
        "id": "1",
        "name": "Wash",
        "open": 0,
        "closed": 1
      },
      {
        "id": "2",
        "name": "Jayne",
        "open": 0,
        "closed": 0
      }
    ]
  }
}
intercom.counts.for_type(type: 'conversation', count: 'admin')
<?php
// Conversation Admin Count
$counts = $intercom->counts->getCounts(["type" => "conversation", "count" => "admin"]);
print_r($counts);
?>
// Conversation Admin Count
final Counts.Conversation counts = Counts.conversationAdmins();
List<Admin> admins = counts.getAdmins();
for (Admin admin : admins) {
    out.println(
      admin.getName() + ": " +
      admin.getClosed() + ", " +
      admin.getOpen());
}

The counts for your App can be obtained using GET against the https://api.intercom.io/counts URL with the type and count parameters as follows

CountType ValueCount Value
Conversation Admin Countconversationadmin