How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

PeerTube Video Upload API

Operations dealing with adding video or audio. PeerTube supports two upload modes, and three import modes.### Upload- [_legacy_](#operation/uploadLegacy), where the video file is sent in a single request- [_resumable_](#operation/uploadResumableInit), where the video file is sent in chunksYou can upload videos more reliably by using the resumable variant. Its protocol letsyou resume an upload operation after a network interruption or other transmission failure,saving time and bandwidth in the event of network failures.Favor using resumable uploads in any of the following cases:- You are transferring large files- The likelihood of a network interruption is high- Uploads are originating from a device with a low-bandwidth or unstable Internet connection, such as a mobile device### Import- _URL_-based: where the URL points to any service supported by [youtube-dl](https://ytdl-org.github.io/youtube-dl/)- _magnet_-based: where the URI resolves to a BitTorrent resource containing a single supported video file- _torrent_-based: where the metainfo file resolves to a BitTorrent resource containing a single supported video fileThe import function is practical when the desired video/audio is available online. It makes PeerTubedownload it for you, saving you as much bandwidth and avoiding any instability or limitation your network might have.

PeerTube Video Upload API is one of 54 APIs that PeerTube publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Video Upload. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and rate-limit docs.

This API exposes 8 operations across 4 paths, and defines 20 schemas. It is described by OpenAPI 3.0.3, at version 8.1.0.

Requests are made against 3 base URLs: https://peertube2.cpy.re, https://peertube3.cpy.re, https://peertube.cpy.re.

8 operations 4 paths 20 schemas 2 DELETE4 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
8.1.0
Base URL
https://{instance}/api/v1
Authentication
OAuth 2.0
License
Resource Areas
1

Authentication & Security 1

PeerTube Video Upload API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (OAuth2) using the password flow, exposing 3 scopes.

  • OAuth2 — Authenticating via OAuth requires the following steps: - Have an activated account - [Generate] an access token for that account at /api/v1/users/token. - Make…

Paths & Operations 8

Across 4 paths, the API surfaces 8 operations — 2 DELETE, 4 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Video Upload 8

Operations dealing with adding video or audio. PeerTube supports two upload modes, and three import modes. Upload - [legacy](operation/uploadLegacy), where the video file is sent…

POST
/api/v1/videos/upload
Upload a video
uploadLegacy body → 200403408413415422
POST
/api/v1/videos/upload-resumable
Initialize the resumable upload of a video
uploadResumableInit 2 params body → 200201413415
PUT
/api/v1/videos/upload-resumable
Send chunk for the resumable upload of a video
uploadResumable 3 params body → 200308403404409422429503
DELETE
/api/v1/videos/upload-resumable
Cancel the resumable upload of a video, deleting any data uploaded so far
uploadResumableCancel 2 params → 204404
POST
/api/v1/videos/imports
Import a video
importVideo body → 200400403409
POST
/api/v1/videos/{id}/source/replace-resumable
Initialize the resumable replacement of a video
replaceVideoSourceResumableInit 3 params body → 200201413415
PUT
/api/v1/videos/{id}/source/replace-resumable
Send chunk for the resumable replacement of a video
replaceVideoSourceResumable 4 params body → 204308403404409422429503
DELETE
/api/v1/videos/{id}/source/replace-resumable
Cancel the resumable replacement of a video
replaceVideoSourceResumableCancel 3 params → 204404

Schemas 20

The contract defines 20 schemas that model the data the API accepts and returns. The most detailed are VideoUploadRequestCommon (21 properties), Video (3 properties), VideoImport (3 properties), VideoScheduledUpdate (2 properties). Each schema is shown below with its type and property counts.

VideoUploadRequestResumable
VideoImport
object
3 properties
Video
object
3 properties
id
integer
VideoPassword
object
1 property
VideoCommentsPolicySet
integer
Comments policy of the video (Enabled = 1, Disabled = 2, Requires Approval = 3)
VideoCreateImport
2 required
VideoUploadRequestCommon
object
21 properties 2 required
VideoUploadRequestLegacy
VideoLanguageSet
string
language id of the video (see [/videos/languages](operation/getLanguages))
shortUUID
string
translation of a uuid v4 with a bigger alphabet to have a shorter uuid
UUIDv4
string
VideoReplaceSourceRequestResumable
object
1 property
AddVideoPasswords
array
VideoPrivacySet
integer
privacy id of the video (see [/videos/privacies](operation/getVideoPrivacyPolicies))
VideoUploadResponse
object
1 property
NSFWFlag
integer
NSFW flags (can be combined using bitwise or operator) - 0 NONE - 1 VIOLENT - 2 EXPLICITSEX
VideoLicenceSet
integer
licence id of the video (see [/videos/licences](operation/getLicences))
VideoCategorySet
integer
category id of the video (see [/videos/categories](operation/getCategories))
VideoScheduledUpdate
object
2 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

peertube-video-upload-api-openapi.yml Raw ↑

Other APIs PeerTube publishes across the network.

PeerTube Abuses API
PeerTube Account Blocklist API
PeerTube Accounts API
PeerTube Automatic Tags API
PeerTube Channels Sync API
PeerTube Client Config API
PeerTube Config API
PeerTube Contact API
PeerTube Debug API
PeerTube Homepage API
PeerTube Instance Follows API
PeerTube Instance Redundancy API
Where this information came from

This is an independent, third-party profile of PeerTube Video Upload API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.