List usage events
curl --request GET \
--url https://api.hooper.gg/v1/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hooper.gg/v1/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hooper.gg/v1/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"has_more": true,
"total_count": 123,
"data": [
{
"id": "ue_91",
"object": "usage_event",
"created": 123,
"session": "sess_18234",
"group": "<string>",
"api_key": "key_11",
"sku": "video_processing",
"status": "held",
"run_version": 123,
"held_seconds": 123,
"quantity_seconds": 123,
"rate_cents_per_hour": 123,
"cost_cents": 123,
"settled_at": 123,
"voided_at": 123
}
],
"url": "/v1/sessions/sess_18234/highlights"
}Billing
List usage events
One usage event per billable job: held at submit, then settled (credits drawn for the measured length) or voided (nothing charged).
GET
/
v1
/
usage
List usage events
curl --request GET \
--url https://api.hooper.gg/v1/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hooper.gg/v1/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hooper.gg/v1/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"has_more": true,
"total_count": 123,
"data": [
{
"id": "ue_91",
"object": "usage_event",
"created": 123,
"session": "sess_18234",
"group": "<string>",
"api_key": "key_11",
"sku": "video_processing",
"status": "held",
"run_version": 123,
"held_seconds": 123,
"quantity_seconds": 123,
"rate_cents_per_hour": 123,
"cost_cents": 123,
"settled_at": 123,
"voided_at": 123
}
],
"url": "/v1/sessions/sess_18234/highlights"
}Authorizations
API key issued by Hooper for your organization. Keys are environment-tagged: hk_prod_ keys work against production, hk_stg_ keys against staging.
Query Parameters
Required range:
1 <= x <= 100Cursor: the id of the last item on the previous page.
Available options:
held, settled, voided Example:
"key_11"
Unix seconds
Unix seconds