---
title: "Import a video from a post link"
method: POST
path: "/v1/media/imports"
tags: ["Media"]
---

# Import a video from a post link

`POST /v1/media/imports`

## Request

- Base URL: `https://www.postquick.ai/api`
- URL: `https://www.postquick.ai/api/v1/media/imports`
- Auth: HTTP bearer

Starts copying the video behind a public post into the user's media library. Returns a job at once; poll getMediaJob until it is `ready`, then use its `resultUrl`. Videos up to 500 MB and 30 minutes. Only import videos the user made or may use.

## Request body

- object
  - `url` string, uri, required: Link to a public post on X, TikTok, Instagram, Facebook or Pinterest.
  - `itemIndex` integer: Which item to import when the post has several, starting at 0.

## Response `201`

The import has started.

- object
  - `success` true, required
  - `data` object, required
    - `job` MediaJob, required
      - `id` string, uuid, required
      - `type` 'import' | 'clip', required
      - `status` 'queued' | 'processing' | 'ready' | 'failed', required: `queued` and `processing` are still running; poll getMediaJob until `ready` or `failed`.
      - `sourceUrl` string, nullable, required: The post link an import came from; null for a clip.
      - `title` string, nullable, required
      - `resultUrl` string, nullable, required: The stored video, once `ready`. Use it as `videoUrl` in createVideo or createStory.
      - `durationSeconds` number, nullable, required
      - `width` number, nullable, required
      - `height` number, nullable, required
      - `sizeBytes` number, nullable, required
      - `error` string, nullable, required: Why the job failed, in words for the user.
      - `createdAt` string, required

## Other responses

- `403`: The user's storage is full.
- `422`: The link is not a post on a supported site.

---

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