Skip to main content
POST
Aggregate records
The Clearskies API is in beta and available on request. To turn it on for your workspace, email support@clearskies.cc.

Authorizations

Authorization
string
header
required

An API key created under Context Graph → API keys in the app sidebar, sent as Authorization: Bearer csk_…. The key is checked on every request, so a revoked key fails on its next call.

Path Parameters

object
enum<string>
required

The object type. An unknown name is a 400, and the message lists the valid ones.

Available options:
account,
call,
contact,
deal

Body

application/json

Every member is optional, and a member sent as null counts as omitted. An empty body counts every record.

filters
object[] | null
Maximum array length: 100
groupBy
string | null

A field whose groupable is true. A field with too many distinct values among the matching records is a 400; add filters to narrow them.

metrics
object[] | null

Each function of each field may appear once.

Maximum array length: 5

Response

The aggregation.

ok
boolean
required
data
object
required
requestId
string
required

Identifies this call. Quote it when you contact support.

traceId
string

Present on a traced request.