---
title: "Compile timeline (v2)"
method: POST
path: "/timeline_v2"
---

# Compile timeline (v2)

`POST /timeline_v2`

## Request body

- object
  - `request_type` 'compile', required
  - `timeline` Timeline[], required
    - `video_id` string
    - `clips` object[]
      - `start` number
      - `end` number
      - `volume` number
  - `output_format` 'mp4' | 'webm' | 'hls'
  - `quality` 'low' | 'medium' | 'high'

## Response `200`

Timeline compilation result

- object
  - `success` boolean
  - `data` object
    - `stream_url` string
    - `duration` number
    - `format` string

---

[API](https://skmtc.net/video-db/apis/videodb-server-api.md) · [All operations](https://skmtc.net/video-db/apis/videodb-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/video-db/videodb-server-api/versions/21b1d1d3eae8/schema)
