Skip to main content
POST
/
crm
/
aggregate
Aggregate
curl --request POST \
  --url https://www.dench.com/api/v1/crm/aggregate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "objectName": "string",
  "fieldName": "string"
}
'
[
  {
    "key": "<string>",
    "count": 123,
    "sumNumber": 123
  }
]

Authorizations

Authorization
string
header
required

Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.

Body

application/json
objectName
string
required
fieldName
string
required

Field to bucket by.

Response

Successful response

key
string
required
count
number
required
sumNumber
number