List Tags for an App

Example List Tag Request

$ curl https://api.intercom.io/tags \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept: application/json'
{
  "type": "tag.list",
  "tags": [
    {
      "type": "tag",
      "name": "Beta User",
      "id": 1
    },
    {
      "type": "tag",
      "name": "Amazing User",
      "id": 2
    },
    {
      "type": "tag",
      "name": "Epic User",
      "id": 3
    }
  ]
}
intercom.tags.all.each { ... }
<?php
$tags= $intercom->tags->getTags([]);
foreach ($tags->tags as $tag) {
    print "id:".$tag->id." name:".$tag->name."\n";
}?>
TagCollection tags = Tag.list();
while (tags.hasNext()) {
    out.println(tags.next().getId());
}

You can fetch the tags for an App by sending a GET request to https://api.intercom.io/tags.

Parameters

None.

Returns

A list of tag objects for the App.

Tag List

AttributeTypeDescription
typestringvalue is 'tag.list'
tagsarrayA list of tag objects