Delete a live session's files
const url = 'https://api.iomza.com/v1/live/channels/example/sessions/example';const options = {method: 'DELETE', 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 DELETE \ --url https://api.iomza.com/v1/live/channels/example/sessions/example \ --header 'Authorization: Bearer <token>'Deletes the session’s video in the background, within minutes (it is deleted after 24 hours anyway); if it is the channel’s latest session, the playback URLs stop playing it. The session stays in the history, with deleted_at. A session on air can’t be deleted: stop the channel first.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The session.
One session of a channel: from an encoder connecting to it leaving.
object
null while live.
Its length, in seconds; null while live.
Whether the signal has audio; null until known, in the first minute. Sessions from before it was reported answer null too.
When the stream will be stopped because the organization’s balance is used up; null while it has one.
Whether it was kept whole.
When its files were deleted (DELETE …/sessions/{session_id}); null while kept. Files are kept 24 hours anyway.
Example
{ "object": "live_session", "end_reason": "disconnect", "ingest_protocol": "rtmp"}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" }}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" }}Its state doesn’t allow it (a finished job, an Idempotency-Key reused with another body…).
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" }}