For the complete documentation index, see llms.txt. This page is also available as Markdown.

Aggregate records

POST https://data.jetadmin.io/projects/{{project_id}}/prod/{{resource_name}}/models/{{model_id}}/aggregate

Replace the double-brace placeholders with your identifiers. The interactive endpoint below uses standard OpenAPI path parameters.

Record fields, required values, filters, and operation support depend on the selected model. Use the generated API for your resource to check its exact schema.

Aggregate records

post

Applies an aggregation function to filtered record data.

Authorizations
AuthorizationstringRequired

Static API token for the selected resource, passed directly in the Authorization header. Use the token and auth format shown by the resource API.

Path parameters
project_idstringRequired

Project identifier. Replace {{project_id}} with your project identifier.

resource_namestringRequired

Connected resource API name. Replace {{resource_name}} with your resource name.

model_idstringRequired

Collection/model API identifier. Replace {{model_id}} with your model identifier.

Body
funcstring · enumRequiredPossible values:
fieldstringOptional

Required when func is Sum, Min, Max, or Avg.

Responses
200

Aggregated value.

application/json
valueone of · nullableRequired

Aggregated value. The API may serialize numeric values as strings.

numberOptional
or
stringOptional
post/projects/{project_id}/prod/{resource_name}/models/{model_id}/aggregate
POST /projects/{project_id}/prod/{resource_name}/models/{model_id}/aggregate HTTP/1.1
Host: data.jetadmin.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "func": "Count"
}
{
  "value": "28264"
}

Was this helpful?