Deskhero Developer Hub
Back to deskhero.com
Lists

List_ only aggregates

Returns only the distinct values (with counts) of the requested field_keys across the lists, take is forced to 0 so the data array comes back empty; entries_count is only computed when it is among the requested keys. list_types is applied exactly as on the list endpoint, so SYS covers the tags, ticket status and ticket priority lists only.

GET /api/{tenant:minlength(2)}/v{version:apiVersion}/lists/aggregate
Authorisation
Minimum role: USER

Request arguments

Name Type Source
field_keysString[]Query
filterDTO_standard_filterQuery
list_typesENUM list_types_request
Request body example

Response

Status
200 (OK)
Type
DTO_list[]
Wrapper
DTO_response_wrap_get_many
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_standard_filter
NameTypeReadOnlyDescription
sort_by_keyStringSort by key
response_field_keysString[]Only return the fields specified
filtersString[]Each string needs to be structured: filters=field_key:operator:value1|value2|value3 Only used to store filters for passing along as querystring
include_aggregationsBooleanInclude aggregations
include_importedBooleanInclude imported
searchStringSearch
sort_orderENUM sort_orderSort order
takeInt32Take
pageInt32Page
DTO_list
NameTypeReadOnlyDescription
list_fieldsDTO_list_field[]List fields
group_accessDTO_group_access[]Group access
sys_tagsDTO_reference[]Label can be used on POST/PUT to create new tags
created_byDTO_reference_userReadOnlyCreated by
last_updated_byDTO_reference_userReadOnlyLast updated by
idInt32ReadOnlyLeave empty on input
typeENUM list_typeReadOnlyType
highest_group_permissionENUM group_permissionReadOnlyCurrent users highest group permission
nameStringName
unique_keyStringUnique key
descriptionStringDescription
entries_countInt32Entries count
createdDateTimeReadOnlyCreated
last_updatedDateTimeReadOnlyLast updated
DTO_list_field
NameTypeReadOnlyDescription
idInt32Id
is_requiredBooleanIs required
is_unique_identifierBooleanIs unique identifier
DTO_group_access
NameTypeReadOnlyDescription
permissionENUM group_permissionPermission
idInt32Id
labelObjectReadOnlyLabel
DTO_reference
NameTypeReadOnlyDescription
idInt32The id of the reference
labelObjectReadOnlyName/Label from referenced object.
DTO_reference_user
NameTypeReadOnlyDescription
profile_picStringReadOnlyProfile pic
emailStringReadOnlyEmail
idInt32Id
labelObjectReadOnlyLabel
ENUM group_permission
ValueNameDescription
0UNKNOWNUNKNOWN
1READRead only
2EDITEdit
3FULLFull
ENUM sort_order
ValueNameDescription
0ASCASC
1DESCDESC
ENUM list_type
ValueNameDescription
0UNKNOWNUNKNOWN
1CUSTOMCUSTOM
2SYS_TAGSSYS_TAGS
3SYS_TICKET_STATUSESSYS_TICKET_STATUSES
4SYS_TICKET_PRIORITIESSYS_TICKET_PRIORITIES
5SYS_TICKET_TYPESSYS_TICKET_TYPES
6SYS_TICKET_FORM_TYPESSYS_TICKET_FORM_TYPES
7SYS_KB_TYPESYS_KB_TYPE
9SYS_FILESSYS_FILES
10SYS_MULTI_OPTIONSSYS_MULTI_OPTIONS

Generated Aug 4, 2026 18:37