Cards: Supported Filters, Sorting, and Search

This article covers field support for filtering, sorting, and searching in the Cards API.

Overview

The Cards API includes three endpoints for querying and searching cards:

Note: The filterable, sortable, and searchable fields differ between the Query and Search endpoints. Search endpoints offer more comprehensive filtering and sorting capabilities.

Query Cards

The table below shows field support for filters and sorting for the card object:

FieldSupported FiltersSortable
id$eq, $ne, $in, $nin
pipelineId$eq, $ne, $in, $nin
stageId$eq, $ne, $in, $nin
createdDate$eq, $ne, $gt, $lt, $gte, $lteSortable
updatedDate$eq, $ne, $gt, $lt, $gte, $lteSortable

Search Cards

The table below shows field support for filters, sorting, and free-text searching for the card object:

FieldSupported FiltersSortableSearchable
id$eq, $ne, $in, $ninSortable
pipelineId$eq, $ne, $in, $ninSortable
stageId$eq, $ne, $in, $ninSortable
createdDate$eq, $ne, $gt, $lt, $gte, $lteSortable
updatedDate$eq, $ne, $gt, $lt, $gte, $lteSortable
stageUpdatedDate$eq, $ne, $gt, $lt, $gte, $lteSortable
name$eq, $ne, $in, $nin, $startsWithSortableSearchable
description$eq, $ne, $in, $nin, $startsWith, $existsSearchable
priority$eq, $ne, $in, $ninSortable
outcome$eq, $ne, $in, $ninSortable
assigneeId$eq, $ne, $in, $nin, $existsSortable
dueDate$eq, $gt, $gte, $lt, $lte, $existsSortable
staleDate$eq, $gt, $gte, $lt, $lte, $existsSortable
value.value$eq, $gt, $gte, $lt, $lte, $existsSortable
mainContact.contactId$eq, $ne, $in, $nin, $existsSortable
mainContact.fullName$eq, $ne, $in, $nin, $startsWithSortableSearchable
mainContact.email$eq, $ne, $in, $nin, $startsWithSortableSearchable
mainContact.phone$eq, $ne, $in, $nin, $startsWithSortableSearchable
mainContact.displayName$eq, $ne, $in, $nin, $startsWithSortable
additionalContacts.contactId$hasSome, $hasAll
additionalContacts.fullName$hasSome, $hasAllSearchable
additionalContacts.email$hasSome, $hasAllSearchable
additionalContacts.phone$hasSome, $hasAllSearchable
additionalContacts$empty, $matchItems
tags.privateTags.tagIds$hasSome, $hasAll, $empty
linkedEntities$matchItems
linkedEntities.entityId$eq, $ne, $in, $nin, $exists
linkedEntities.referencedEntity$eq, $ne, $in, $nin, $exists

Supported Aggregation Types

TypeDescription
SCALARCalculates single numerical values such as card totals, min, or max values.
VALUEGroups by field values and counts occurrences, such as cards by priority or cards by stage.
RANGEGroups values by defined ranges.
DATE_HISTOGRAMGroups by time intervals, such as cards created per week or month.

Related content: API Query Language, Query Cards, Search Cards, Search Cards By Stage

Did this help?