Get customer usage

Authentication

AuthorizationBearer

Your production key (prefixed mg_), sent as a bearer token.

Path parameters

customer_idstringRequired

Query parameters

startstringOptional
endstringOptional

Response

Successful Response
total_spenddouble
byok_spenddouble

Spend billed against a bring-your-own key (customer or org).

customer_byok_spenddouble
BYOK spend on the customer's own key.
org_byok_spenddouble
BYOK spend on your organization's key.
managed_spenddouble

Spend billed against Merge-managed credentials.

request_countinteger
period_startdatetime
period_enddatetime
by_modellist of objects
by_providerlist of objects
by_routing_policylist of objects