Skip to main content
First month 50% off for new accounts, in their first 48 hoursStart free

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 toolopen_video
APIPOST /api/v1/videos
CreditsFree

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 to find clips first, then edit a clip.
  • If you already have a clipId from list_clips, skip this call and start with get_script.

Parameters

NameTypeRequiredWhat it is
urlstringYesA public YouTube, Twitch or Kick video link.
rightsConfirmedbooleanYesMust be true: the user owns the video or has permission to use it.
sizestringNoReframes 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.
requestIdstringNoAny text. A new one opens the same video again, without its edits and transcript.

Call it from an AI agent

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

Call it from your code

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

{
  "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 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, transcribe_video, editing tools and export_clips.
  • transcriptCredits: how many credits 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

CodeWhat it means
rights_not_confirmedrightsConfirmed was not true.
link_unavailableThe link is private, live, a playlist, longer than 8 hours, or cannot be read. reason says which.
video_too_longThe video is longer than 10 minutes. Make clips from it with clip_video, then edit a clip.
too_many_processing3 videos are already being fetched. Wait for one to finish.
invalid_requestA field is missing or wrong. The message says which.
unauthorizedThe API key or sign-in is missing, wrong or revoked.
rate_limitedMore than 60 requests in a minute. Wait for retryAfterSeconds.