---
title: "Open Video API — Edit a Video by Its Script | Pogclip Docs"
description: "Open a YouTube, Twitch or Kick video (up to 10 minutes) to edit its transcript, captions, stock media or graphics."
url: https://pogclip.com/docs/open-video
---

# Open a video to edit

Opens a public video of up to 10 minutes so you can edit it by its script, captions or layers. The request requires `rightsConfirmed: true`, and sending the same link and `size` returns the same video. To open it again without its edits and transcript, send a new `requestId`.

|          |                       |
| -------- | --------------------- |
| MCP tool | `open_video`          |
| API      | `POST /api/v1/videos` |
| Credits  | Free                  |

## When to use it

- Use this to start editing a video of up to 10 minutes from a link.
- For a video longer than 10 minutes, use [`clip_video`](https://pogclip.com/docs/clip-video) to find clips first, then edit a clip.
- If you already have a `clipId` from [`list_clips`](https://pogclip.com/docs/list-clips), skip this call and start with [`get_script`](https://pogclip.com/docs/get-script).

## Parameters

| Name              | Type    | Required | What it is                                                                                                                   |
| ----------------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `url`             | string  | Yes      | A public YouTube, Twitch or Kick video link.                                                                                 |
| `rightsConfirmed` | boolean | Yes      | Must be true: the user owns the video or has permission to use it.                                                           |
| `size`            | string  | No       | Reframes the video around the speaker in this size. Without it the video keeps its own. One of `9:16`, `4:5`, `1:1`, `16:9`. |
| `requestId`       | string  | No       | Any text. A new one opens the same video again, without its edits and transcript.                                            |

## Call it from an AI agent

```json
{
  "name": "open_video",
  "arguments": {
    "url": "https://www.youtube.com/watch?v=VIDEO_ID",
    "rightsConfirmed": true
  }
}
```

## Call it from your code

```bash
curl -X POST https://pogclip.com/api/v1/videos \
  -H "Authorization: Bearer $POGCLIP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.youtube.com/watch?v=VIDEO_ID", "rightsConfirmed": true}'
```

## What you get back

```json
{
  "clipId": "f8669b08",
  "name": "Why I started filming again",
  "pageUrl": "https://pogclip.com/dashboard/projects/8e4ed643?clip=f8669b08",
  "downloadPageUrl": "https://pogclip.com/dashboard/projects/8e4ed643?download=f8669b08",
  "status": "preparing",
  "durationSeconds": 510,
  "transcriptCredits": 9,
  "next": "The video is being fetched, usually in under two minutes. Get its script again in about 30 seconds."
}
```

- `status`: `checking_link` means repeat the same call in about 10 seconds. `preparing` means poll [`get_script`](https://pogclip.com/docs/get-script) in about 30 seconds until fetching finishes. If this link was opened before, `status` can already be `needs_transcript`, `transcribing`, `ready` or `failed`.
- `clipId`: pass this ID to [`get_script`](https://pogclip.com/docs/get-script), [`transcribe_video`](https://pogclip.com/docs/transcribe-video), editing tools and [`export_clips`](https://pogclip.com/docs/export-clips).
- `transcriptCredits`: how many credits [`transcribe_video`](https://pogclip.com/docs/transcribe-video) will charge once the video is ready for transcription: `0` while the day's 10 free transcripts last, then 1 for each minute.
- `pageUrl` and `downloadPageUrl`: open the video or its download view on pogclip.com.
- `next`: tells you what to call next and when.

## Errors

| Code                   | What it means                                                                                       |
| ---------------------- | --------------------------------------------------------------------------------------------------- |
| `rights_not_confirmed` | `rightsConfirmed` was not `true`.                                                                   |
| `link_unavailable`     | The link is private, live, a playlist, longer than 8 hours, or cannot be read. `reason` says which. |
| `video_too_long`       | The video is longer than 10 minutes. Make clips from it with `clip_video`, then edit a clip.        |
| `too_many_processing`  | 3 videos are already being fetched. Wait for one to finish.                                         |
| `invalid_request`      | A field is missing or wrong. The message says which.                                                |
| `unauthorized`         | The API key or sign-in is missing, wrong or revoked.                                                |
| `rate_limited`         | More than 60 requests in a minute. Wait for `retryAfterSeconds`.                                    |

## Related

- [Read the script](https://pogclip.com/docs/get-script)
- [Transcribe a video](https://pogclip.com/docs/transcribe-video)
- [Skill: edit a talking video](https://pogclip.com/docs/edit-talking-video)
