cURL
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 }
Total cost retrieved successfully