---
title: "Get an adaptive (HLS) stream playlist for a video"
method: GET
path: "/v1/assets/{id}/stream/{file}"
tags: ["Assets"]
---

# Get an adaptive (HLS) stream playlist for a video

`GET /v1/assets/{id}/stream/{file}`

## Request

- Base URL: `https://api.picsha.ai`
- URL: `https://api.picsha.ai/v1/assets/{id}/stream/{file}`
- Auth: HTTP bearer

Serves the HLS playlists made for a video uploaded with `config.adaptive_stream: true`. Start at `playlist.m3u8`; variant playlists resolve to this route, and media segments are presigned URLs valid for 4 hours. 404 until the transcode has finished.

## Path parameters

- `id` string, required
- `file` string, required

## Response `200`

Default Response

---

[API](https://skmtc.dev/picsha/apis/picsha-ai-api.md) · [All operations](https://skmtc.dev/picsha/apis/picsha-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/picsha/apis/picsha-ai-api/revisions/f77c6ac40e70?raw)
