Duplicate Video

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

POST /videos/{video_id}?copy

Duplicates an existing video. The new video is created with a "DRAFT" status and receives a new unique ID. The title is automatically appended with " - Copy" and the description contains a reference to the original video ID.

📘

Authorization

Include your API key in the Authorization header of every request. You can generate or retrieve your API key from the PandaVideo dashboard.

HTTP Method & Path

POST /videos/{video_id}?copy

Base URL: https://api-v2.pandavideo.com.br

Authentication Requirements

  • Security Scheme: PandaAuth (apiKey)
  • Header: Authorization: <your_api_token> (no Bearer prefix)

Parameters

NameInTypeRequiredDescription
AuthorizationheaderstringYesPanda API token

Path Parameters

ParameterTypeRequiredDescription
video_idstring (uuid)YesThe unique identifier of the video to duplicate

Query Parameters

ParameterTypeRequiredDescription
copy(no value)YesPresence of this parameter triggers the duplication. No value needed.

Request Body

This endpoint does not require a request body. The duplication is triggered by the ?copy query parameter.

Response

Success Response (200)

Returns the newly created (duplicated) video object:

{
  "id": "0d509ca0-8638-4f49-aee9-d6cd50baca0c",
  "title": "1457723412665616_hr8665.mp4 - Copy",
  "description": "copy-panda-9cc0ef69-7e7e-4c93-be56-2e69ed58f65e",
  "video_external_id": "cf1c5323-c722-4ef3-915a-cc13664acfb3",
  "user_id": "89552df0-cae4-489a-bea1-7f4f604c2142",
  "library_id": "09e4c4ad-d0f4-4186-aaeb-4db41b75bcf8",
  "folder_id": null,
  "status": "DRAFT",
  "config": {},
  "converted_at": null,
  "metadata": {},
  "backup_source": "aws",
  "m3u8_source": "aws",
  "updated_at": "2026-04-29T14:23:39.000Z",
  "created_at": "2026-04-29T14:23:39.000Z",
  "live_id": null,
  "video_external_source_id": null
}

Response Schema

FieldTypeDescription
idstring (uuid)ID of the duplicated video (new)
titlestringTitle with " - Copy" suffix
descriptionstringReference to the original video
video_external_idstring (uuid)External ID
user_idstring (uuid)Owner ID
library_idstring (uuid)Library ID
folder_idstring | nullFolder ID
statusstringVideo status. Ex: "DRAFT"
configobjectVideo configuration
converted_atstring | nullConversion date
metadataobjectTechnical metadata (resolution, codec, bitrate, etc.)
backup_sourcestringBackup source. Ex: "aws"
m3u8_sourcestringHLS source. Ex: "aws"
updated_atstring (ISO 8601)Update date
created_atstring (ISO 8601)Creation date
live_idstring | nullAssociated live ID
video_external_source_idstring | nullExternal source ID

Error Responses

  • 401 Unauthorized — Missing or invalid API key
  • 403 Forbidden — Insufficient permissions to duplicate this video
  • 404 Not Found — Video with the specified ID does not exist
  • 500 Internal Server Error — Unexpected server error

Example Usage

cURL


curl --request POST \
  --url 'https://api-v2.pandavideo.com.br/videos/{video_id}?copy' \
  --header 'Authorization: YOUR_API_KEY'
Path Params
string
required

The unique identifier of the video to duplicate.

Query Params
string
required

Presence of this parameter triggers the video duplication. No value needed.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json