6 name: PeerTube Community
7 url: 'https://joinpeertube.org'
10 url: 'https://github.com/Chocobozzz/PeerTube/blob/master/LICENSE'
12 url: 'https://joinpeertube.org/img/brand.png'
13 altText: PeerTube Project Homepage
15 The PeerTube API is built on HTTP(S) and is RESTful. You can use your favorite
16 HTTP/REST library for your programming language to use PeerTube. The spec API is fully compatible with
17 [openapi-generator](https://github.com/OpenAPITools/openapi-generator/wiki/API-client-generator-HOWTO)
18 which generates a client SDK in the language of your choice - we generate some client SDKs automatically:
20 - [Python](https://framagit.org/framasoft/peertube/clients/python)
21 - [Go](https://framagit.org/framasoft/peertube/clients/go)
22 - [Kotlin](https://framagit.org/framasoft/peertube/clients/kotlin)
24 See the [REST API quick start](https://docs.joinpeertube.org/api-rest-getting-started) for a few
25 examples of using with the PeerTube API.
29 When you sign up for an account on a PeerTube instance, you are given the possibility
30 to generate sessions on it, and authenticate there using a session token. Only __one
31 session token can currently be used at a time__.
35 Accounts are given permissions based on their role. There are three roles on
36 PeerTube: Administrator, Moderator, and User. See the [roles guide](https://docs.joinpeertube.org/admin-managing-users?id=roles) for a detail of their permissions.
40 The API uses standard HTTP status codes to indicate the success or failure
41 of the API call. The body of the response will be JSON in the following
46 "error": "Account not found" // error debug message
50 Some errors benefit from a more detailed message:
54 "id": { // where 'id' is the name of the parameter concerned by the error.
55 "value": "a117eb-c6a9-4756-bb09-2a956239f", // value that triggered the error.
56 "msg": "Should have an valid id", // error debug message
58 "location": "params" // 'params', 'body', 'header', 'query' or 'cookies'
66 We are rate-limiting all endpoints of PeerTube's API. Custom values can be set by administrators:
68 | Endpoint | Calls | Time frame |
69 |-------------------------|------------------|---------------------------|
70 | `/*` | 50 | 10 seconds |
71 | `POST /users/token` | 15 | 5 minutes |
72 | `POST /users/register` | 2¹ | 5 minutes |
73 | `POST /users/ask-send-verify-email` | 3 | 5 minutes |
75 Depending on the endpoint, ¹failed requests are not taken into account. A service
76 limit is announced by a `429 Too Many Requests` status code.
78 You can get details about the current state of your rate limit by reading the
81 | Header | Description |
82 |-------------------------|------------------------------------------------------------|
83 | X-RateLimit-Limit | Number of max requests allowed in the current time period |
84 | X-RateLimit-Remaining | Number of remaining requests in the current time period |
85 | X-RateLimit-Reset | Timestamp of end of current time period as UNIX timestamp |
86 | Retry-After | Seconds to delay after the first `429` is received |
88 url: https://docs.joinpeertube.org/api-rest-reference.html
92 Accounts encompass remote accounts discovered across the federation,
93 and correspond to the main Actor, along with video channels a user can create, which
96 When a comment is posted, it is done with your Account's Actor.
99 Using some features of PeerTube require authentication, for which User
100 provide different levels of permission as well as associated user
101 information. Each user has a corresponding local Account for federation.
104 Operations related to your own User, when logged-in.
105 - name: My Subscriptions
107 Operations related to your subscriptions to video channels, their
108 new videos, and how to keep up to date with their latest publications!
111 Operations related to your watch history.
112 - name: My Notifications
114 Notifications following new videos, follows or reports. They allow you
115 to keep track of the interactions and overall important information that
116 concerns you. You MAY set per-notification type delivery preference, to
117 receive the info either by mail, by in-browser notification or both.
120 Each server exposes public information regarding supported videos and
124 Jobs are long-running tasks enqueued and processed by the instance
125 itself. No additional worker registration is currently available.
126 - name: Instance Follows
128 Managing servers which the instance interacts with is crucial to the
129 concept of federation in PeerTube and external video indexation. The PeerTube
130 server then deals with inter-server ActivityPub operations and propagates
131 information across its social graph by posting activities to actors' inbox
134 url: https://docs.joinpeertube.org/admin-following-instances?id=instances-follows
135 - name: Instance Redundancy
137 Redundancy is part of the inter-server solidarity that PeerTube fosters.
138 Manage the list of instances you wish to help by seeding their videos according
139 to the policy of video selection of your choice. Note that you have a similar functionality
140 to mirror individual videos, see [video mirroring](#tag/Video-Mirroring).
142 url: https://docs.joinpeertube.org/admin-following-instances?id=instances-redundancy
145 Managing plugins installed from a local path or from NPM, or search for new ones.
147 url: https://docs.joinpeertube.org/api-plugins
150 Abuses deal with reports of local or remote videos/comments/accounts alike.
153 Operations dealing with listing, uploading, fetching or modifying videos.
156 Operations dealing with adding video or audio. PeerTube supports two upload modes, and three import modes.
160 - [_legacy_](#operation/uploadLegacy), where the video file is sent in a single request
161 - [_resumable_](#operation/uploadResumableInit), where the video file is sent in chunks
163 You can upload videos more reliably by using the resumable variant. Its protocol lets
164 you resume an upload operation after a network interruption or other transmission failure,
165 saving time and bandwidth in the event of network failures.
167 Favor using resumable uploads in any of the following cases:
168 - You are transferring large files
169 - The likelihood of a network interruption is high
170 - Uploads are originating from a device with a low-bandwidth or unstable Internet connection,
171 such as a mobile device
175 - _URL_-based: where the URL points to any service supported by [youtube-dl](https://ytdl-org.github.io/youtube-dl/)
176 - _magnet_-based: where the URI resolves to a BitTorrent ressource containing a single supported video file
177 - _torrent_-based: where the metainfo file resolves to a BitTorrent ressource containing a single supported video file
179 The import function is practical when the desired video/audio is available online. It makes PeerTube
180 download it for you, saving you as much bandwidth and avoiding any instability or limitation your network might have.
181 - name: Video Captions
182 description: Operations dealing with listing, adding and removing closed captions of a video.
183 - name: Video Channels
184 description: Operations dealing with the creation, modification and listing of videos within a channel.
185 - name: Video Comments
187 Operations dealing with comments to a video. Comments are organized in threads: adding a
188 comment in response to the video starts a thread, adding a reply to a comment adds it to
189 its root comment thread.
191 description: Operations dealing with blocking videos (removing them from view and preventing interactions).
193 description: Like/dislike a video.
194 - name: Video Playlists
195 description: Operations dealing with playlists of videos. Playlists are bound to users and/or channels.
197 description: Server syndication feeds
200 The search helps to find _videos_ or _channels_ from within the instance and beyond.
201 Videos from other instances federated by the instance (that is, instances
202 followed by the instance) can be found via keywords and other criteria of
205 Administrators can also enable the use of a remote search system, indexing
206 videos and channels not could be not federated by the instance.
207 - name: Video Mirroring
209 PeerTube instances can mirror videos from one another, and help distribute some videos.
211 For importing videos as your own, refer to [video imports](#operation/importVideo).
230 - Video Ownership Change
243 - name: Instance Configuration
247 - Instance Redundancy
257 summary: Get an account
259 - $ref: '#/components/parameters/name'
262 description: successful operation
266 $ref: '#/components/schemas/Account'
268 description: account not found
269 '/accounts/{name}/videos':
274 summary: 'List videos of an account'
276 - $ref: '#/components/parameters/name'
277 - $ref: '#/components/parameters/categoryOneOf'
278 - $ref: '#/components/parameters/isLive'
279 - $ref: '#/components/parameters/tagsOneOf'
280 - $ref: '#/components/parameters/tagsAllOf'
281 - $ref: '#/components/parameters/licenceOneOf'
282 - $ref: '#/components/parameters/languageOneOf'
283 - $ref: '#/components/parameters/nsfw'
284 - $ref: '#/components/parameters/filter'
285 - $ref: '#/components/parameters/skipCount'
286 - $ref: '#/components/parameters/start'
287 - $ref: '#/components/parameters/count'
288 - $ref: '#/components/parameters/videosSort'
291 description: successful operation
295 $ref: '#/components/schemas/VideoListResponse'
299 fetch('https://peertube2.cpy.re/api/v1/accounts/{name}/videos')
300 .then(function(response) {
301 return response.json()
302 }).then(function(data) {
308 curl -s https://peertube2.cpy.re/api/v1/accounts/{name}/videos | jq
314 uri = URI.parse("https://peertube2.cpy.re/api/v1/accounts/{name}/videos")
316 http = Net::HTTP.new(uri.host, uri.port)
319 response = http.get(uri.request_uri)
321 puts JSON.parse(response.read_body)
326 r = requests.get("https://peertube2.cpy.re/api/v1//accounts/{name}/videos")
334 summary: List accounts
336 - $ref: '#/components/parameters/start'
337 - $ref: '#/components/parameters/count'
338 - $ref: '#/components/parameters/sort'
341 description: successful operation
347 $ref: '#/components/schemas/Account'
352 summary: Get instance public configuration
355 description: successful operation
359 $ref: '#/components/schemas/ServerConfig'
362 externalValue: https://peertube2.cpy.re/api/v1/config
365 summary: Get instance "About" information
370 description: successful operation
374 $ref: '#/components/schemas/ServerConfigAbout'
377 externalValue: https://peertube2.cpy.re/api/v1/config/about
380 summary: Get instance runtime configuration
388 description: successful operation
392 $ref: '#/components/schemas/ServerConfigCustom'
394 summary: Set instance runtime configuration
402 description: successful operation
404 x-summary: field inconsistencies
407 - the emailer is disabled and the instance is open to registrations
408 - webtorrent and hls are disabled with transcoding enabled - you need at least one enabled
410 summary: Delete instance runtime configuration
418 description: successful operation
421 summary: List instance jobs
431 description: The state of the job ('' for for no filter)
441 - $ref: '#/components/parameters/jobType'
442 - $ref: '#/components/parameters/start'
443 - $ref: '#/components/parameters/count'
444 - $ref: '#/components/parameters/sort'
447 description: successful operation
460 $ref: '#/components/schemas/Job'
461 '/server/following/{host}':
468 summary: Unfollow a server
473 description: 'The host to unfollow '
479 description: successful operation
484 summary: List instance followers
486 - $ref: '#/components/parameters/start'
487 - $ref: '#/components/parameters/count'
488 - $ref: '#/components/parameters/sort'
491 description: successful operation
497 $ref: '#/components/schemas/Follow'
502 summary: List instances followed by the server
521 - $ref: '#/components/parameters/start'
522 - $ref: '#/components/parameters/count'
523 - $ref: '#/components/parameters/sort'
526 description: successful operation
532 $ref: '#/components/schemas/Follow'
539 summary: Follow a server
542 description: successful operation
544 description: cannot follow a non-HTTPS server
559 summary: Create a user
567 description: user created
571 $ref: '#/components/schemas/AddUserResponse'
575 operationId: getUserId
577 id: '$response.body#/user/id'
580 operationId: putUserId
582 id: '$response.body#/user/id'
585 operationId: delUserId
587 id: '$response.body#/user/id'
589 description: insufficient authority to create an admin or moderator
594 $ref: '#/components/schemas/AddUser'
596 If the smtp server is configured, you can leave the password empty and an email will be sent
597 asking the user to set it first.
607 - $ref: '#/components/parameters/usersSearch'
608 - $ref: '#/components/parameters/usersBlocked'
609 - $ref: '#/components/parameters/start'
610 - $ref: '#/components/parameters/count'
611 - $ref: '#/components/parameters/usersSort'
614 description: successful operation
620 $ref: '#/components/schemas/User'
623 - $ref: '#/components/parameters/id'
625 summary: Delete a user
631 operationId: delUserId
634 description: successful operation
641 operationId: getUserId
645 description: include statistics about the user (only available as a moderator/admin)
650 x-summary: successful operation
652 As an admin/moderator, you can request a response augmented with statistics about the user's
653 moderation relations and videos usage, by using the `withStats` parameter.
658 - $ref: '#/components/schemas/User'
659 - $ref: '#/components/schemas/UserWithStats'
661 summary: Update a user
666 operationId: putUserId
669 description: successful operation
674 $ref: '#/components/schemas/UpdateUser'
678 summary: Register a user
683 description: successful operation
688 $ref: '#/components/schemas/RegisterUser'
692 summary: Get my user information
700 description: successful operation
706 $ref: '#/components/schemas/User'
708 summary: Update my user information
716 description: successful operation
721 $ref: '#/components/schemas/UpdateMe'
723 /users/me/videos/imports:
725 summary: Get video imports of my user
733 - $ref: '#/components/parameters/start'
734 - $ref: '#/components/parameters/count'
735 - $ref: '#/components/parameters/sort'
738 description: successful operation
742 $ref: '#/components/schemas/VideoImportsList'
743 /users/me/video-quota-used:
745 summary: Get my user used quota
753 description: successful operation
761 description: The user video quota used so far in bytes
765 description: The user video quota used today in bytes
767 '/users/me/videos/{videoId}/rating':
769 summary: Get rate of my user for a video
779 description: The video id
781 $ref: '#/components/schemas/Video/properties/id'
784 description: successful operation
788 $ref: '#/components/schemas/GetMeVideoRating'
791 summary: Get videos of my user
799 - $ref: '#/components/parameters/start'
800 - $ref: '#/components/parameters/count'
801 - $ref: '#/components/parameters/sort'
804 description: successful operation
808 $ref: '#/components/schemas/VideoListResponse'
809 /users/me/subscriptions:
811 summary: Get my user subscriptions
818 - $ref: '#/components/parameters/start'
819 - $ref: '#/components/parameters/count'
820 - $ref: '#/components/parameters/sort'
823 description: successful operation
827 $ref: '#/components/schemas/VideoChannelList'
831 summary: Add subscription to my user
844 description: uri of the video channels to subscribe to
850 uri: 008a0e54-375d-49d0-8379-143202e24152@video.lqdn.fr
853 description: successful operation
854 /users/me/subscriptions/exist:
856 summary: Get if subscriptions exist for my user
863 - $ref: '#/components/parameters/subscriptionsUris'
866 description: successful operation
871 /users/me/subscriptions/videos:
873 summary: List videos of subscriptions of my user
881 - $ref: '#/components/parameters/categoryOneOf'
882 - $ref: '#/components/parameters/isLive'
883 - $ref: '#/components/parameters/tagsOneOf'
884 - $ref: '#/components/parameters/tagsAllOf'
885 - $ref: '#/components/parameters/licenceOneOf'
886 - $ref: '#/components/parameters/languageOneOf'
887 - $ref: '#/components/parameters/nsfw'
888 - $ref: '#/components/parameters/filter'
889 - $ref: '#/components/parameters/skipCount'
890 - $ref: '#/components/parameters/start'
891 - $ref: '#/components/parameters/count'
892 - $ref: '#/components/parameters/videosSort'
895 description: successful operation
899 $ref: '#/components/schemas/VideoListResponse'
900 '/users/me/subscriptions/{subscriptionHandle}':
902 summary: Get subscription of my user
909 - $ref: '#/components/parameters/subscriptionHandle'
912 description: successful operation
916 $ref: '#/components/schemas/VideoChannel'
918 summary: Delete subscription of my user
925 - $ref: '#/components/parameters/subscriptionHandle'
928 description: successful operation
929 /users/me/notifications:
931 summary: List my notifications
939 description: only list unread notifications
942 - $ref: '#/components/parameters/start'
943 - $ref: '#/components/parameters/count'
944 - $ref: '#/components/parameters/sort'
947 description: successful operation
951 $ref: '#/components/schemas/NotificationListResponse'
952 /users/me/notifications/read:
954 summary: Mark notifications as read by their id
967 description: ids of the notifications to mark as read
974 description: successful operation
975 /users/me/notifications/read-all:
977 summary: Mark all my notification as read
984 description: successful operation
985 /users/me/notification-settings:
987 summary: Update my notification settings
998 newVideoFromSubscription:
999 $ref: '#/components/schemas/NotificationSettingValue'
1000 newCommentOnMyVideo:
1001 $ref: '#/components/schemas/NotificationSettingValue'
1003 $ref: '#/components/schemas/NotificationSettingValue'
1004 videoAutoBlacklistAsModerator:
1005 $ref: '#/components/schemas/NotificationSettingValue'
1007 $ref: '#/components/schemas/NotificationSettingValue'
1009 $ref: '#/components/schemas/NotificationSettingValue'
1010 myVideoImportFinished:
1011 $ref: '#/components/schemas/NotificationSettingValue'
1013 $ref: '#/components/schemas/NotificationSettingValue'
1014 newUserRegistration:
1015 $ref: '#/components/schemas/NotificationSettingValue'
1017 $ref: '#/components/schemas/NotificationSettingValue'
1018 newInstanceFollower:
1019 $ref: '#/components/schemas/NotificationSettingValue'
1020 autoInstanceFollowing:
1021 $ref: '#/components/schemas/NotificationSettingValue'
1024 description: successful operation
1025 /users/me/history/videos:
1027 summary: List watched videos history
1033 - $ref: '#/components/parameters/start'
1034 - $ref: '#/components/parameters/count'
1035 - $ref: '#/components/parameters/search'
1038 description: successful operation
1042 $ref: '#/components/schemas/VideoListResponse'
1043 /users/me/history/videos/remove:
1045 summary: Clear video history
1052 multipart/form-data:
1057 description: history before this date will be deleted
1062 description: successful operation
1063 /users/me/avatar/pick:
1065 summary: Update my user avatar
1072 description: successful operation
1079 $ref: '#/components/schemas/ActorImage'
1081 description: image file too large
1083 X-File-Maximum-Size:
1087 description: Maximum file size for the avatar
1090 multipart/form-data:
1095 description: The file to upload
1100 contentType: image/png, image/jpeg
1103 summary: Delete my avatar
1110 description: successful operation
1114 summary: List video ownership changes
1116 - Video Ownership Change
1121 description: successful operation
1122 '/videos/ownership/{id}/accept':
1124 summary: Accept ownership change request
1126 - Video Ownership Change
1130 - $ref: '#/components/parameters/idOrUUID'
1133 description: successful operation
1135 description: cannot terminate an ownership change of another user
1137 description: video owneship change not found
1138 '/videos/ownership/{id}/refuse':
1140 summary: Refuse ownership change request
1142 - Video Ownership Change
1146 - $ref: '#/components/parameters/idOrUUID'
1149 description: successful operation
1151 description: cannot terminate an ownership change of another user
1153 description: video owneship change not found
1154 '/videos/{id}/give-ownership':
1156 summary: Request ownership change
1158 - Video Ownership Change
1162 - $ref: '#/components/parameters/idOrUUID'
1166 application/x-www-form-urlencoded:
1176 description: successful operation
1178 description: changing video ownership to a remote account is not supported yet
1180 description: video not found
1183 summary: List videos
1187 - $ref: '#/components/parameters/categoryOneOf'
1188 - $ref: '#/components/parameters/isLive'
1189 - $ref: '#/components/parameters/tagsOneOf'
1190 - $ref: '#/components/parameters/tagsAllOf'
1191 - $ref: '#/components/parameters/licenceOneOf'
1192 - $ref: '#/components/parameters/languageOneOf'
1193 - $ref: '#/components/parameters/nsfw'
1194 - $ref: '#/components/parameters/filter'
1195 - $ref: '#/components/parameters/skipCount'
1196 - $ref: '#/components/parameters/start'
1197 - $ref: '#/components/parameters/count'
1198 - $ref: '#/components/parameters/videosSort'
1201 description: successful operation
1205 $ref: '#/components/schemas/VideoListResponse'
1208 summary: List available video categories
1209 operationId: getCategories
1214 description: successful operation
1223 externalValue: https://peertube2.cpy.re/api/v1/videos/categories
1226 summary: List available video licences
1227 operationId: getLicences
1232 description: successful operation
1241 externalValue: https://peertube2.cpy.re/api/v1/videos/licences
1244 summary: List available video languages
1245 operationId: getLanguages
1250 description: successful operation
1259 externalValue: https://peertube2.cpy.re/api/v1/videos/languages
1262 summary: List available video privacy policies
1263 operationId: getPrivacyPolicies
1268 description: successful operation
1277 externalValue: https://peertube2.cpy.re/api/v1/videos/privacies
1280 summary: Update a video
1286 - $ref: '#/components/parameters/idOrUUID'
1289 description: successful operation
1292 multipart/form-data:
1297 description: Video thumbnail file
1301 description: Video preview file
1305 $ref: '#/components/schemas/VideoCategorySet'
1307 $ref: '#/components/schemas/VideoLicenceSet'
1309 $ref: '#/components/schemas/VideoLanguageSet'
1311 $ref: '#/components/schemas/VideoPrivacySet'
1313 description: Video description
1316 description: Whether or not we wait transcoding before publish the video
1319 description: A text tell the audience how to support the video creator
1320 example: Please support my work on <insert crowdfunding plateform>! <3
1323 description: Whether or not this video contains sensitive content
1326 description: Video name
1331 description: Video tags (maximum 5 tags each between 2 and 30 characters)
1340 description: Enable or disable comments for this video
1342 originallyPublishedAt:
1343 description: Date when the content was originally published
1347 $ref: '#/components/schemas/VideoScheduledUpdate'
1350 contentType: image/jpeg
1352 contentType: image/jpeg
1354 summary: Get a video
1358 - $ref: '#/components/parameters/idOrUUID'
1361 description: successful operation
1365 $ref: '#/components/schemas/VideoDetails'
1367 summary: Delete a video
1373 - $ref: '#/components/parameters/idOrUUID'
1376 description: successful operation
1377 '/videos/{id}/description':
1379 summary: Get complete video description
1383 - $ref: '#/components/parameters/idOrUUID'
1386 description: successful operation
1395 **[Want to help to translate this video?](https://weblate.framasoft.org/projects/what-is-peertube-video/)**\r\n\r\n**Take back the control of your videos! [#JoinPeertube](https://joinpeertube.org)**
1396 '/videos/{id}/views':
1398 summary: Add a view to a video
1402 - $ref: '#/components/parameters/idOrUUID'
1405 description: successful operation
1406 '/videos/{id}/watching':
1408 summary: Set watching progress of a video
1414 - $ref: '#/components/parameters/idOrUUID'
1419 $ref: '#/components/schemas/UserWatchingVideo'
1423 description: successful operation
1426 summary: Upload a video
1427 description: Uses a single request to upload a video.
1428 operationId: uploadLegacy
1436 description: successful operation
1440 $ref: '#/components/schemas/VideoUploadResponse'
1442 description: invalid file field, schedule date or parameter
1444 description: video didn't pass upload filter
1446 description: upload has timed out
1448 description: video file too large, due to quota or max body size limit set by the reverse-proxy
1450 X-File-Maximum-Size:
1454 description: Maximum file size for the video
1456 description: video type unsupported
1458 description: video unreadable
1461 multipart/form-data:
1463 $ref: '#/components/schemas/VideoUploadRequestLegacy'
1466 contentType: video/mp4, video/webm, video/ogg, video/avi, video/quicktime, video/x-msvideo, video/x-flv, video/x-matroska, application/octet-stream
1468 contentType: image/jpeg
1470 contentType: image/jpeg
1475 USERNAME="<your_username>"
1476 PASSWORD="<your_password>"
1477 FILE_PATH="<your_file_path>"
1478 CHANNEL_ID="<your_channel_id>"
1481 API_PATH="https://peertube2.cpy.re/api/v1"
1483 client_id=$(curl -s "$API_PATH/oauth-clients/local" | jq -r ".client_id")
1484 client_secret=$(curl -s "$API_PATH/oauth-clients/local" | jq -r ".client_secret")
1485 token=$(curl -s "$API_PATH/users/token" \
1486 --data client_id="$client_id" \
1487 --data client_secret="$client_secret" \
1488 --data grant_type=password \
1489 --data response_type=code \
1490 --data username="$USERNAME" \
1491 --data password="$PASSWORD" \
1492 | jq -r ".access_token")
1494 curl -s "$API_PATH/videos/upload" \
1495 -H "Authorization: Bearer $token" \
1497 --form videofile=@"$FILE_PATH" \
1498 --form channelId=$CHANNEL_ID \
1500 /videos/upload-resumable:
1502 summary: Initialize the resumable upload of a video
1503 description: Uses [a resumable protocol](https://github.com/kukhariev/node-uploadx/blob/master/proto.md) to initialize the upload of a video
1504 operationId: uploadResumableInit
1511 - name: X-Upload-Content-Length
1517 description: Number of bytes that will be uploaded in subsequent requests. Set this value to the size of the file you are uploading.
1518 - name: X-Upload-Content-Type
1525 description: MIME type of the file that you are uploading. Depending on your instance settings, acceptable values might vary.
1530 $ref: '#/components/schemas/VideoUploadRequestResumable'
1533 description: file already exists, send a [`resume`](https://github.com/kukhariev/node-uploadx/blob/master/proto.md) request instead
1535 description: created
1541 example: /api/v1/videos/upload-resumable?upload_id=471e97554f21dec3b8bb5d4602939c51
1547 description: invalid file field, schedule date or parameter
1549 description: video file too large, due to quota, absolute max file size or concurrent partial upload limit
1551 description: video type unsupported
1553 summary: Send chunk for the resumable upload of a video
1554 description: Uses [a resumable protocol](https://github.com/kukhariev/node-uploadx/blob/master/proto.md) to continue, pause or resume the upload of a video
1555 operationId: uploadResumable
1566 Created session id to proceed with. If you didn't send chunks in the last 12 hours, it is
1567 not valid anymore and you need to initialize a new upload.
1570 - name: Content-Range
1574 example: bytes 0-262143/2469036
1577 Specifies the bytes in the file that the request is uploading.
1579 For example, a value of `bytes 0-262143/1000000` shows that the request is sending the first
1580 262144 bytes (256 x 1024) in a 2,469,036 byte file.
1581 - name: Content-Length
1588 Size of the chunk that the request is sending.
1590 The chunk size __must be a multiple of 256 KB__, and unlike [Google Resumable](https://developers.google.com/youtube/v3/guides/using_resumable_upload_protocol)
1591 doesn't mandate for chunks to have the same size throughout the upload sequence.
1593 Remember that larger chunks are more efficient. PeerTube's web client uses chunks varying from
1594 1048576 bytes (~1MB) and increases or reduces size depending on connection health.
1597 application/octet-stream:
1603 description: last chunk received
1611 $ref: '#/components/schemas/VideoUploadResponse'
1613 description: resume incomplete
1618 example: bytes=0-262143
1624 description: video didn't pass upload filter
1626 description: video file too large, due to quota or max body size limit set by the reverse-proxy
1628 description: video unreadable
1630 summary: Cancel the resumable upload of a video, deleting any data uploaded so far
1631 description: Uses [a resumable protocol](https://github.com/kukhariev/node-uploadx/blob/master/proto.md) to cancel the upload of a video
1632 operationId: uploadResumableCancel
1643 Created session id to proceed with. If you didn't send chunks in the last 12 hours, it is
1644 not valid anymore and the upload session has already been deleted with its data ;-)
1647 - name: Content-Length
1655 description: upload cancelled
1663 summary: Import a video
1664 description: Import a torrent or magnetURI or HTTP resource (if enabled by the instance administrator)
1665 operationId: importVideo
1673 multipart/form-data:
1678 description: Torrent File
1682 description: HTTP target URL
1685 description: Magnet URI
1688 description: Channel id that will contain this video
1691 description: Video thumbnail file
1695 description: Video preview file
1699 $ref: '#/components/schemas/VideoPrivacySet'
1701 $ref: '#/components/schemas/VideoCategorySet'
1703 $ref: '#/components/schemas/VideoLicenceSet'
1705 $ref: '#/components/schemas/VideoLanguageSet'
1707 description: Video description
1710 description: Whether or not we wait transcoding before publish the video
1713 description: A text tell the audience how to support the video creator
1714 example: Please support my work on <insert crowdfunding plateform>! <3
1717 description: Whether or not this video contains sensitive content
1720 description: Video name
1725 description: Video tags (maximum 5 tags each between 2 and 30 characters)
1734 description: Enable or disable comments for this video
1737 description: Enable or disable downloading for this video
1740 $ref: '#/components/schemas/VideoScheduledUpdate'
1746 contentType: application/x-bittorrent
1748 contentType: image/jpeg
1750 contentType: image/jpeg
1753 description: successful operation
1757 $ref: '#/components/schemas/VideoUploadResponse'
1759 description: '`magnetUri` or `targetUrl` or a torrent file missing'
1761 description: video didn't pass pre-import filter
1763 description: HTTP or Torrent/magnetURI import not enabled
1767 summary: Create a live
1768 operationId: createLive
1776 description: successful operation
1780 $ref: '#/components/schemas/VideoUploadResponse'
1782 description: live is not enabled, allow replay is not enabled, or max instance/user live videos limit is exceeded
1785 multipart/form-data:
1790 description: Channel id that will contain this live video
1795 description: User can stream multiple times in a permanent live
1798 description: Live video/replay thumbnail file
1802 description: Live video/replay preview file
1806 $ref: '#/components/schemas/VideoPrivacySet'
1808 $ref: '#/components/schemas/VideoCategorySet'
1810 $ref: '#/components/schemas/VideoLicenceSet'
1812 $ref: '#/components/schemas/VideoLanguageSet'
1814 description: Live video/replay description
1817 description: A text tell the audience how to support the creator
1818 example: Please support my work on <insert crowdfunding plateform>! <3
1821 description: Whether or not this live video/replay contains sensitive content
1824 description: Live video/replay name
1829 description: Live video/replay tags (maximum 5 tags each between 2 and 30 characters)
1838 description: Enable or disable comments for this live video/replay
1841 description: Enable or disable downloading for the replay of this live
1848 contentType: image/jpeg
1850 contentType: image/jpeg
1854 summary: Get information about a live
1855 operationId: getLiveId
1862 - $ref: '#/components/parameters/idOrUUID'
1865 description: successful operation
1869 $ref: '#/components/schemas/LiveVideoResponse'
1871 summary: Update information about a live
1872 operationId: updateLiveId
1879 - $ref: '#/components/parameters/idOrUUID'
1884 $ref: '#/components/schemas/LiveVideoUpdate'
1887 description: successful operation
1889 description: bad parameters or trying to update a live that has already started
1891 description: trying to save replay of the live but saving replay is not enabled on the instance
1895 summary: List my abuses
1896 operationId: getMyAbuses
1905 description: only list the report with this id
1911 $ref: '#/components/schemas/AbuseStateSet'
1912 - $ref: '#/components/parameters/abusesSort'
1913 - $ref: '#/components/parameters/start'
1914 - $ref: '#/components/parameters/count'
1917 description: successful operation
1929 $ref: '#/components/schemas/Abuse'
1933 summary: List abuses
1934 operationId: getAbuses
1944 description: only list the report with this id
1947 - name: predefinedReason
1949 description: predefined reason the listed reports should contain
1951 $ref: '#/components/schemas/PredefinedAbuseReasons'
1954 description: plain search that will match with video titles, reporter names and more
1960 $ref: '#/components/schemas/AbuseStateSet'
1961 - name: searchReporter
1963 description: only list reports of a specific reporter
1966 - name: searchReportee
1967 description: only list reports of a specific reportee
1973 description: only list reports of a specific video
1976 - name: searchVideoChannel
1978 description: only list reports of a specific video channel
1983 description: only list blacklisted or deleted videos
1991 description: only list account, comment or video reports
1998 - $ref: '#/components/parameters/start'
1999 - $ref: '#/components/parameters/count'
2000 - $ref: '#/components/parameters/abusesSort'
2003 description: successful operation
2015 $ref: '#/components/schemas/Abuse'
2018 summary: Report an abuse
2031 description: Reason why the user reports this video
2036 $ref: '#/components/schemas/PredefinedAbuseReasons'
2041 description: Video id to report
2043 - $ref: '#/components/schemas/Video/properties/id'
2046 description: Timestamp in the video that marks the beginning of the report
2050 description: Timestamp in the video that marks the ending of the report
2056 description: Comment id to report
2058 - $ref: '#/components/schemas/VideoComment/properties/id'
2063 description: Account id to report
2069 description: successful operation
2071 description: incorrect request parameters
2072 '/abuses/{abuseId}':
2074 summary: Update an abuse
2082 - $ref: '#/components/parameters/abuseId'
2090 $ref: '#/components/schemas/AbuseStateSet'
2093 description: Update the report comment visible only to the moderation team
2098 description: successful operation
2100 description: abuse not found
2104 summary: Delete an abuse
2110 - $ref: '#/components/parameters/abuseId'
2113 description: successful operation
2115 description: block not found
2116 '/abuses/{abuseId}/messages':
2118 summary: List messages of an abuse
2124 - $ref: '#/components/parameters/abuseId'
2127 description: successful operation
2133 $ref: '#/components/schemas/AbuseMessage'
2136 summary: Add message to an abuse
2142 - $ref: '#/components/parameters/abuseId'
2151 description: Message to send
2159 description: successful operation
2161 description: incorrect request parameters
2162 '/abuses/{abuseId}/messages/{abuseMessageId}':
2164 summary: Delete an abuse message
2170 - $ref: '#/components/parameters/abuseId'
2171 - $ref: '#/components/parameters/abuseMessageId'
2174 description: successful operation
2176 '/videos/{id}/blacklist':
2178 summary: Block a video
2186 - $ref: '#/components/parameters/idOrUUID'
2189 description: successful operation
2191 summary: Unblock a video by its id
2199 - $ref: '#/components/parameters/idOrUUID'
2202 description: successful operation
2204 description: block not found
2209 summary: List video blocks
2218 list only blocks that match this type:
2222 - `2`: automatic block that needs review
2230 description: plain search that will match with video titles, and more
2233 - $ref: '#/components/parameters/start'
2234 - $ref: '#/components/parameters/count'
2235 - $ref: '#/components/parameters/blacklistsSort'
2238 description: successful operation
2250 $ref: '#/components/schemas/VideoBlacklist'
2251 /videos/{id}/captions:
2253 summary: List captions of a video
2257 - $ref: '#/components/parameters/idOrUUID'
2260 description: successful operation
2272 $ref: '#/components/schemas/VideoCaption'
2273 /videos/{id}/captions/{captionLanguage}:
2275 summary: Add or replace a video caption
2282 - $ref: '#/components/parameters/idOrUUID'
2283 - $ref: '#/components/parameters/captionLanguage'
2286 multipart/form-data:
2291 description: The file to upload.
2296 contentType: text/vtt, application/x-subrip, text/plain
2299 description: successful operation
2301 description: video or language not found
2303 summary: Delete a video caption
2310 - $ref: '#/components/parameters/idOrUUID'
2311 - $ref: '#/components/parameters/captionLanguage'
2314 description: successful operation
2316 description: video or language or caption for that language not found
2319 summary: List video channels
2323 - $ref: '#/components/parameters/start'
2324 - $ref: '#/components/parameters/count'
2325 - $ref: '#/components/parameters/sort'
2328 description: successful operation
2332 $ref: '#/components/schemas/VideoChannelList'
2334 summary: Create a video channel
2341 description: successful operation
2346 $ref: '#/components/schemas/VideoChannelCreate'
2347 '/video-channels/{channelHandle}':
2349 summary: Get a video channel
2353 - $ref: '#/components/parameters/channelHandle'
2356 description: successful operation
2360 $ref: '#/components/schemas/VideoChannel'
2362 summary: Update a video channel
2368 - $ref: '#/components/parameters/channelHandle'
2371 description: successful operation
2376 $ref: '#/components/schemas/VideoChannelUpdate'
2378 summary: Delete a video channel
2384 - $ref: '#/components/parameters/channelHandle'
2387 description: successful operation
2388 '/video-channels/{channelHandle}/videos':
2390 summary: List videos of a video channel
2395 - $ref: '#/components/parameters/channelHandle'
2396 - $ref: '#/components/parameters/categoryOneOf'
2397 - $ref: '#/components/parameters/isLive'
2398 - $ref: '#/components/parameters/tagsOneOf'
2399 - $ref: '#/components/parameters/tagsAllOf'
2400 - $ref: '#/components/parameters/licenceOneOf'
2401 - $ref: '#/components/parameters/languageOneOf'
2402 - $ref: '#/components/parameters/nsfw'
2403 - $ref: '#/components/parameters/filter'
2404 - $ref: '#/components/parameters/skipCount'
2405 - $ref: '#/components/parameters/start'
2406 - $ref: '#/components/parameters/count'
2407 - $ref: '#/components/parameters/videosSort'
2410 description: successful operation
2414 $ref: '#/components/schemas/VideoListResponse'
2415 '/video-channels/{channelHandle}/avatar/pick':
2417 summary: Update channel avatar
2423 - $ref: '#/components/parameters/channelHandle'
2426 description: successful operation
2433 $ref: '#/components/schemas/ActorImage'
2435 description: image file too large
2437 X-File-Maximum-Size:
2441 description: Maximum file size for the avatar
2444 multipart/form-data:
2449 description: The file to upload.
2454 contentType: image/png, image/jpeg
2455 '/video-channels/{channelHandle}/avatar':
2457 summary: Delete channel avatar
2463 - $ref: '#/components/parameters/channelHandle'
2466 description: successful operation
2469 '/video-channels/{channelHandle}/banner/pick':
2471 summary: Update channel banner
2477 - $ref: '#/components/parameters/channelHandle'
2480 description: successful operation
2487 $ref: '#/components/schemas/ActorImage'
2489 description: image file too large
2491 X-File-Maximum-Size:
2495 description: Maximum file size for the banner
2498 multipart/form-data:
2503 description: The file to upload.
2508 contentType: image/png, image/jpeg
2509 '/video-channels/{channelHandle}/banner':
2511 summary: Delete channel banner
2517 - $ref: '#/components/parameters/channelHandle'
2520 description: successful operation
2522 /video-playlists/privacies:
2524 summary: List available playlist privacy policies
2525 operationId: getPlaylistPrivacyPolicies
2530 description: successful operation
2539 externalValue: https://peertube2.cpy.re/api/v1/video-playlists/privacies
2543 summary: List video playlists
2544 operationId: getPlaylists
2548 - $ref: '#/components/parameters/start'
2549 - $ref: '#/components/parameters/count'
2550 - $ref: '#/components/parameters/sort'
2553 description: successful operation
2565 $ref: '#/components/schemas/VideoPlaylist'
2567 summary: Create a video playlist
2568 description: If the video playlist is set as public, `videoChannelId` is mandatory.
2569 operationId: createPlaylist
2576 description: successful operation
2586 $ref: '#/components/schemas/VideoPlaylist/properties/id'
2588 $ref: '#/components/schemas/VideoPlaylist/properties/uuid'
2591 multipart/form-data:
2596 description: Video playlist display name
2601 description: Video playlist thumbnail file
2605 $ref: '#/components/schemas/VideoPlaylistPrivacySet'
2607 description: Video playlist description
2613 - $ref: '#/components/schemas/id'
2614 description: Video channel in which the playlist will be published
2619 contentType: image/jpeg
2621 /video-playlists/{id}:
2623 summary: Get a video playlist
2627 - $ref: '#/components/parameters/idOrUUID'
2630 description: successful operation
2634 $ref: '#/components/schemas/VideoPlaylist'
2636 summary: Update a video playlist
2637 description: 'If the video playlist is set as public, the playlist must have a assigned channel.'
2644 description: successful operation
2646 - $ref: '#/components/parameters/idOrUUID'
2649 multipart/form-data:
2654 description: Video playlist display name
2659 description: Video playlist thumbnail file
2663 $ref: '#/components/schemas/VideoPlaylistPrivacySet'
2665 description: Video playlist description
2669 - $ref: '#/components/schemas/id'
2670 description: Video channel in which the playlist will be published
2673 contentType: image/jpeg
2675 summary: Delete a video playlist
2681 - $ref: '#/components/parameters/idOrUUID'
2684 description: successful operation
2686 /video-playlists/{id}/videos:
2688 summary: 'List videos of a playlist'
2693 - $ref: '#/components/parameters/idOrUUID'
2696 description: successful operation
2700 $ref: '#/components/schemas/VideoListResponse'
2702 summary: 'Add a video in a playlist'
2709 - $ref: '#/components/parameters/idOrUUID'
2712 description: successful operation
2718 videoPlaylistElement:
2731 - $ref: '#/components/schemas/Video/properties/id'
2732 description: Video to add in the playlist
2735 description: Start the video at this specific timestamp (in seconds)
2738 description: Stop the video at this specific timestamp (in seconds)
2742 /video-playlists/{id}/videos/reorder:
2744 summary: 'Reorder a playlist'
2750 - $ref: '#/components/parameters/idOrUUID'
2753 description: successful operation
2762 description: 'Start position of the element to reorder'
2764 insertAfterPosition:
2766 description: 'New position for the block to reorder, to add the block before the first element'
2770 description: 'How many element from `startPosition` to reorder'
2774 - insertAfterPosition
2776 /video-playlists/{id}/videos/{playlistElementId}:
2778 summary: 'Update a playlist element'
2784 - $ref: '#/components/parameters/idOrUUID'
2785 - $ref: '#/components/parameters/playlistElementId'
2788 description: successful operation
2797 description: 'Start the video at this specific timestamp (in seconds)'
2800 description: 'Stop the video at this specific timestamp (in seconds)'
2802 summary: 'Delete an element from a playlist'
2808 - $ref: '#/components/parameters/idOrUUID'
2809 - $ref: '#/components/parameters/playlistElementId'
2812 description: successful operation
2814 '/users/me/video-playlists/videos-exist':
2816 summary: 'Check video exists in my playlists'
2825 description: The video ids to check
2829 $ref: '#/components/schemas/Video/properties/id'
2832 description: successful operation
2852 '/accounts/{name}/video-channels':
2854 summary: List video channels of an account
2859 - $ref: '#/components/parameters/name'
2862 description: include view statistics for the last 30 days (only if authentified as the account user)
2865 - $ref: '#/components/parameters/start'
2866 - $ref: '#/components/parameters/count'
2867 - $ref: '#/components/parameters/sort'
2870 description: successful operation
2874 $ref: '#/components/schemas/VideoChannelList'
2875 '/accounts/{name}/ratings':
2877 summary: List ratings of an account
2883 - $ref: '#/components/parameters/name'
2884 - $ref: '#/components/parameters/start'
2885 - $ref: '#/components/parameters/count'
2886 - $ref: '#/components/parameters/sort'
2890 description: Optionally filter which ratings to retrieve
2898 description: successful operation
2904 $ref: '#/components/schemas/VideoRating'
2905 '/videos/{id}/comment-threads':
2907 summary: List threads of a video
2911 - $ref: '#/components/parameters/idOrUUID'
2912 - $ref: '#/components/parameters/start'
2913 - $ref: '#/components/parameters/count'
2914 - $ref: '#/components/parameters/commentsSort'
2917 description: successful operation
2921 $ref: '#/components/schemas/CommentThreadResponse'
2923 summary: Create a thread
2929 - $ref: '#/components/parameters/idOrUUID'
2932 description: successful operation
2936 $ref: '#/components/schemas/CommentThreadPostResponse'
2938 description: video does not exist
2947 description: 'Text comment'
2951 '/videos/{id}/comment-threads/{threadId}':
2953 summary: Get a thread
2957 - $ref: '#/components/parameters/idOrUUID'
2958 - $ref: '#/components/parameters/threadId'
2961 description: successful operation
2965 $ref: '#/components/schemas/VideoCommentThreadTree'
2966 '/videos/{id}/comments/{commentId}':
2968 summary: Reply to a thread of a video
2974 - $ref: '#/components/parameters/idOrUUID'
2975 - $ref: '#/components/parameters/commentId'
2978 description: successful operation
2982 $ref: '#/components/schemas/CommentThreadPostResponse'
2984 description: thread or video does not exist
2992 $ref: '#/components/schemas/VideoComment/properties/text'
2997 summary: Delete a comment or a reply
3003 - $ref: '#/components/parameters/idOrUUID'
3004 - $ref: '#/components/parameters/commentId'
3007 description: successful operation
3009 description: cannot remove comment of another user
3011 description: comment or video does not exist
3013 description: comment is already deleted
3014 '/videos/{id}/rate':
3016 summary: Like/dislike a video
3022 - $ref: '#/components/parameters/idOrUUID'
3025 description: successful operation
3027 description: video does not exist
3032 summary: Search videos
3037 allowEmptyValue: false
3039 String to search. If the user can make a remote URI search, and the string is an URI then the
3040 PeerTube instance will fetch the remote object and add it to its database. Then,
3041 you can use the REST API to fetch the complete video information and interact with it.
3044 - $ref: '#/components/parameters/categoryOneOf'
3045 - $ref: '#/components/parameters/isLive'
3046 - $ref: '#/components/parameters/tagsOneOf'
3047 - $ref: '#/components/parameters/tagsAllOf'
3048 - $ref: '#/components/parameters/licenceOneOf'
3049 - $ref: '#/components/parameters/languageOneOf'
3050 - $ref: '#/components/parameters/nsfw'
3051 - $ref: '#/components/parameters/filter'
3052 - $ref: '#/components/parameters/skipCount'
3053 - $ref: '#/components/parameters/start'
3054 - $ref: '#/components/parameters/count'
3055 - $ref: '#/components/parameters/searchTarget'
3056 - $ref: '#/components/parameters/videosSearchSort'
3059 description: Get videos that are published after this date
3065 description: Get videos that are published before this date
3069 - name: originallyPublishedStartDate
3071 description: Get videos that are originally published after this date
3075 - name: originallyPublishedEndDate
3077 description: Get videos that are originally published before this date
3083 description: Get videos that have this minimum duration
3088 description: Get videos that have this maximum duration
3092 'searchTarget === search-index':
3093 $ref: '#/components/callbacks/searchIndex'
3096 description: successful operation
3100 $ref: '#/components/schemas/VideoListResponse'
3102 description: search index unavailable
3103 /search/video-channels:
3107 summary: Search channels
3113 String to search. If the user can make a remote URI search, and the string is an URI then the
3114 PeerTube instance will fetch the remote object and add it to its database. Then,
3115 you can use the REST API to fetch the complete channel information and interact with it.
3118 - $ref: '#/components/parameters/start'
3119 - $ref: '#/components/parameters/count'
3120 - $ref: '#/components/parameters/searchTarget'
3121 - $ref: '#/components/parameters/sort'
3123 'searchTarget === search-index':
3124 $ref: '#/components/callbacks/searchIndex'
3127 description: successful operation
3131 $ref: '#/components/schemas/VideoChannelList'
3133 description: search index unavailable
3134 /blocklist/accounts:
3138 summary: List account blocks
3143 - $ref: '#/components/parameters/start'
3144 - $ref: '#/components/parameters/count'
3145 - $ref: '#/components/parameters/sort'
3148 description: successful operation
3152 summary: Block an account
3164 example: chocobozzz@example.org
3165 description: account to block, in the form `username@domain`
3170 description: successful operation
3172 description: self-blocking forbidden
3173 '/blocklist/accounts/{accountName}':
3177 summary: Unblock an account by its handle
3185 description: account to unblock, in the form `username@domain`
3190 description: successful operation
3192 description: account or account block does not exist
3197 summary: List server blocks
3202 - $ref: '#/components/parameters/start'
3203 - $ref: '#/components/parameters/count'
3204 - $ref: '#/components/parameters/sort'
3207 description: successful operation
3211 summary: Block a server
3224 description: server domain to block
3229 description: successful operation
3231 description: self-blocking forbidden
3232 '/blocklist/servers/{host}':
3236 summary: Unblock a server by its domain
3244 description: server domain to unblock
3250 description: successful operation
3252 description: account block does not exist
3256 - Instance Redundancy
3257 summary: Update a server redundancy policy
3265 description: server domain to mirror
3277 description: allow mirroring of the host's local videos
3282 description: successful operation
3284 description: server is not already known
3289 summary: List videos being mirrored
3297 description: direction of the mirror
3303 - $ref: '#/components/parameters/start'
3304 - $ref: '#/components/parameters/count'
3305 - $ref: '#/components/parameters/videoRedundanciesSort'
3308 description: successful operation
3314 $ref: '#/components/schemas/VideoRedundancy'
3318 summary: Mirror a video
3329 $ref: '#/components/schemas/Video/properties/id'
3334 description: successful operation
3336 description: cannot mirror a local video
3338 description: video does not exist
3340 description: video is already mirrored
3341 /redundancy/videos/{redundancyId}:
3345 summary: Delete a mirror done on a video
3350 - name: redundancyId
3353 description: id of an existing redundancy on a video
3358 description: successful operation
3360 description: video redundancy not found
3361 '/feeds/video-comments.{format}':
3365 summary: List comments on videos
3370 description: 'format expected (we focus on making `rss` the most featureful ; it serves [Media RSS](https://www.rssboard.org/media-rss))'
3383 description: 'limit listing to a specific video'
3388 description: 'limit listing to a specific account'
3393 description: 'limit listing to a specific account'
3396 - name: videoChannelId
3398 description: 'limit listing to a specific video channel'
3401 - name: videoChannelName
3403 description: 'limit listing to a specific video channel'
3408 description: successful operation
3413 default: 'max-age=900' # 15 min cache
3417 $ref: '#/components/schemas/VideoCommentsForXML'
3420 externalValue: https://peertube2.cpy.re/feeds/video-comments.xml?filter=local
3421 application/rss+xml:
3423 $ref: '#/components/schemas/VideoCommentsForXML'
3426 externalValue: https://peertube2.cpy.re/feeds/video-comments.rss?filter=local
3429 $ref: '#/components/schemas/VideoCommentsForXML'
3432 externalValue: https://peertube2.cpy.re/feeds/video-comments.xml?filter=local
3433 application/atom+xml:
3435 $ref: '#/components/schemas/VideoCommentsForXML'
3438 externalValue: https://peertube2.cpy.re/feeds/video-comments.atom?filter=local
3444 externalValue: https://peertube2.cpy.re/feeds/video-comments.json?filter=local
3446 x-summary: field inconsistencies
3449 - videoId filter is mixed with a channel filter
3451 description: video, video channel or account not found
3453 description: accept header unsupported
3454 '/feeds/videos.{format}':
3458 summary: List videos
3463 description: 'format expected (we focus on making `rss` the most featureful ; it serves [Media RSS](https://www.rssboard.org/media-rss))'
3476 description: 'limit listing to a specific account'
3481 description: 'limit listing to a specific account'
3484 - name: videoChannelId
3486 description: 'limit listing to a specific video channel'
3489 - name: videoChannelName
3491 description: 'limit listing to a specific video channel'
3494 - $ref: '#/components/parameters/sort'
3495 - $ref: '#/components/parameters/nsfw'
3496 - $ref: '#/components/parameters/filter'
3499 description: successful operation
3504 default: 'max-age=900' # 15 min cache
3508 $ref: '#/components/schemas/VideosForXML'
3511 externalValue: https://peertube2.cpy.re/feeds/videos.xml?filter=local
3512 application/rss+xml:
3514 $ref: '#/components/schemas/VideosForXML'
3517 externalValue: https://peertube2.cpy.re/feeds/videos.rss?filter=local
3520 $ref: '#/components/schemas/VideosForXML'
3523 externalValue: https://peertube2.cpy.re/feeds/videos.xml?filter=local
3524 application/atom+xml:
3526 $ref: '#/components/schemas/VideosForXML'
3529 externalValue: https://peertube2.cpy.re/feeds/videos.atom?filter=local
3535 externalValue: https://peertube2.cpy.re/feeds/videos.json?filter=local
3537 description: video channel or account not found
3539 description: accept header unsupported
3540 '/feeds/subscriptions.{format}':
3545 summary: List videos of subscriptions tied to a token
3550 description: 'format expected (we focus on making `rss` the most featureful ; it serves [Media RSS](https://www.rssboard.org/media-rss))'
3563 description: limit listing to a specific account
3569 description: private token allowing access
3573 - $ref: '#/components/parameters/sort'
3574 - $ref: '#/components/parameters/nsfw'
3575 - $ref: '#/components/parameters/filter'
3578 description: successful operation
3583 default: 'max-age=900' # 15 min cache
3587 $ref: '#/components/schemas/VideosForXML'
3588 application/rss+xml:
3590 $ref: '#/components/schemas/VideosForXML'
3593 $ref: '#/components/schemas/VideosForXML'
3594 application/atom+xml:
3596 $ref: '#/components/schemas/VideosForXML'
3601 description: accept header unsupported
3606 summary: List plugins
3619 - $ref: '#/components/parameters/start'
3620 - $ref: '#/components/parameters/count'
3621 - $ref: '#/components/parameters/sort'
3624 description: successful operation
3628 $ref: '#/components/schemas/PluginResponse'
3633 summary: List available plugins
3646 - name: currentPeerTubeEngine
3650 - $ref: '#/components/parameters/start'
3651 - $ref: '#/components/parameters/count'
3652 - $ref: '#/components/parameters/sort'
3655 description: successful operation
3659 $ref: '#/components/schemas/PluginResponse'
3661 description: plugin index unavailable
3666 summary: Install a plugin
3679 example: peertube-plugin-auth-ldap
3682 additionalProperties: false
3689 additionalProperties: false
3692 description: successful operation
3694 description: should have either `npmName` or `path` set
3699 summary: Update a plugin
3712 example: peertube-plugin-auth-ldap
3715 additionalProperties: false
3722 additionalProperties: false
3725 description: successful operation
3727 description: should have either `npmName` or `path` set
3729 description: existing plugin not found
3734 summary: Uninstall a plugin
3746 description: name of the plugin/theme in its package.json
3747 example: peertube-plugin-auth-ldap
3752 description: successful operation
3754 description: existing plugin not found
3759 summary: Get a plugin
3764 - $ref: '#/components/parameters/npmName'
3767 description: successful operation
3771 $ref: '#/components/schemas/Plugin'
3773 description: plugin not found
3774 /plugins/{npmName}/settings:
3778 summary: Set a plugin's settings
3783 - $ref: '#/components/parameters/npmName'
3792 additionalProperties: true
3795 description: successful operation
3797 description: plugin not found
3798 /plugins/{npmName}/public-settings:
3802 summary: Get a plugin's public settings
3804 - $ref: '#/components/parameters/npmName'
3807 description: successful operation
3812 additionalProperties: true
3814 description: plugin not found
3815 /plugins/{npmName}/registered-settings:
3819 summary: Get a plugin's registered settings
3824 - $ref: '#/components/parameters/npmName'
3827 description: successful operation
3832 additionalProperties: true
3834 description: plugin not found
3836 - url: 'https://peertube2.cpy.re/api/v1'
3837 description: Live Test Server (live data - latest nightly version)
3838 - url: 'https://peertube3.cpy.re/api/v1'
3839 description: Live Test Server (live data - latest RC version)
3840 - url: 'https://peertube.cpy.re/api/v1'
3841 description: Live Test Server (live data - stable version)
3848 description: Offset used to paginate results
3856 description: "Number of items to return"
3866 description: Sort column
3874 description: Plain text search, applied to various parts of the model depending on endpoint
3882 If the administrator enabled search index support, you can override the default search target.
3885 **Warning**: If you choose to make an index search, PeerTube will get results from a third party service.
3886 It means the instance may not yet know the objects you fetched. If you want to load video/channel information:
3887 * If the current user has the ability to make a remote URI search (this information is available in the config endpoint),
3888 then reuse the search API to make a search using the object URI so PeerTube instance fetches the remote object and fill its database.
3889 After that, you can use the classic REST API endpoints to fetch the complete object or interact with it
3890 * If the current user doesn't have the ability to make a remote URI search, then redirect the user on the origin instance or fetch
3891 the data from the origin instance API
3901 description: Sort videos by criteria
3917 description: Sort videos by criteria
3932 description: Sort comments by criteria
3942 description: Sort blacklists by criteria
3958 description: Plain text search that will match with user usernames or emails
3965 description: Filter results down to (un)banned users
3972 description: Sort users by criteria
3983 description: Sort abuses by criteria
3990 videoRedundanciesSort:
3994 description: Sort abuses by criteria
4003 description: The username or handle of the account
4006 example: chocobozzz | chocobozzz@example.org
4011 description: The user id
4013 $ref: '#/components/schemas/id'
4018 description: The object id or uuid
4021 - $ref: '#/components/schemas/id'
4022 - $ref: '#/components/schemas/UUIDv4'
4024 name: playlistElementId
4027 description: Playlist element id
4029 $ref: '#/components/schemas/id'
4034 description: Abuse id
4036 $ref: '#/components/schemas/Abuse/properties/id'
4038 name: abuseMessageId
4041 description: Abuse message id
4043 $ref: '#/components/schemas/AbuseMessage/properties/id'
4045 name: captionLanguage
4048 description: The caption language
4050 $ref: '#/components/schemas/VideoLanguageSet'
4055 description: The video channel handle
4058 example: my_username | my_username@example.com
4060 name: subscriptionHandle
4063 description: The subscription handle
4066 example: my_username | my_username@example.com
4071 description: The thread id (root comment id)
4073 $ref: '#/components/schemas/VideoCommentThreadTree/properties/comment/properties/id'
4078 description: The comment id
4080 $ref: '#/components/schemas/VideoComment/properties/id'
4085 description: whether or not the video is a live
4092 description: category id of the video (see [/videos/categories](#operation/getCategories))
4095 - $ref: '#/components/schemas/VideoCategorySet'
4098 $ref: '#/components/schemas/VideoCategorySet'
4105 description: tag(s) of the video
4119 description: tag(s) of the video, where all should be present in the video
4132 description: language id of the video (see [/videos/languages](#operation/getLanguages)). Use `_unknown` to filter on videos that don't have a video language
4135 - $ref: '#/components/schemas/VideoLanguageSet'
4138 $ref: '#/components/schemas/VideoLanguageSet'
4145 description: licence id of the video (see [/videos/licences](#operation/getLicences))
4148 - $ref: '#/components/schemas/VideoLicenceSet'
4151 $ref: '#/components/schemas/VideoLicenceSet'
4158 description: if you don't need the `total` in the response
4169 description: whether to include nsfw videos, if any
4180 Special filters which might require special rights:
4181 * `local` - only videos local to the instance
4182 * `all-local` - only videos local to the instance, but showing private and unlisted videos (requires Admin privileges)
4183 * `all` - all videos, showing private and unlisted videos (requires Admin privileges)
4193 description: list of uris to check if each is part of the user subscriptions
4203 description: name of the plugin/theme on npmjs.com or in its package.json
4206 example: peertube-plugin-auth-ldap
4211 description: job type
4215 - activitypub-follow
4216 - activitypub-http-broadcast
4217 - activitypub-http-fetcher
4218 - activitypub-http-unicast
4224 - activitypub-refresher
4230 Authenticating via OAuth requires the following steps:
4231 - Have an activated account
4232 - [Generate](https://docs.joinpeertube.org/api-rest-getting-started) a
4233 Bearer Token for that account at `/api/v1/users/token`
4234 - Make authenticated requests, putting *Authorization: Bearer <token\>*
4235 - Profit, depending on the role assigned to the account
4237 Note that the __access token is valid for 1 day__ and, and is given
4238 along with a __refresh token valid for 2 weeks__.
4242 tokenUrl: 'https://peertube.example.com/api/v1/users/token'
4245 moderator: Moderator scope
4248 # Resuable core properties
4256 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4257 pattern: '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'
4262 description: The username of the user
4264 pattern: '/^[a-z0-9._]{1,50}$/'
4269 description: The username for the default channel
4270 example: The Capybara Channel
4271 pattern: '/^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\\-_.:]+$/'
4275 description: The password of the user
4281 description: category id of the video (see [/videos/categories](#operation/getCategories))
4283 VideoConstantNumber-Category:
4286 $ref: '#/components/schemas/VideoCategorySet'
4289 example: Science & Technology
4293 description: licence id of the video (see [/videos/licences](#operation/getLicences))
4295 VideoConstantNumber-Licence:
4298 $ref: '#/components/schemas/VideoLicenceSet'
4301 example: Attribution - Share Alike
4305 description: language id of the video (see [/videos/languages](#operation/getLanguages))
4307 VideoConstantString-Language:
4310 $ref: '#/components/schemas/VideoLanguageSet'
4315 VideoPlaylistPrivacySet:
4321 description: Video playlist privacy policy (see [/video-playlists/privacies])
4322 VideoPlaylistPrivacyConstant:
4325 $ref: '#/components/schemas/VideoPlaylistPrivacySet'
4329 VideoPlaylistTypeSet:
4334 description: The video playlist type (Regular = `1`, Watch Later = `2`)
4335 VideoPlaylistTypeConstant:
4338 $ref: '#/components/schemas/VideoPlaylistTypeSet'
4349 description: privacy id of the video (see [/videos/privacies](#operation/getPrivacyPolicies))
4350 VideoPrivacyConstant:
4353 $ref: '#/components/schemas/VideoPrivacySet'
4370 description: 'The user role (Admin = `0`, Moderator = `1`, User = `2`)'
4377 description: 'Admin flags for the user (None = `0`, Bypass video blacklist = `1`)'
4388 description: 'The video state (Published = `1`, to transcode = `2`, to import = `3`)'
4398 description: 'The abuse state (Pending = `1`, Rejected = `2`, Accepted = `3`)'
4402 $ref: '#/components/schemas/AbuseStateSet'
4405 AbusePredefinedReasons:
4418 example: [spamOrMisleading]
4423 Video resolution (`0`, `240`, `360`, `720`, `1080`, `1440` or `2160`)
4425 `0` is used as a special value for stillimage videos dedicated to audio, a.k.a. audio-only videos.
4427 VideoResolutionConstant:
4430 $ref: '#/components/schemas/VideoResolutionSet'
4434 VideoScheduledUpdate:
4437 $ref: '#/components/schemas/VideoPrivacySet'
4441 description: When to update the video
4461 - $ref: '#/components/schemas/ActorImage'
4462 VideoChannelSummary:
4465 $ref: '#/components/schemas/id'
4479 - $ref: '#/components/schemas/ActorImage'
4491 - $ref: '#/components/schemas/Video'
4497 $ref: '#/components/schemas/VideoResolutionConstant'
4500 description: 'Video file size in bytes'
4503 description: Direct URL of the torrent file
4507 description: URL endpoint that transfers the torrent file as an attachment (so that the browser opens a download dialog)
4511 description: Direct URL of the video
4515 description: URL endpoint that transfers the video file as an attachment (so that the browser opens a download dialog)
4522 VideoStreamingPlaylists:
4527 $ref: '#/components/schemas/id'
4535 - $ref: '#/components/schemas/VideoStreamingPlaylists-HLS'
4536 VideoStreamingPlaylists-HLS:
4547 Video files associated to this playlist.
4549 The difference with the root `files` property is that these files are fragmented, so they can be used in this streaming playlist (HLS, etc.)
4551 $ref: '#/components/schemas/VideoFile'
4563 $ref: '#/components/schemas/Video/properties/id'
4565 $ref: '#/components/schemas/Video/properties/uuid'
4567 $ref: '#/components/schemas/Video/properties/name'
4571 description: object id for the video
4573 - $ref: '#/components/schemas/id'
4575 description: universal identifier for the video, that can be used across instances
4577 - $ref: '#/components/schemas/UUIDv4'
4583 example: 2017-10-01T10:52:46.396Z
4584 description: time at which the video object was first drafted
4588 example: 2018-10-01T10:52:46.396Z
4589 description: time at which the video was marked as ready for playback (with restrictions depending on `privacy`). Usually set after a `state` evolution.
4593 example: 2021-05-04T08:01:01.502Z
4594 description: last time the video's metadata was modified
4595 originallyPublishedAt:
4598 example: 2010-10-01T10:52:46.396Z
4599 description: used to represent a date of first publication, prior to the practical publication date of `publishedAt`
4602 - $ref: '#/components/schemas/VideoConstantNumber-Category'
4603 description: category in which the video is classified
4606 - $ref: '#/components/schemas/VideoConstantNumber-Licence'
4607 description: licence under which the video is distributed
4610 - $ref: '#/components/schemas/VideoConstantString-Language'
4611 description: main language used in the video
4614 - $ref: '#/components/schemas/VideoPrivacyConstant'
4615 description: privacy policy used to distribute the video
4619 **[Want to help to translate this video?](https://weblate.framasoft.org/projects/what-is-peertube-video/)**\r\n\r\n
4620 **Take back the control of your videos! [#JoinPeertube](https://joinpeertube.org)**\r\n*A decentralized video hosting network, based on fr...
4624 truncated description of the video, written in Markdown.
4625 Resolve `descriptionPath` to get the full description of maximum `10000` characters.
4629 description: duration of the video in seconds
4634 description: title of the video
4635 example: What is PeerTube?
4640 example: /static/thumbnails/a65bc12f-9383-462e-81ae-8207e8b434ee.jpg
4643 example: /lazy-static/previews/a65bc12f-9383-462e-81ae-8207e8b434ee.jpg
4646 example: /videos/embed/a65bc12f-9383-462e-81ae-8207e8b434ee
4663 - $ref: '#/components/schemas/VideoStateConstant'
4664 description: represents the internal state of the video processing within the PeerTube instance
4668 - $ref: '#/components/schemas/VideoScheduledUpdate'
4676 $ref: '#/components/schemas/AccountSummary'
4678 $ref: '#/components/schemas/VideoChannelSummary'
4687 - $ref: '#/components/schemas/Video'
4692 example: /api/v1/videos/9c9de5e8-0a1e-484a-b099-e80766180a6d/description
4693 description: path at which to get the full description of maximum `10000` characters
4696 description: A text tell the audience how to support the video creator
4697 example: Please support my work on <insert crowdfunding plateform>! <3
4701 $ref: '#/components/schemas/VideoChannel'
4703 $ref: '#/components/schemas/Account'
4705 example: [flowers, gardening]
4725 $ref: '#/components/schemas/VideoFile'
4727 WebTorrent/raw video files. If WebTorrent is disabled on the server:
4729 - field will be empty
4730 - video files will be found in `streamingPlaylists[].files` field
4734 $ref: '#/components/schemas/VideoStreamingPlaylists'
4736 HLS playlists/manifest files. If HLS is disabled on the server:
4738 - field will be empty
4739 - video files will be found in `files` field
4740 FileRedundancyInformation:
4743 $ref: '#/components/schemas/id'
4768 $ref: '#/components/schemas/id'
4775 $ref: '#/components/schemas/UUIDv4'
4782 $ref: '#/components/schemas/FileRedundancyInformation'
4786 $ref: '#/components/schemas/FileRedundancyInformation'
4787 VideoImportStateConstant:
4795 description: 'The video import state (Pending = `1`, Success = `2`, Failed = `3`)'
4802 $ref: '#/components/schemas/id'
4806 example: https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d
4810 example: magnet:?xs=https%3A%2F%2Fframatube.org%2Fstatic%2Ftorrents%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.torrent&xt=urn:btih:38b4747ff788b30bf61f59d1965cd38f9e48e01f&dn=What+is+PeerTube%3F&tr=wss%3A%2F%2Fframatube.org%2Ftracker%2Fsocket&tr=https%3A%2F%2Fframatube.org%2Ftracker%2Fannounce&ws=https%3A%2F%2Fframatube.org%2Fstatic%2Fwebseed%2F9c9de5e8-0a1e-484a-b099-e80766180a6d-240.mp4
4814 $ref: '#/components/schemas/VideoImportStateConstant'
4824 $ref: '#/components/schemas/Video'
4834 $ref: '#/components/schemas/VideoImport'
4838 $ref: '#/components/schemas/id'
4841 example: The video is a spam
4845 $ref: '#/components/schemas/AbusePredefinedReasons'
4847 $ref: '#/components/schemas/Account'
4849 $ref: '#/components/schemas/AbuseStateConstant'
4852 example: Decided to ban the server since it spams us regularly
4856 $ref: '#/components/schemas/VideoInfo'
4863 $ref: '#/components/schemas/id'
4874 $ref: '#/components/schemas/AccountSummary'
4878 $ref: '#/components/schemas/id'
4880 $ref: '#/components/schemas/Video/properties/id'
4892 $ref: '#/components/schemas/UUIDv4'
4910 $ref: '#/components/schemas/id'
4912 $ref: '#/components/schemas/UUIDv4'
4935 $ref: '#/components/schemas/VideoPlaylistPrivacyConstant'
4937 $ref: '#/components/schemas/VideoPlaylistTypeConstant'
4939 $ref: '#/components/schemas/AccountSummary'
4941 $ref: '#/components/schemas/VideoChannelSummary'
4945 $ref: '#/components/schemas/id'
4951 description: Text of the comment in Markdown
4957 $ref: '#/components/schemas/id'
4959 $ref: '#/components/schemas/Video/properties/id'
4966 totalRepliesFromVideoAuthor:
4973 $ref: '#/components/schemas/Account'
4974 VideoCommentThreadTree:
4977 $ref: '#/components/schemas/VideoComment'
4981 $ref: '#/components/schemas/VideoCommentThreadTree'
4985 $ref: '#/components/schemas/VideoConstantString-Language'
5001 $ref: '#/components/schemas/id'
5018 $ref: '#/components/schemas/id'
5027 hostRedundancyAllowed:
5040 $ref: '#/components/schemas/ActorImage'
5043 - $ref: '#/components/schemas/Actor'
5046 $ref: '#/components/schemas/id'
5055 description: timestamp within the video, in seconds
5122 allowedForCurrentIP:
5124 requiresEmailVerification:
5142 $ref: '#/components/schemas/VideoResolutionSet'
5227 example: 16810141515
5330 requiresEmailVerification:
5345 description: Settings that apply to new users, if registration is enabled
5349 example: 16810141515
5355 description: Settings pertaining to transcoding jobs
5359 allowAdditionalExtensions:
5361 description: Allow your users to upload .mkv, .mov, .avi, .wmv, .flv, .f4v, .3g2, .3gp, .mts, m2ts, .mxf, .nut videos
5364 description: If a user uploads an audio file, PeerTube will create a video by merging the preview file and the audio file
5367 description: Amount of threads used by ffmpeg for 1 transcoding job
5370 description: Amount of transcoding jobs to execute in parallel
5376 New profiles can be added by plugins ; available in core PeerTube: 'default'.
5379 description: Resolutions to transcode _new videos_ to
5399 description: WebTorrent-specific settings
5405 description: HLS-specific settings
5449 $ref: '#/components/schemas/id'
5451 $ref: '#/components/schemas/Actor'
5453 $ref: '#/components/schemas/Actor'
5456 description: score reflecting the reachability of the actor, with steps of `10` and a base score of `1000`.
5469 PredefinedAbuseReasons:
5470 description: Reason categories that help triage reports
5488 $ref: '#/components/schemas/id'
5500 - activitypub-http-unicast
5501 - activitypub-http-broadcast
5502 - activitypub-http-fetcher
5503 - activitypub-follow
5509 - activitypub-refresher
5513 additionalProperties: true
5516 additionalProperties: true
5532 $ref: '#/components/schemas/id'
5537 $ref: '#/components/schemas/id'
5538 VideoUploadRequestCommon:
5541 description: Video name
5543 example: What is PeerTube?
5547 description: Channel id that will contain this video
5552 $ref: '#/components/schemas/VideoPrivacySet'
5554 $ref: '#/components/schemas/VideoCategorySet'
5556 $ref: '#/components/schemas/VideoLicenceSet'
5558 $ref: '#/components/schemas/VideoLanguageSet'
5560 description: Video description
5563 **[Want to help to translate this video?](https://weblate.framasoft.org/projects/what-is-peertube-video/)**\r\n\r\n**Take back the control of your videos! [#JoinPeertube](https://joinpeertube.org)**
5565 description: Whether or not we wait transcoding before publish the video
5568 description: A text tell the audience how to support the video creator
5569 example: Please support my work on <insert crowdfunding plateform>! <3
5572 description: Whether or not this video contains sensitive content
5575 description: Video tags (maximum 5 tags each between 2 and 30 characters)
5588 description: Enable or disable comments for this video
5591 description: Enable or disable downloading for this video
5593 originallyPublishedAt:
5594 description: Date when the content was originally published
5598 $ref: '#/components/schemas/VideoScheduledUpdate'
5600 description: Video thumbnail file
5604 description: Video preview file
5610 VideoUploadRequestLegacy:
5612 - $ref: '#/components/schemas/VideoUploadRequestCommon'
5618 description: Video file
5621 VideoUploadRequestResumable:
5623 - $ref: '#/components/schemas/VideoUploadRequestCommon'
5629 description: Video filename including extension
5632 example: what_is_peertube.mp4
5634 description: Video thumbnail file
5638 description: Video preview file
5641 VideoUploadResponse:
5647 $ref: '#/components/schemas/Video/properties/id'
5649 $ref: '#/components/schemas/Video/properties/uuid'
5650 CommentThreadResponse:
5659 $ref: '#/components/schemas/VideoComment'
5660 CommentThreadPostResponse:
5663 $ref: '#/components/schemas/VideoComment'
5673 $ref: '#/components/schemas/Video'
5677 $ref: '#/components/schemas/Account'
5680 description: Automatically start playing the upcoming video after the currently playing video
5681 autoPlayNextVideoPlaylist:
5683 description: Automatically start playing the video on the playlist after the currently playing video
5686 description: Automatically start playing the video on the watch page
5696 description: The user email
5699 description: Has the user confirmed their email address?
5705 description: Auth plugin to use to authenticate the user
5709 noInstanceConfigWarningModal:
5714 $ref: '#/components/schemas/NSFWPolicy'
5716 $ref: '#/components/schemas/UserRole'
5725 description: Theme enabled by this user
5727 $ref: '#/components/schemas/username'
5731 $ref: '#/components/schemas/VideoChannel'
5734 description: The user video quota in bytes
5738 description: The user daily video quota in bytes
5742 description: Enable P2P in the player
5745 - $ref: '#/components/schemas/User'
5747 # optionally present fields: they require WITH_STATS scope
5750 description: Count of videos published
5753 description: Count of reports/abuses of which the user is a target
5754 abusesAcceptedCount:
5756 description: Count of reports/abuses created by the user and accepted/acted upon by the moderation team
5759 description: Count of reports/abuses created by the user
5762 description: Count of comments published
5766 $ref: '#/components/schemas/username'
5768 $ref: '#/components/schemas/password'
5772 description: The user email
5775 description: The user video quota in bytes
5779 description: The user daily video quota in bytes
5782 $ref: '#/components/schemas/usernameChannel'
5784 $ref: '#/components/schemas/UserRole'
5786 $ref: '#/components/schemas/UserAdminFlags'
5799 description: The updated email of the user
5802 description: Set the email as verified
5805 description: The updated video quota of the user in bytes
5808 description: The updated daily video quota of the user in bytes
5812 description: The auth plugin to use to authenticate the user
5813 example: 'peertube-plugin-auth-saml2'
5815 $ref: '#/components/schemas/UserRole'
5817 $ref: '#/components/schemas/UserAdminFlags'
5821 $ref: '#/components/schemas/password'
5825 description: Your new email
5828 description: Your new displayNSFW
5835 description: Your new autoPlayVideo
5844 $ref: '#/components/schemas/id'
5851 description: Rating of the video
5858 $ref: '#/components/schemas/Video'
5865 description: Rating of the video
5872 $ref: '#/components/schemas/username'
5874 $ref: '#/components/schemas/password'
5878 description: The email of the user
5881 description: The user display name
5888 $ref: '#/components/schemas/usernameChannel'
5891 description: The display name for the default channel
5901 # GET/POST/PUT properties
5904 example: Videos of Framasoft
5909 example: Videos made with <3 by Framasoft
5914 description: text shown by default on all videos of this channel, to tell the audience how to support it
5915 example: Please support my work on <insert crowdfunding plateform>! <3
5918 # GET-only properties
5922 - $ref: '#/components/schemas/id'
5938 $ref: '#/components/schemas/UUIDv4'
5941 - $ref: '#/components/schemas/VideoChannel'
5944 description: username of the channel to create
5946 - $ref: '#/components/schemas/usernameChannel'
5952 - $ref: '#/components/schemas/VideoChannel'
5954 bulkVideosSupportUpdate:
5956 description: Update the support field for all videos of this channel
5966 - $ref: '#/components/schemas/VideoChannel'
5967 - $ref: '#/components/schemas/Actor'
5972 name: 'media:peerLink'
5981 - application/x-bittorrent
5987 name: 'media:content'
6018 VideoCommentsForXML:
6053 description: video watch page URL
6056 description: video canonical URL
6060 description: video publication date
6063 description: video description
6066 description: video description
6069 description: publisher user name
6072 description: video category (MRSS)
6075 description: see [media:community](https://www.rssboard.org/media-rss#media-community) (MRSS)
6090 description: video embed path, relative to the canonical URL domain (MRSS)
6099 description: video watch path, relative to the canonical URL domain (MRSS)
6120 description: see [media:title](https://www.rssboard.org/media-rss#media-title) (MRSS). We only use `plain` titles.
6121 'media:description':
6128 description: see [media:rating](https://www.rssboard.org/media-rss#media-rating) (MRSS)
6131 description: main streamable file for the video
6141 - application/x-bittorrent
6150 description: list of streamable files for the video. see [media:peerLink](https://www.rssboard.org/media-rss#media-peerlink) and [media:content](https://www.rssboard.org/media-rss#media-content) or (MRSS)
6153 - $ref: '#/components/schemas/MRSSPeerLink'
6154 - $ref: '#/components/schemas/MRSSGroupContent'
6155 NotificationSettingValue:
6172 $ref: '#/components/schemas/id'
6176 Notification type, following the `UserNotificationType` enum:
6178 - `1` NEW_VIDEO_FROM_SUBSCRIPTION
6180 - `2` NEW_COMMENT_ON_MY_VIDEO
6182 - `3` NEW_ABUSE_FOR_MODERATORS
6184 - `4` BLACKLIST_ON_MY_VIDEO
6186 - `5` UNBLACKLIST_ON_MY_VIDEO
6188 - `6` MY_VIDEO_PUBLISHED
6190 - `7` MY_VIDEO_IMPORT_SUCCESS
6192 - `8` MY_VIDEO_IMPORT_ERROR
6194 - `9` NEW_USER_REGISTRATION
6198 - `11` COMMENT_MENTION
6200 - `12` VIDEO_AUTO_BLACKLIST_FOR_MODERATORS
6202 - `13` NEW_INSTANCE_FOLLOWER
6204 - `14` AUTO_INSTANCE_FOLLOWING
6210 - $ref: '#/components/schemas/VideoInfo'
6214 $ref: '#/components/schemas/ActorInfo'
6220 $ref: '#/components/schemas/id'
6223 $ref: '#/components/schemas/VideoInfo'
6240 $ref: '#/components/schemas/id'
6244 $ref: '#/components/schemas/VideoInfo'
6246 $ref: '#/components/schemas/ActorInfo'
6252 $ref: '#/components/schemas/id'
6255 - $ref: '#/components/schemas/VideoInfo'
6261 $ref: '#/components/schemas/id'
6264 - $ref: '#/components/schemas/VideoInfo'
6268 - $ref: '#/components/schemas/ActorInfo'
6274 $ref: '#/components/schemas/id'
6276 $ref: '#/components/schemas/ActorInfo'
6304 NotificationListResponse:
6313 $ref: '#/components/schemas/Notification'
6318 example: peertube-plugin-auth-ldap
6346 example: https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-ldap
6349 additionalProperties: true
6365 $ref: '#/components/schemas/Plugin'
6372 description: User can stream multiple times in a permanent live
6381 description: RTMP stream key to use to stream into this live video
6385 description: User can stream multiple times in a permanent live
6392 'https://search.example.org/api/v1/search/videos':
6394 summary: third-party search index MAY be used instead of the local index, if enabled by the instance admin. see `searchTarget`
6397 description: successful operation
6401 $ref: '#/components/schemas/VideoListResponse'