Skip to content
Myra AI Workspace Administration Manual Updated · 01 Sep 2026

Getting the spend history of a gateway

Note

The Admin API requires no token. The Admin API is typically protected at the network level.

Send the request as GET to the path /admin/v1/gateways/{gateway_id}/spend.

Description

Returns the spend history for a gateway across budget periods, with each row converted to USD.

Request

The following parameters are available:

Parameter In Type Required Description
gateway_id path string yes ID of the gateway.
limit query integer no Maximum number of historical periods to return.

Example

Example of the response body:

[
  {
    "period": "string",
    "amount_usd": 0.0,
    "amount_micro": 0
  }
]

Responses

The endpoint answers the request with the following status codes:

Status code Description
200 Spend history rows.