See this month's time on air
const url = 'https://api.iomza.com/v1/live/usage';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.iomza.com/v1/live/usage \ --header 'Authorization: Bearer <token>'Minutes on air this calendar month (UTC), across all your channels, against what your plan includes. Once they are used up, channels on air are stopped and refused until the next period.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The usage.
An organization’s time on air this calendar month, against what its plan includes.
object
Minutes on air this calendar month (UTC), across the organization’s channels, deleted ones included.
The minutes its plan includes per month; null: no limit. Once used up, channels on air are stopped and refused until the next period.
What an hour on air costs on its plan, in US dollars, from the balance; 0: nothing.
The minutes with a signal its plan includes per month, free of charge. What exceeds them is paid from topped-up balance.
Those used this month.
No included time left and no balance: channels are refused until it is topped up.
When this period started.
When the next one starts.
Example
{ "object": "live_usage"}The API key is missing, invalid or revoked.
object
object
Stable: branch on it.
English, for people; may change.
Each problem, as path: message (validation errors).
Example
{ "error": { "code": "validation_error" }}Valid credentials that may not do this (forbidden), your plan doesn’t include the module the route belongs to (module_not_in_plan), or your organization is suspended (organization_suspended).
object
object
Stable: branch on it.
English, for people; may change.
Each problem, as path: message (validation errors).
Example
{ "error": { "code": "validation_error" }}Too many requests: wait and retry. Answered by the gateway, so the body may differ.
object
object
Stable: branch on it.
English, for people; may change.
Each problem, as path: message (validation errors).
Example
{ "error": { "code": "validation_error" }}Ours: retry, and tell us if it persists.
object
object
Stable: branch on it.
English, for people; may change.
Each problem, as path: message (validation errors).
Example
{ "error": { "code": "validation_error" }}Momentarily unavailable: retry in a few seconds.
object
object
Stable: branch on it.
English, for people; may change.
Each problem, as path: message (validation errors).
Example
{ "error": { "code": "validation_error" }}