Get Analytics Reports

This endpoint is used to retrive filtered analytics reports based on report type, date range, and optional grouping/filtering criteria.

  • Note: This API requires an active Analytics Subscription Plan.
SecuritybearerAuth
Request
query Parameters
reportType
required
string

Type of report to retrieve.

Enum: "sending" "shipment"
startDate
required
string

Start date in YYYYMMDD format.

endDate
required
string

End date in YYYYMMDD format.

pageNumber
integer

Page number for paginated results.

pageSize
integer

Number of records per page.

Request Body schema: application/json
limit
integer

Maximum number of records to return per page.

offset
required
integer

Offset value used for pagination.

kpi
required
string

Specifies the report detail level.

Enum: "SUMMARY" "DETAILS" "OVERALL_SPEND_SUMMARYDETAILS"
required
Array of objects

Global filters applied to the report query. Each filter must include a member and operator, and either a single value (for scalar filtering) or a list of values (for multi-value filtering),depending on the operator used.

Array of objects

Grouping defines how to group the report data based on specific fields.
It enables data segmentation and aggregation by categories such as cost account, location, or carrier.
Each object specifies the grouping field and the filter condition applied to it.

required
Array of objects

Specifies how the data should be grouped and sorted in the final report output.
Each object in the array defines a set of columns to group the results by
and the columns to use for ordering the grouped data.

measures
required
Array of strings

List of metrics/columns which will be showcase in the report.

Responses
200

The analytics report based on filters has been generated successfully

400

Invalid request.

401

The request could not be authorized.

500

The request could not be completed due to an internal error.

post/api/v1/reports
Request samples
application/json
{
  • "limit": 10,
  • "offset": 100,
  • "kpi": "DETAILS",
  • "globalFilters": [
    ],
  • "grouping": [
    ],
  • "criteria": [
    ],
  • "measures": [
    ]
}
Response samples
application/json
[
  • {
    }
]