Skip to main content
GET
/
api
/
cloud
/
agents
/
{id}
/
usage
cURL
curl --request GET \
  --url https://api.bedrock.orinlabs.org/api/cloud/agents/{id}/usage/ \
  --header 'Authorization: <api-key>'
{
  "agent_id": "<string>",
  "agent_name": "<string>",
  "start_date": "2023-11-07T05:31:56Z",
  "end_date": "2023-11-07T05:31:56Z",
  "input_tokens": 123,
  "output_tokens": 123,
  "cached_tokens": 123,
  "total_cost_usd": 123,
  "llm_calls": 123,
  "model_breakdown": {}
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

id
string<uuid>
required

A UUID string identifying this Agent.

Response

200 - application/json

Serializer for aggregated usage summary.

agent_id
string
required
agent_name
string
required
start_date
string<date-time> | null
required
end_date
string<date-time> | null
required
input_tokens
integer
required
output_tokens
integer
required
cached_tokens
integer
required
total_cost_usd
number<double>
required
llm_calls
integer
required
model_breakdown
object
required