Skip to main content
POST
Preview a HubSpot aggregation

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.

Body

application/json
field
string
required

Property to aggregate (e.g., 'amount')

object
string
required

HubSpot object name (e.g., 'deals')

Required string length: 1 - 100
Pattern: ^[A-Za-z0-9_]+$
account_filter_groups
HubSpotFilterGroup · object[] | null

HubSpot filter groups for scoping sample companies (from account filter config)

aggregation
enum<string>
default:sum

Aggregation method

Available options:
sum,
max,
latest
filters
HubSpotFilter · object[] | null

Additional HubSpot filters (e.g., [{propertyName: 'dealstage', operator: 'NEQ', value: 'closedlost'}])

limit
integer
default:5

Number of sample companies

Required range: 1 <= x <= 10
order_by
string | null

Property to sort by for 'latest' aggregation

Response

200 - application/json

Successful Response

The value the aggregation would write on a few sample companies.

is_valid
boolean
required
error_message
string | null
samples
AggregationSample · object[]