Apps
Get app metered usage
Changed onReturns billing usage records from ClickHouse. Defaults to 7-day window if dates not specified.
get/api/v1/apps/{app_id}/usage
Request
- Base URLhttps://cloud-api.phala.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
app_idstring required
Hex app identifier
Query parameters
start_datestring date-time nullable
Start date (ISO 8601)
Example:2024-01-01T00:00:00Z
end_datestring date-time nullable
End date (ISO 8601)
Example:2024-01-01T00:00:00Z
limitinteger
Max records to return
offsetinteger
Records to skip
Response
Usage records with cost breakdown
Example response
{
"usage": [
{
"project_id": "prj_0123abcd",
"team_id": "wks_0123abcd"
}
]
}Changes
- breaking
response property
usage/items/project_idlist-of-types was widened by adding typesstringto media typeapplication/jsonof response200 - breaking
response property
usage/items/team_idlist-of-types was widened by adding typesstringto media typeapplication/jsonof response200
- breaking