Deskhero Developer Hub
Back to deskhero.com
Groups

Group_ only aggregates

Returns the distinct values and their counts for the group properties named in field_keys, which is what a filter input needs, and never returns group rows themselves (take is forced to 0). Counts respect the filter passed along, while unfiltered_count on each value shows what the count would have been without it.

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

Request arguments

Name Type Source
field_keysString[]Query
filterDTO_standard_filterQuery
Request body example

Response

Status
200 (OK)
Type
DTO_group[]
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_group
NameTypeReadOnlyDescription
group_usersDTO_reference_user[]Group users
group_adminsDTO_reference_user[]Group admins
mailboxesDTO_reference[]ReadOnlyMailboxes
created_byDTO_reference_userReadOnlyCreated by
last_updated_byDTO_reference_userReadOnlyLast updated by
idInt32ReadOnlyLeave empty on input
nameStringName
unique_keyStringMain email key (unique_key@tenant.deskhero.com) Used as forward address, and default group email
forward_to_emailStringReadOnlyForward to email
typeENUM group_typeReadOnlyType
createdDateTimeReadOnlyCreated
last_updatedDateTimeReadOnlyLast updated
DTO_reference_user
NameTypeReadOnlyDescription
profile_picStringReadOnlyProfile pic
emailStringReadOnlyEmail
idInt32Id
labelObjectReadOnlyLabel
DTO_reference
NameTypeReadOnlyDescription
idInt32The id of the reference
labelObjectReadOnlyName/Label from referenced object.
ENUM sort_order
ValueNameDescription
0ASCASC
1DESCDESC
ENUM group_type
ValueNameDescription
0UNKNOWNUNKNOWN
1CUSTOMCustom
2SYSTEM_EVERYONESys everyone

Generated Aug 4, 2026 18:37