Skip to main content
POST
Preview a Salesforce 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

Field to aggregate (e.g., Amount)

object
string
required

Salesforce object API name (e.g., Opportunity)

account_field
string
default:AccountId

Field linking to Account

account_filter
string | null

SOQL WHERE clause for scoping sample accounts (from account filter config)

aggregation
enum<string>
default:sum

Aggregation method

Available options:
sum,
max,
latest,
first_future
filter
string | null

SOQL WHERE clause filter

limit
integer
default:5

Number of sample accounts

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

ORDER BY field for 'latest' aggregation

Response

200 - application/json

Successful Response

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

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