Skip to main content
POST
Learn more about Box SDK versioning strategy.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

box-version
enum<string>
required

Version header.

Available options:
2026.0

Body

application/json

Request body describing the filtering, grouping, and metrics for an insights computation.

query
object
required

The filtering and grouping definition. Filters are applied first, followed by grouping, before metrics are computed.

metrics
object
required

A map of user-defined metric aliases to their definitions. A maximum of 10 metrics may be defined. Each alias must be a unique, non-empty string of up to 256 characters, containing only letters, digits, _, -, or ., and must not start with a digit, _, -, or .. May be empty to request only a total count.

Example:

Response

Returns the computed insight entries.

The computed results of an insights request, as a list of insight entries.

insights
Query insight entry · object[]
required

The list of computed insight entries. Each entry corresponds to a group, the overall dataset, or the aggregate of groups outside the top results.

Last modified on July 24, 2026