Get projected cost across your account
GET {{baseUrl}}/api/v2/usage/projected_cost?view=<string>
Get projected cost across multi-org and single root-org accounts. Projected cost data is only available for the current month and becomes available around the 12th of the month. This endpoint requires the usage_read authorization scope.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
view | string | String to specify whether cost is broken down at a parent-org level or at the sub-org level. Available views are summary and sub-org . Defaults to summary . |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"data":[{"attributes":{"charges":[{"charge_type":"\u003cstring\u003e","cost":"\u003cdouble\u003e","product_name":"\u003cstring\u003e"},{"charge_type":"\u003cstring\u003e","cost":"\u003cdouble\u003e","product_name":"\u003cstring\u003e"}],"date":"\u003cdateTime\u003e","org_name":"\u003cstring\u003e","projected_total_cost":"\u003cdouble\u003e","public_id":"\u003cstring\u003e","region":"\u003cstring\u003e"},"id":"\u003cstring\u003e","type":"projected_cost"},{"attributes":{"charges":[{"charge_type":"\u003cstring\u003e","cost":"\u003cdouble\u003e","product_name":"\u003cstring\u003e"},{"charge_type":"\u003cstring\u003e","cost":"\u003cdouble\u003e","product_name":"\u003cstring\u003e"}],"date":"\u003cdateTime\u003e","org_name":"\u003cstring\u003e","projected_total_cost":"\u003cdouble\u003e","public_id":"\u003cstring\u003e","region":"\u003cstring\u003e"},"id":"\u003cstring\u003e","type":"projected_cost"}]}