Skip to main content
GET
/
v1
/
usage
/
total-cost
Get total cost for a given period
curl --request GET \
  --url https://api.example.com/v1/usage/total-cost \
  --header 'x-api-key: <api-key>'
{
  "start_date": "2023-12-25",
  "end_date": "2023-12-25",
  "total_cost": 123
}

Authorizations

x-api-key
string
header
required

Query Parameters

start_date
string<date>
required
end_date
string<date>
required

Response

Total cost retrieved successfully

start_date
string<date>
end_date
string<date>
total_cost
number<float>