{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-video/json-schema/api-video-live-stream-schema.json",
  "title": "LiveStream",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-video-live-streams-api-openapi.yml#/components/schemas/live-stream",
  "type": "object",
  "properties": {
    "liveStreamId": {
      "type": "string",
      "description": "The unique identifier for the live stream. Live stream IDs begin with \"li.\""
    },
    "name": {
      "type": "string",
      "description": "The name of your live stream."
    },
    "streamKey": {
      "type": "string",
      "description": "The unique, private stream key that you use to begin streaming."
    },
    "public": {
      "type": "boolean",
      "description": "Whether your video can be viewed by everyone, or requires authentication to see it. A setting of false will require a unique token for each view. Learn more about the Private Video feature [here](https://docs.api.video/delivery/video-privacy-access-management)."
    },
    "assets": {
      "$ref": "#/$defs/live-stream-assets"
    },
    "playerId": {
      "type": "string",
      "description": "The unique identifier for the player."
    },
    "broadcasting": {
      "type": "boolean",
      "description": "Whether or not you are broadcasting the live video you recorded for others to see. True means you are broadcasting to viewers, false means you are not."
    },
    "restreams": {
      "description": "Returns the list of restream destinations.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/restreams-response-object"
      }
    },
    "createdAt": {
      "type": "string",
      "description": "When the player was created, presented in ATOM UTC format.",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "description": "When the player was last updated, presented in ATOM UTC format.",
      "format": "date-time"
    }
  },
  "required": [
    "liveStreamId",
    "restreams"
  ],
  "$defs": {
    "live-stream-assets": {
      "title": "LiveStreamAssets",
      "type": "object",
      "properties": {
        "hls": {
          "type": "string",
          "description": "The http live streaming (HLS) link for your live video stream.",
          "format": "uri"
        },
        "iframe": {
          "type": "string",
          "description": "The embed code for the iframe containing your live video stream."
        },
        "player": {
          "type": "string",
          "description": "A link to the video player that is playing your live stream.",
          "format": "uri"
        },
        "thumbnail": {
          "type": "string",
          "description": "A link to the thumbnail for your video.",
          "format": "uri"
        }
      }
    },
    "restreams-response-object": {
      "title": "Restreams response object",
      "type": "object",
      "properties": {
        "name": {
          "description": "Returns the name of a restream destination.",
          "type": "string"
        },
        "serverUrl": {
          "description": "Returns the server URL of a restream destination.",
          "type": "string"
        },
        "streamKey": {
          "description": "Returns the unique key of the live stream that is set up for restreaming.",
          "type": "string"
        }
      }
    }
  }
}