---
updatedAt: 2026-07-15T14:56:44.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/msl5-harmonic/llms.txt
---

# Get stream details

Get detailed information about a specific stream, including origin hostname details for both primary and backup locations.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Media Services Live API",
    "description": "",
    "license": {
      "name": ""
    },
    "version": "1.10.7"
  },
  "servers": [
    {
      "url": "https://{hostname}"
    }
  ],
  "paths": {
    "/api/v1/streams/{id}": {
      "get": {
        "tags": [
          "Stream"
        ],
        "summary": "Get stream details",
        "description": "Get detailed information about a specific stream, including origin hostname details for both primary and backup locations.",
        "operationId": "get_stream",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Stream ID.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Stream details retrieved successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StreamResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalid_token": {
                    "summary": "Invalid or expired token",
                    "value": {
                      "error": "Error decoding token"
                    }
                  },
                  "no_token": {
                    "summary": "Missing authentication token",
                    "value": {
                      "error": "No token found in request"
                    }
                  },
                  "token_verification_failed": {
                    "summary": "Token verification failed",
                    "value": {
                      "error": "No key found for kid"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "insufficient_permissions": {
                    "summary": "Insufficient permissions",
                    "value": {
                      "error": "Forbidden"
                    }
                  },
                  "no_stream_access": {
                    "summary": "No access to stream",
                    "value": {
                      "error": "No access on stream 'stream_id' because not authorized on Group ID 'group_id' of Contract 'contract_id'"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Stream not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "Not found": {
                    "summary": "Stream not found",
                    "value": {
                      "error": "Stream not found"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AkamaiG2oAuth": {
        "type": "object",
        "title": "Akamai G2O Authentication Configuration",
        "properties": {
          "enabled": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Enables or disables G2O authentication.",
            "example": true
          },
          "g2o_version": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Version number of the G2O authentication protocol.",
            "example": 5
          },
          "secret_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "Secret key used for signing G2O requests.",
            "example": "my-secret-key-12345"
          },
          "time_delta": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Time difference allowance in seconds between client and server.",
            "example": 3600
          }
        },
        "example": {
          "enabled": true,
          "g2o_version": 5,
          "secret_key": "my-secret-key-12345",
          "time_delta": 3600
        }
      },
      "Archiving": {
        "type": "object",
        "title": "Archiving Configuration",
        "properties": {
          "automatic_purge": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AutomaticPurge"
              }
            ]
          },
          "no_archive": {
            "type": "boolean",
            "description": "Automatic purge configuration.",
            "example": {
              "automatic_purge": {
                "retention_days": 30
              },
              "no_archive": false
            }
          }
        },
        "example": {
          "automatic_purge": {
            "retention_days": 30
          },
          "no_archive": false
        }
      },
      "AutomaticPurge": {
        "type": "object",
        "title": "Automatic Purge Configuration",
        "properties": {
          "retention_days": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Retention days for the archived content.",
            "example": 30
          }
        },
        "example": {
          "retention_days": 30
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "Error message."
          }
        }
      },
      "HlsToLlHlsConfig": {
        "type": "object",
        "title": "HLS to LLHLS Configuration",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "segment_template": {
            "type": "string"
          }
        },
        "example": {
          "enabled": true,
          "segment_template": "(?<=_Segment-)\\d+"
        }
      },
      "IngestAuthMode": {
        "type": "string",
        "enum": [
          "NONE",
          "DIGEST",
          "HEADER"
        ]
      },
      "IpNet": {
        "type": "string",
        "example": "192.168.1.0/24"
      },
      "Playback": {
        "type": "object",
        "title": "Playback Configuration",
        "properties": {
          "akamai_g2o_auth": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AkamaiG2oAuth",
                "description": "Akamai G2O authentication configuration."
              }
            ]
          }
        },
        "example": {
          "akamai_g2o_auth": {
            "enabled": true,
            "g2o_version": 5,
            "secret_key": "my-secret-key-12345",
            "time_delta": 3600
          }
        }
      },
      "StreamFormat": {
        "type": "string",
        "enum": [
          "CMAF",
          "HLS",
          "DASH"
        ]
      },
      "StreamIngestHeader": {
        "type": "object",
        "required": [
          "values"
        ],
        "properties": {
          "header": {
            "type": [
              "string",
              "null"
            ]
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "StreamResponse": {
        "type": "object",
        "required": [
          "stream_id",
          "account_id",
          "description",
          "format",
          "status",
          "created_by",
          "created_at",
          "updated_at",
          "origin_id",
          "encoder_zone",
          "ingest_location",
          "host_name",
          "primary_publishing_url",
          "backup_publishing_url",
          "playlist_duration_in_min",
          "allowed_ips",
          "contract_id",
          "cptag",
          "group_id",
          "origin_host_name"
        ],
        "properties": {
          "account_id": {
            "type": "string",
            "description": "Account identifier associated with the stream.",
            "example": ""
          },
          "allowed_ips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IpNet"
            },
            "description": "List of allowed IP addresses.",
            "example": [
              "192.168.1.10",
              "10.0.0.0/8"
            ]
          },
          "archiving": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Archiving",
                "description": "Archiving configuration."
              }
            ]
          },
          "backup_encoder_zone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Deprecated: Use `backup_ingest_location` instead.",
            "deprecated": true,
            "example": "US_ORD"
          },
          "backup_host_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Backup hostname if configured.",
            "example": "b-ep123e4567-e89b-12d3-a456-426614174000.i.mslentrypoint.video"
          },
          "backup_ingest_location": {
            "type": [
              "string",
              "null"
            ],
            "description": "Backup ingest location if configured, previously known as backup encoder zone",
            "example": "US_ORD"
          },
          "backup_origin_host_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Origin hostname for the backup ingest location.",
            "example": "us-ord-backupexample.msl.video"
          },
          "backup_publishing_url": {
            "type": "string",
            "description": "Backup publishing URL.",
            "example": "b-ep123e4567-e89b-12d3-a456-426614174000.i.mslentrypoint.video/123e4567-e89b-12d3-a456-426614174000/(event_name)"
          },
          "contract_id": {
            "type": "string",
            "example": "A-123456"
          },
          "cptag": {
            "type": "string",
            "description": "CP Tag for the stream.",
            "example": "0"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the stream was created.",
            "example": "2024-01-01T00:00:00Z"
          },
          "created_by": {
            "type": "string",
            "description": "Identity of who created the stream.",
            "example": ""
          },
          "customized_playlist_extensions": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "Custom playlist extensions used by live compatibility mode.",
            "example": [
              ".m3u8",
              ".mpd",
              ".json"
            ]
          },
          "description": {
            "type": "string",
            "description": "Description of the stream.",
            "example": "Example stream description"
          },
          "encoder_zone": {
            "type": "string",
            "description": "Deprecated: Use `ingest_location` instead.",
            "deprecated": true,
            "example": "US_SEA"
          },
          "format": {
            "$ref": "#/components/schemas/StreamFormat",
            "description": "Stream format (e.g. HLS)."
          },
          "group_id": {
            "type": "string",
            "example": ""
          },
          "hls_to_llhls": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HlsToLlHlsConfig",
                "description": "Low-Latency HLS configuration for the stream."
              }
            ]
          },
          "host_name": {
            "type": "string",
            "description": "Hostname of the primary encoder.",
            "example": "p-ep123e4567-e89b-12d3-a456-426614174000.i.mslentrypoint.video"
          },
          "ingest_authentication": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether ingest authentication is enabled.",
            "example": false
          },
          "ingest_authentication_mode": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/IngestAuthMode",
                "description": "Ingest authentication mode."
              }
            ]
          },
          "ingest_header": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/StreamIngestHeader",
                "description": "Ingest header."
              }
            ]
          },
          "ingest_location": {
            "type": "string",
            "description": "Primary ingest location, previously known as encoder zone",
            "example": "US_SEA"
          },
          "live_compatibility_mode": {
            "type": "boolean",
            "description": "Whether the stream is running in live compatibility mode.",
            "example": true
          },
          "origin_host_name": {
            "type": "string",
            "description": "Origin hostname for the primary ingest location.",
            "example": "us-sea-primaryexample.msl.video"
          },
          "origin_id": {
            "type": "string",
            "description": "ID of the origin server.",
            "example": "123e4567-e89b-12d3-a456-426614174001"
          },
          "playback": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Playback",
                "description": "Playback configuration."
              }
            ]
          },
          "playlist_duration_in_min": {
            "type": "integer",
            "format": "int32",
            "description": "Playlist duration in minutes.",
            "example": 60
          },
          "primary_publishing_url": {
            "type": "string",
            "description": "Full URL for publishing to this stream.",
            "example": "p-ep123e4567-e89b-12d3-a456-426614174000.i.mslentrypoint.video/123e4567-e89b-12d3-a456-426614174000/(event_name)"
          },
          "status": {
            "$ref": "#/components/schemas/StreamStatus",
            "description": "Current status of the stream."
          },
          "stream_id": {
            "type": "string",
            "description": "Unique identifier for the stream.",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the stream was last updated.",
            "example": "2024-01-01T00:00:00Z"
          }
        },
        "examples": [
          {
            "account_id": "",
            "allowed_ips": [],
            "archiving": null,
            "backup_host_name": "b-ep123e4567-e89b-12d3-a456-426614174000.i.mslentrypoint.video",
            "backup_ingest_location": null,
            "backup_origin_host_name": null,
            "backup_publishing_url": "b-ep123e4567-e89b-12d3-a456-426614174000.i.mslentrypoint.video/123e4567-e89b-12d3-a456-426614174000/(event_name)",
            "contract_id": "A-123456",
            "cptag": "0",
            "created_at": "2024-01-01T00:00:00Z",
            "created_by": "",
            "description": "Example stream description",
            "format": "HLS",
            "group_id": "",
            "hls_to_llhls": {
              "enabled": true,
              "segment_template": "(?<=_Segment-)\\d+"
            },
            "host_name": "p-ep123e4567-e89b-12d3-a456-426614174000.i.mslentrypoint.video",
            "ingest_authentication_mode": "NONE",
            "ingest_location": "US_SEA",
            "origin_host_name": "us-sea-primaryexample.msl.video",
            "origin_id": "abc12345-6789-4abc-8def-1234567890ab",
            "playback": null,
            "playlist_duration_in_min": 60,
            "primary_publishing_url": "p-ep123e4567-e89b-12d3-a456-426614174000.i.mslentrypoint.video/123e4567-e89b-12d3-a456-426614174000/(event_name)",
            "status": "READY",
            "stream_id": "123e4567-e89b-12d3-a456-426614174000",
            "updated_at": "2024-01-01T00:00:00Z"
          }
        ]
      },
      "StreamStatus": {
        "type": "string",
        "enum": [
          "CREATING",
          "READY",
          "DELETED"
        ]
      }
    },
    "securitySchemes": {
      "jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "jwt": []
    }
  ]
}
```

# Sibling pages

* [Create stream](https://techdocs.akamai.com/msl5-harmonic/reference/create_stream.md)
* [List streams](https://techdocs.akamai.com/msl5-harmonic/reference/list_streams.md)
* [Import a v4 stream](https://techdocs.akamai.com/msl5-harmonic/reference/import_stream.md)
* [Update stream](https://techdocs.akamai.com/msl5-harmonic/reference/update_stream.md)
* [Delete stream](https://techdocs.akamai.com/msl5-harmonic/reference/delete_stream.md)