searchTags
queryFinds tags that match your filters. This is the main way to look up people and accounts. You can search by name, filter by type, or look someone up by email - and you can combine filters freely.
When you pass search, results come back ranked by relevance, so the best match is first. Without search, use one of the orderBy* arguments to control the order.
Arguments (SearchTagsInput)
searchStringFree text to match against names and emails. Results are ranked by relevance.
tagTypeStringLimit to one kind of tag: "person" or "topic". Use tagTypes to pass several.
tagSubTypeStringA finer type. Accounts are tagType: "topic" with tagSubType: "organization".
_ids[String]Fetch a specific set of tags by ID.
emailStringFind the person tag for one email address.
emailDomains[String]Find tags whose email domain matches, e.g. ["acmerobotics.com"].
folderIds[String]Only tags inside these folders.
archivedBooleanPass false to hide archived tags. Most apps should.
favorite, hasTasksBooleanOnly favorites, or only tags that have open tasks.
orderByAlias, orderByFriendlyName, orderByTaskCount, orderByDateUpdated, orderByDateCreatedStringSort direction for that field: "asc" or "desc". Use one at a time.
size, pageIntPage length and 0-based page number.
Returns
A list of Tag objects. The list is empty when nothing matches - that is not an error.
query Accounts($input: SearchTagsInput) {
searchTags(input: $input) {
_id
alias
tagType
tagSubType
emailDomain
url
taskCount
}
}{
"input": {
"search": "acme",
"tagType": "topic",
"tagSubType": "organization",
"archived": false,
"size": 10
}
}{
"data": {
"searchTags": [
{
"_id": "b4f6a2c8-1d2e-4f5a-9b8c-7d6e5f4a3b2c",
"alias": "Acme Robotics",
"tagType": "topic",
"tagSubType": "organization",
"emailDomain": "acmerobotics.com",
"url": "https://acmerobotics.com",
"taskCount": 4
}
]
}
}