Get the organization
const url = 'https://api.iomza.com/v1/organization';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/organization \ --header 'Authorization: Bearer <token>'The organization the key belongs to, its plan’s limits and this month’s usage.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The organization.
An organization with its plan and this month’s usage.
object
A plan’s limits.
object
Stable name (“free”, “pro”…).
The name shown to people.
The modules it includes (transcoding…).
How many jobs run at once; the rest wait in queued.
Minutes of video processed a month, counted on the source (or clip); null for unlimited.
The largest source file, in bytes.
The modules it has: its plan’s, with its own exceptions applied.
The secret webhooks are signed with (whsec_…); only shown to owners and admins in the app, null otherwise.
object
Minutes of source processed this calendar month (UTC).
The plan’s monthly minutes; null for unlimited.
Seconds of video per second of processing over this month’s finished jobs (30 = 30× real time); null before the first.
Example
{ "object": "organization", "plan": { "modules": [ "transcoding" ] }, "modules": [ "transcoding" ]}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" }}It doesn’t exist in your organization.
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" }}