SearchRequest
Request body for searching contacts or companies with filters, sorting, and pagination. Follows HubSpot CRM API v3 structure for familiar integration patterns.
- filterType: array object[] · FilterGroup[] …5
Groups Groups of filters combined with OR logic. Within each group, filters are combined with AND logic. Maximum 5 filter groups allowed (following HubSpot limits).
A group of filters that are combined with AND logic. Multiple filter groups are combined with OR logic. Follows HubSpot-compatible structure for familiar CRM integration patterns.
- filtersType: array object[] · Filter[] 1…6required
List of filters that are combined with AND logic within this group. At least one filter is required per group. Maximum 6 filters per group (following HubSpot limits).
A single filter condition for search operations. Follows HubSpot-compatible structure for familiar CRM integration patterns.
- limitType: integer | string
Pattern: ^-?(?:0|[1-9]\d*)$Format: int32min:1max:100Maximum number of results to return per page. Range: 1-100. Defaults to 100.
- offsetType: integer | string
Pattern: ^-?(?:0|[1-9]\d*)$Format: int32min:0max:10000Number of results to skip (for pagination). Maximum offset: 10,000 (following HubSpot search limit).
- queryType: null | string
Optional free-text query using field:value syntax (e.g., "email:@acme.com tag:vip"). Supported fields depend on entity type. Translated into filterGroups server-side and combined with any explicitly provided filterGroups using AND logic (results must match both the query and the explicit filters).
- sortsType: array object[] · SortField[] …3
Fields to sort results by, applied in order. Maximum 3 sort fields allowed to prevent query complexity.
Specifies a field to sort search results by. Multiple sort fields are applied in order (first field is primary sort, second is tiebreaker, etc.).
- fieldType: stringrequired
The field name to sort by (e.g., "lastName", "createdUtc", "email"). Must be a valid sortable field for the entity type.
- directionType: string · SortDirectionenum
The sort direction (ascending or descending). Defaults to ascending if not specified.
values- Asc
- Desc