getLinkUsageAccountsWithHttpInfo method

Future<Response> getLinkUsageAccountsWithHttpInfo()

Breaks down what the gateway routed through each of your accounts.

Breaks down what the gateway routed through each of your accounts. It answers one row per linked account the GATEWAY actually routed through, plus their total — requests, prompt and completion tokens, and cost. This is the routed ledger, the read twin of the counter the router writes, and it is distinct from both of its neighbours: not the device collector's plan snapshots, and not the org money ledger. The source and scope fields on the response say so on every payload. The same shape answers in the billing namespace, from one shaping function, so the two mounts cannot drift.

Note: This method returns the HTTP Response.

Implementation

Future<Response> getLinkUsageAccountsWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/v1/link/usage/accounts';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}