---
title: "Save Segment to Library"
method: POST
path: "/segments/{segment_id}/save-to-library"
tags: ["Shorts"]
---

# Save Segment to Library

`POST /segments/{segment_id}/save-to-library`

Saves a generated segment to the PandaVideo library. Requires the API key in the Authorization header.

## Path parameters

- `segment_id` string, required

## Request body

- object
  - `folder_id` string — Target folder ID in the PandaVideo library. If not provided, saves to the root folder.
  - `description` string — Description for the video in the library.
  - `video_id` string — Video identifier to associate with the saved segment.

## Response `200`

200

- object
  - `success` boolean
  - `message` string
  - `video_id` string — UUID of the video created in the library.

## Other responses

- `400` — 400
- `403` — 403
- `404` — 404
- `500` — 500

---

[API](https://skmtc.net/pandavideo/apis/api-v2.md) · [All operations](https://skmtc.net/pandavideo/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pandavideo/api-v2/versions/4fbd3c623ca9/schema)
