Run in Apidog
Get usages info of a project# 📣 this endpoint provides all the usages information . In this POST request the Project ID have to be set in the url parameter ✳ List of URL parameters Project_ID = 36 character in length
{
"start_time" : "2024-02-25T17:59:59.999Z" ,
"end_time" : "2024-02-25T17:59:59.999Z"
}
🔰 Each payload in details of this POST Request, start_time : A required string field for the start time of the usage
end_time : A required string field for the end time of the usage
📢 Info message : Here URL is contructed likePOST /projects/:projId/usages
Request Provide your bearer token in the Authorization
header when making requests to protected resources. Example: Authorization: Bearer ********************
Body Params application/json
{
"start_time" : "2024-02-25T17:59:59.999Z" ,
"end_time" : "2024-02-25T17:59:59.999Z"
}
Request Code Samples
curl --location --request POST 'http://localhost:8080/v1/projects/f32a0116-fe11-454c-8e6a-5ff4101882e5/usages' \
--header 'Content-Type: application/json' \
--data-raw '{
"start_time": "2024-02-25T17:59:59.999Z",
"end_time": "2024-02-25T17:59:59.999Z"
}'
Responses application/json Generate Code
{ "message" : "project usage Fetched Successfully" , "result" : { "storage" : "0.000GB" , "storage_in_bytes" : 0 , "video_transcoding_output_minute" : "0.00" , "live_transcoding_output_minute" : "0.00" , "usage_list" : null } , "success" : true }
Modified at 2024-09-18 07:36:12