---
title: "Import a YouTube video into workspace media library"
method: POST
path: "/workspace/media/import/youtube"
tags: ["Media Library"]
---

# Import a YouTube video into workspace media library

`POST /workspace/media/import/youtube`

## Request

- Base URL: `https://blitzreels.com/api/v1`
- URL: `https://blitzreels.com/api/v1/workspace/media/import/youtube`
- Auth: API key in header `Authorization`

Import a YouTube video into workspace media library.

## Request body

- object
  - `url` string, uri, required
  - `folder_id` string, uuid, nullable
  - `quality` '144p' | '180p' | '240p' | '270p' | '360p' | '480p' | '540p' | '720p' | '1080p' | '1440p' | '2160p'
  - `fps` integer, nullable
  - `audio_language` string, nullable

## Response `200`

Successful response

- object
  - `asset_id` string, required
  - `status` 'processing' | 'already_exists', required
  - `quality` '144p' | '180p' | '240p' | '270p' | '360p' | '480p' | '540p' | '720p' | '1080p' | '1440p' | '2160p', nullable, required
  - `run_id` string, nullable, required
  - `txid` number, required

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `500`: Internal server error

---

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