Get the whole deployment's API request totals per operation and per status class.
GET
/api/api-request-aggregation/deployment-traffic/by-operation
deprecated
Requires: ApiRequestAggregation.DeploymentTraffic, merchant scope.
Returns, for the whole deployment, how many API requests each operation received in the window and how many responses fell in each status class. An operation is the HTTP method and route template, for example `GET /api/app/transaction/{id}`. Requests that matched no route, and responses with a status outside 100 to 599, are counted under `__unknown`. Only requests made with an API key are counted: a merchant's key, a reseller's own key, or an administrator's key. `merchantKeyRequestCount`, `resellerKeyRequestCount` and `adminKeyRequestCount` split the total by kind of key. Requests made without an API key (a user signed in to the back office, a caller using an OAuth bearer token, an anonymous request) are never counted, so an operation missing from the response was not observed through an API key, which is not the same as not called. Reseller-key and administrator-key requests are counted from the release that added those two fields, with no backfill, so a window that starts earlier undercounts them. The counts are approximate traffic metrics, read at day grain. The window is widened to whole UTC days, and a window longer than 100 days keeps its most recent 100. The response states the window it read, and `isTruncated` is `true` when it read less than you asked for. Only an administrator can call this operation. A caller below the administrator level, or a caller using an API key, receives 403.
Signed in, you can send this request to your own sandbox merchant from the console and read the answer. Sign in to try it.
Example request
Every block below sends the same request. Replace {{BASE_URL}} with the address of the API you are calling and {{API_KEY}} with your own key.
The request body is a . See the Request body section below for its fields.
Parameters
Request body
application/json
, required
| Field | Type | Description |
|---|
This request body has no documented fields.
Responses
Errors
A failed request returns the platform error envelope. The
error reference lists every value
error.code can carry and shows the four response shapes.
Authentication
ApiKeywith scopes