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
17 The PeerTube API is built on HTTP(S) and is RESTful. You can use your favorite
18 HTTP/REST library for your programming language to use PeerTube. The spec API is fully compatible with
19 [openapi-generator](https://github.com/OpenAPITools/openapi-generator/wiki/API-client-generator-HOWTO)
20 which generates a client SDK in the language of your choice - we generate some client SDKs automatically:
22 - [Python](https://framagit.org/framasoft/peertube/clients/python)
23 - [Go](https://framagit.org/framasoft/peertube/clients/go)
24 - [Kotlin](https://framagit.org/framasoft/peertube/clients/kotlin)
26 See the [Quick Start guide](https://docs.joinpeertube.org/api-rest-getting-started) so you can play with the PeerTube API.
30 When you sign up for an account, you are given the possibility to generate
31 sessions, and authenticate using this session token. One session token can
32 currently be used at a time.
36 Accounts are given permissions based on their role. There are three roles on
37 PeerTube: Administrator, Moderator, and User. See the [roles guide](https://docs.joinpeertube.org/admin-managing-users?id=roles) for a detail of their permissions.
41 The API uses standard HTTP status codes to indicate the success or failure
42 of the API call. The body of the response will be JSON in the following
47 "code": "unauthorized_request", // example inner error code
48 "error": "Token is invalid." // example exposed error message
52 url: https://docs.joinpeertube.org/api-rest-reference.html
56 Accounts encompass remote accounts discovered across the federation,
57 and correspond to the main Actor, along with video channels a user can create, which
60 When a comment is posted, it is done with your Account's Actor.
63 Using some features of PeerTube require authentication, for which User
64 provide different levels of permission as well as associated user
65 information. Each user has a corresponding local Account for federation.
68 Operations related to your own User, when logged-in.
69 - name: My Subscriptions
71 Operations related to your subscriptions to video channels, their
72 new videos, and how to keep up to date with their latest publications!
75 Operations related to your watch history.
76 - name: My Notifications
78 Notifications following new videos, follows or reports. They allow you
79 to keep track of the interactions and overall important information that
80 concerns you. You MAY set per-notification type delivery preference, to
81 receive the info either by mail, by in-browser notification or both.
84 Each server exposes public information regarding supported videos and
88 Jobs are long-running tasks enqueued and processed by the instance
89 itself. No additional worker registration is currently available.
90 - name: Instance Follows
92 Managing servers which the instance interacts with is crucial to the
93 concept of federation in PeerTube and external video indexation. The PeerTube
94 server then deals with inter-server ActivityPub operations and propagates
95 information across its social graph by posting activities to actors' inbox
98 url: https://docs.joinpeertube.org/admin-following-instances?id=instances-follows
99 - name: Instance Redundancy
101 Redundancy is part of the inter-server solidarity that PeerTube fosters.
102 Manage the list of instances you wish to help by seeding their videos according
103 to the policy of video selection of your choice. Note that you have a similar functionality
104 to mirror individual videos, see `Video Mirroring`.
106 url: https://docs.joinpeertube.org/admin-following-instances?id=instances-redundancy
109 Managing plugins installed from a local path or from NPM, or search for new ones.
111 url: https://docs.joinpeertube.org/api-plugins
114 Abuses deal with reports of local or remote videos/comments/accounts alike.
117 Operations dealing with listing, uploading, fetching or modifying videos.
120 The search helps to find _videos_ or _channels_ from within the instance and beyond.
121 Videos from other instances federated by the instance (that is, instances
122 followed by the instance) can be found via keywords and other criteria of
125 Administrators can also enable the use of a remote search system, indexing
126 videos and channels not could be not federated by the instance.
127 - name: Video Comments
129 Operations dealing with comments to a video. Comments are organized in
131 - name: Video Playlists
133 Operations dealing with playlists of videos. Playlists are bound to users
135 - name: Video Channels
137 Operations dealing with the creation, modification and listing of videos within a channel.
140 Operations dealing with blocking videos (removing them from view and
141 preventing interactions).
144 Like/dislike a video.
147 Server syndication feeds
165 - Video Ownership Change
178 - name: Instance Configuration
182 - Instance Redundancy
192 summary: Get an account
194 - $ref: '#/components/parameters/name'
197 description: successful operation
201 $ref: '#/components/schemas/Account'
203 description: account not found
204 '/accounts/{name}/videos':
209 summary: 'List videos of an account'
211 - $ref: '#/components/parameters/name'
212 - $ref: '#/components/parameters/categoryOneOf'
213 - $ref: '#/components/parameters/tagsOneOf'
214 - $ref: '#/components/parameters/tagsAllOf'
215 - $ref: '#/components/parameters/licenceOneOf'
216 - $ref: '#/components/parameters/languageOneOf'
217 - $ref: '#/components/parameters/nsfw'
218 - $ref: '#/components/parameters/filter'
219 - $ref: '#/components/parameters/skipCount'
220 - $ref: '#/components/parameters/start'
221 - $ref: '#/components/parameters/count'
222 - $ref: '#/components/parameters/videosSort'
225 description: successful operation
229 $ref: '#/components/schemas/VideoListResponse'
233 fetch('https://peertube2.cpy.re/api/v1/accounts/{name}/videos')
234 .then(function(response) {
235 return response.json()
236 }).then(function(data) {
242 curl -s https://peertube2.cpy.re/api/v1/accounts/{name}/videos | jq
248 uri = URI.parse("https://peertube2.cpy.re/api/v1/accounts/{name}/videos")
250 http = Net::HTTP.new(uri.host, uri.port)
253 response = http.get(uri.request_uri)
255 puts JSON.parse(response.read_body)
260 r = requests.get("https://peertube2.cpy.re/api/v1//accounts/{name}/videos")
268 summary: List accounts
270 - $ref: '#/components/parameters/start'
271 - $ref: '#/components/parameters/count'
272 - $ref: '#/components/parameters/sort'
275 description: successful operation
281 $ref: '#/components/schemas/Account'
286 summary: Get instance public configuration
289 description: successful operation
293 $ref: '#/components/schemas/ServerConfig'
296 summary: Get instance "About" information
301 description: successful operation
305 $ref: '#/components/schemas/ServerConfigAbout'
308 summary: Get instance runtime configuration
316 description: successful operation
320 $ref: '#/components/schemas/ServerConfigCustom'
322 summary: Set instance runtime configuration
330 description: successful operation
332 x-summary: field inconsistencies
335 - the emailer is disabled and the instance is open to registrations
336 - webtorrent and hls are disabled with transcoding enabled - you need at least one enabled
338 summary: Delete instance runtime configuration
346 description: successful operation
349 summary: List instance jobs
359 description: The state of the job ('' for for no filter)
369 - $ref: '#/components/parameters/jobType'
370 - $ref: '#/components/parameters/start'
371 - $ref: '#/components/parameters/count'
372 - $ref: '#/components/parameters/sort'
375 description: successful operation
388 $ref: '#/components/schemas/Job'
389 '/server/following/{host}':
396 summary: Unfollow a server
401 description: 'The host to unfollow '
407 description: successful operation
412 summary: List instance followers
414 - $ref: '#/components/parameters/start'
415 - $ref: '#/components/parameters/count'
416 - $ref: '#/components/parameters/sort'
419 description: successful operation
425 $ref: '#/components/schemas/Follow'
430 summary: List instances followed by the server
449 - $ref: '#/components/parameters/start'
450 - $ref: '#/components/parameters/count'
451 - $ref: '#/components/parameters/sort'
454 description: successful operation
460 $ref: '#/components/schemas/Follow'
467 summary: Follow a server
470 description: successful operation
472 description: cannot follow a non-HTTPS server
487 summary: Create a user
495 description: user created
499 $ref: '#/components/schemas/AddUserResponse'
503 operationId: getUserId
505 id: '$response.body#/user/id'
508 operationId: putUserId
510 id: '$response.body#/user/id'
513 operationId: delUserId
515 id: '$response.body#/user/id'
517 description: insufficient authority to create an admin or moderator
522 $ref: '#/components/schemas/AddUser'
523 description: User to create
533 - $ref: '#/components/parameters/usersSearch'
534 - $ref: '#/components/parameters/usersBlocked'
535 - $ref: '#/components/parameters/start'
536 - $ref: '#/components/parameters/count'
537 - $ref: '#/components/parameters/usersSort'
540 description: successful operation
546 $ref: '#/components/schemas/User'
549 - $ref: '#/components/parameters/id'
551 summary: Delete a user
557 operationId: delUserId
560 description: successful operation
567 operationId: getUserId
570 description: successful operation
574 $ref: '#/components/schemas/User'
576 summary: Update a user
581 operationId: putUserId
584 description: successful operation
589 $ref: '#/components/schemas/UpdateUser'
593 summary: Register a user
598 description: successful operation
603 $ref: '#/components/schemas/RegisterUser'
607 summary: Get my user information
615 description: successful operation
621 $ref: '#/components/schemas/User'
623 summary: Update my user information
631 description: successful operation
636 $ref: '#/components/schemas/UpdateMe'
638 /users/me/videos/imports:
640 summary: Get video imports of my user
648 - $ref: '#/components/parameters/start'
649 - $ref: '#/components/parameters/count'
650 - $ref: '#/components/parameters/sort'
653 description: successful operation
657 $ref: '#/components/schemas/VideoImport'
658 /users/me/video-quota-used:
660 summary: Get my user used quota
668 description: successful operation
673 '/users/me/videos/{videoId}/rating':
675 summary: Get rate of my user for a video
685 description: 'The video id '
690 description: successful operation
694 $ref: '#/components/schemas/GetMeVideoRating'
697 summary: Get videos of my user
705 - $ref: '#/components/parameters/start'
706 - $ref: '#/components/parameters/count'
707 - $ref: '#/components/parameters/sort'
710 description: successful operation
714 $ref: '#/components/schemas/VideoListResponse'
715 /users/me/subscriptions:
717 summary: Get my user subscriptions
724 - $ref: '#/components/parameters/start'
725 - $ref: '#/components/parameters/count'
726 - $ref: '#/components/parameters/sort'
729 description: successful operation
733 summary: Add subscription to my user
746 description: uri of the video channels to subscribe to
752 uri: 008a0e54-375d-49d0-8379-143202e24152@video.lqdn.fr
755 description: successful operation
756 /users/me/subscriptions/exist:
758 summary: Get if subscriptions exist for my user
765 - $ref: '#/components/parameters/subscriptionsUris'
768 description: successful operation
773 /users/me/subscriptions/videos:
775 summary: List videos of subscriptions of my user
783 - $ref: '#/components/parameters/categoryOneOf'
784 - $ref: '#/components/parameters/tagsOneOf'
785 - $ref: '#/components/parameters/tagsAllOf'
786 - $ref: '#/components/parameters/licenceOneOf'
787 - $ref: '#/components/parameters/languageOneOf'
788 - $ref: '#/components/parameters/nsfw'
789 - $ref: '#/components/parameters/filter'
790 - $ref: '#/components/parameters/skipCount'
791 - $ref: '#/components/parameters/start'
792 - $ref: '#/components/parameters/count'
793 - $ref: '#/components/parameters/videosSort'
796 description: successful operation
800 $ref: '#/components/schemas/VideoListResponse'
801 '/users/me/subscriptions/{subscriptionHandle}':
803 summary: Get subscription of my user
810 - $ref: '#/components/parameters/subscriptionHandle'
813 description: successful operation
817 $ref: '#/components/schemas/VideoChannel'
819 summary: Delete subscription of my user
826 - $ref: '#/components/parameters/subscriptionHandle'
829 description: successful operation
830 /users/me/notifications:
832 summary: List my notifications
840 description: only list unread notifications
843 - $ref: '#/components/parameters/start'
844 - $ref: '#/components/parameters/count'
845 - $ref: '#/components/parameters/sort'
848 description: successful operation
852 $ref: '#/components/schemas/NotificationListResponse'
853 /users/me/notifications/read:
855 summary: Mark notifications as read by their id
868 description: ids of the notifications to mark as read
875 description: successful operation
876 /users/me/notifications/read-all:
878 summary: Mark all my notification as read
885 description: successful operation
886 /users/me/notification-settings:
888 summary: Update my notification settings
899 newVideoFromSubscription:
900 $ref: '#/components/schemas/NotificationSettingValue'
902 $ref: '#/components/schemas/NotificationSettingValue'
904 $ref: '#/components/schemas/NotificationSettingValue'
905 videoAutoBlacklistAsModerator:
906 $ref: '#/components/schemas/NotificationSettingValue'
908 $ref: '#/components/schemas/NotificationSettingValue'
910 $ref: '#/components/schemas/NotificationSettingValue'
911 myVideoImportFinished:
912 $ref: '#/components/schemas/NotificationSettingValue'
914 $ref: '#/components/schemas/NotificationSettingValue'
916 $ref: '#/components/schemas/NotificationSettingValue'
918 $ref: '#/components/schemas/NotificationSettingValue'
920 $ref: '#/components/schemas/NotificationSettingValue'
921 autoInstanceFollowing:
922 $ref: '#/components/schemas/NotificationSettingValue'
925 description: successful operation
926 /users/me/history/videos:
928 summary: List watched videos history
934 - $ref: '#/components/parameters/start'
935 - $ref: '#/components/parameters/count'
936 - $ref: '#/components/parameters/search'
939 description: successful operation
943 $ref: '#/components/schemas/VideoListResponse'
944 /users/me/history/videos/remove:
946 summary: Clear video history
958 description: history before this date will be deleted
963 description: successful operation
964 /users/me/avatar/pick:
966 summary: Update my user avatar
973 description: successful operation
977 $ref: '#/components/schemas/Avatar'
979 description: image file too large
985 description: Maximum file size for the avatar
993 description: The file to upload.
998 contentType: image/png, image/jpeg
1001 summary: List video ownership changes
1003 - Video Ownership Change
1008 description: successful operation
1009 '/videos/ownership/{id}/accept':
1011 summary: Accept ownership change request
1013 - Video Ownership Change
1017 - $ref: '#/components/parameters/idOrUUID'
1020 description: successful operation
1022 description: cannot terminate an ownership change of another user
1024 description: video owneship change not found
1025 '/videos/ownership/{id}/refuse':
1027 summary: Refuse ownership change request
1029 - Video Ownership Change
1033 - $ref: '#/components/parameters/idOrUUID'
1036 description: successful operation
1038 description: cannot terminate an ownership change of another user
1040 description: video owneship change not found
1041 '/videos/{id}/give-ownership':
1043 summary: Request ownership change
1045 - Video Ownership Change
1049 - $ref: '#/components/parameters/idOrUUID'
1053 application/x-www-form-urlencoded:
1063 description: successful operation
1065 description: changing video ownership to a remote account is not supported yet
1067 description: video not found
1070 summary: List videos
1074 - $ref: '#/components/parameters/categoryOneOf'
1075 - $ref: '#/components/parameters/tagsOneOf'
1076 - $ref: '#/components/parameters/tagsAllOf'
1077 - $ref: '#/components/parameters/licenceOneOf'
1078 - $ref: '#/components/parameters/languageOneOf'
1079 - $ref: '#/components/parameters/nsfw'
1080 - $ref: '#/components/parameters/filter'
1081 - $ref: '#/components/parameters/skipCount'
1082 - $ref: '#/components/parameters/start'
1083 - $ref: '#/components/parameters/count'
1084 - $ref: '#/components/parameters/videosSort'
1087 description: successful operation
1091 $ref: '#/components/schemas/VideoListResponse'
1094 summary: List available video categories
1099 description: successful operation
1108 externalValue: https://peertube2.cpy.re/api/v1/videos/categories
1111 summary: List available video licences
1116 description: successful operation
1125 externalValue: https://peertube2.cpy.re/api/v1/videos/licences
1128 summary: List available video languages
1133 description: successful operation
1142 externalValue: https://peertube2.cpy.re/api/v1/videos/languages
1145 summary: List available video privacies
1150 description: successful operation
1159 externalValue: https://peertube2.cpy.re/api/v1/videos/privacies
1162 summary: Update a video
1168 - $ref: '#/components/parameters/idOrUUID'
1171 description: successful operation
1174 multipart/form-data:
1179 description: Video thumbnail file
1183 description: Video preview file
1187 description: Video category
1191 description: Video licence
1195 description: Video language
1198 $ref: '#/components/schemas/VideoPrivacySet'
1200 description: Video description
1203 description: Whether or not we wait transcoding before publish the video
1206 description: A text tell the audience how to support the video creator
1207 example: Please support my work on <insert crowdfunding plateform>! <3
1210 description: Whether or not this video contains sensitive content
1213 description: Video name
1216 description: Video tags (maximum 5 tags each between 2 and 30 characters)
1225 description: Enable or disable comments for this video
1227 originallyPublishedAt:
1228 description: Date when the content was originally published
1232 $ref: '#/components/schemas/VideoScheduledUpdate'
1235 contentType: image/jpeg
1237 contentType: image/jpeg
1239 summary: Get a video
1243 - $ref: '#/components/parameters/idOrUUID'
1246 description: successful operation
1250 $ref: '#/components/schemas/VideoDetails'
1252 summary: Delete a video
1258 - $ref: '#/components/parameters/idOrUUID'
1261 description: successful operation
1262 '/videos/{id}/description':
1264 summary: Get complete video description
1268 - $ref: '#/components/parameters/idOrUUID'
1271 description: successful operation
1276 '/videos/{id}/views':
1278 summary: Add a view to a video
1282 - $ref: '#/components/parameters/idOrUUID'
1285 description: successful operation
1286 '/videos/{id}/watching':
1288 summary: Set watching progress of a video
1294 - $ref: '#/components/parameters/idOrUUID'
1299 $ref: '#/components/schemas/UserWatchingVideo'
1303 description: successful operation
1306 summary: Upload a video
1313 description: successful operation
1317 $ref: '#/components/schemas/VideoUploadResponse'
1319 description: invalid file field, schedule date or parameter
1321 description: video didn't pass upload filter
1323 description: upload has timed out
1325 description: video file too large, due to quota or max body size limit set by the reverse-proxy
1327 X-File-Maximum-Size:
1331 description: Maximum file size for the video
1333 description: video type unsupported
1335 description: video unreadable
1338 multipart/form-data:
1343 description: Video file
1347 description: Channel id that will contain this video
1350 description: Video thumbnail file
1354 description: Video preview file
1358 $ref: '#/components/schemas/VideoPrivacySet'
1360 description: Video category
1364 description: Video licence
1368 description: Video language
1371 description: Video description
1374 description: Whether or not we wait transcoding before publish the video
1377 description: A text tell the audience how to support the video creator
1378 example: Please support my work on <insert crowdfunding plateform>! <3
1381 description: Whether or not this video contains sensitive content
1384 description: Video name
1387 description: Video tags (maximum 5 tags each between 2 and 30 characters)
1397 description: Enable or disable comments for this video
1400 description: Enable or disable downloading for this video
1402 originallyPublishedAt:
1403 description: Date when the content was originally published
1407 $ref: '#/components/schemas/VideoScheduledUpdate'
1414 contentType: video/mp4, video/webm, video/ogg, video/avi, video/quicktime, video/x-msvideo, video/x-flv, video/x-matroska, application/octet-stream
1416 contentType: image/jpeg
1418 contentType: image/jpeg
1423 USERNAME="<your_username>"
1424 PASSWORD="<your_password>"
1425 FILE_PATH="<your_file_path>"
1426 CHANNEL_ID="<your_channel_id>"
1429 API_PATH="https://peertube2.cpy.re/api/v1"
1431 client_id=$(curl -s "$API_PATH/oauth-clients/local" | jq -r ".client_id")
1432 client_secret=$(curl -s "$API_PATH/oauth-clients/local" | jq -r ".client_secret")
1433 token=$(curl -s "$API_PATH/users/token" \
1434 --data client_id="$client_id" \
1435 --data client_secret="$client_secret" \
1436 --data grant_type=password \
1437 --data response_type=code \
1438 --data username="$USERNAME" \
1439 --data password="$PASSWORD" \
1440 | jq -r ".access_token")
1442 curl -s "$API_PATH/videos/upload" \
1443 -H "Authorization: Bearer $token" \
1445 --form videofile=@"$FILE_PATH" \
1446 --form channelId=$CHANNEL_ID \
1450 summary: Import a video
1451 description: Import a torrent or magnetURI or HTTP resource (if enabled by the instance administrator)
1458 multipart/form-data:
1463 description: Torrent File
1467 description: HTTP target URL
1470 description: Magnet URI
1473 description: Channel id that will contain this video
1476 description: Video thumbnail file
1480 description: Video preview file
1484 $ref: '#/components/schemas/VideoPrivacySet'
1486 description: Video category
1490 description: Video licence
1494 description: Video language
1497 description: Video description
1500 description: Whether or not we wait transcoding before publish the video
1503 description: A text tell the audience how to support the video creator
1504 example: Please support my work on <insert crowdfunding plateform>! <3
1507 description: Whether or not this video contains sensitive content
1510 description: Video name
1513 description: Video tags (maximum 5 tags each between 2 and 30 characters)
1522 description: Enable or disable comments for this video
1525 description: Enable or disable downloading for this video
1528 $ref: '#/components/schemas/VideoScheduledUpdate'
1534 contentType: application/x-bittorrent
1536 contentType: image/jpeg
1538 contentType: image/jpeg
1541 description: successful operation
1545 $ref: '#/components/schemas/VideoUploadResponse'
1547 description: '`magnetUri` or `targetUrl` or a torrent file missing'
1549 description: video didn't pass pre-import filter
1551 description: HTTP or Torrent/magnetURI import not enabled
1555 summary: Create a live
1563 description: successful operation
1567 $ref: '#/components/schemas/VideoUploadResponse'
1569 description: Live is not enabled, allow replay is not enabled, or max instance/user live videos limit is exceeded
1572 multipart/form-data:
1577 description: Channel id that will contain this live video
1582 description: User can stream multiple times in a permanent live
1585 description: Live video/replay thumbnail file
1589 description: Live video/replay preview file
1593 $ref: '#/components/schemas/VideoPrivacySet'
1595 description: Live video/replay category
1598 description: Live video/replay licence
1601 description: Live video/replay language
1604 description: Live video/replay description
1607 description: A text tell the audience how to support the creator
1608 example: Please support my work on <insert crowdfunding plateform>! <3
1611 description: Whether or not this live video/replay contains sensitive content
1614 description: Live video/replay name
1617 description: Live video/replay tags (maximum 5 tags each between 2 and 30 characters)
1626 description: Enable or disable comments for this live video/replay
1629 description: Enable or disable downloading for the replay of this live
1636 contentType: image/jpeg
1638 contentType: image/jpeg
1642 summary: Get a live information
1649 - $ref: '#/components/parameters/idOrUUID'
1652 description: successful operation
1656 $ref: '#/components/schemas/LiveVideoResponse'
1658 summary: Update a live information
1665 - $ref: '#/components/parameters/idOrUUID'
1670 $ref: '#/components/schemas/LiveVideoUpdate'
1673 description: Successful operation
1675 description: Bad parameters or trying to update a live that has already started
1677 description: Trying to save replay of the live but saving replay is not enabled on the instance
1681 summary: List my abuses
1690 description: only list the report with this id
1696 $ref: '#/components/schemas/AbuseStateSet'
1697 - $ref: '#/components/parameters/start'
1698 - $ref: '#/components/parameters/count'
1699 - $ref: '#/components/parameters/abusesSort'
1702 description: successful operation
1708 $ref: '#/components/schemas/Abuse'
1712 summary: List abuses
1722 description: only list the report with this id
1725 - name: predefinedReason
1727 description: predefined reason the listed reports should contain
1729 $ref: '#/components/schemas/PredefinedAbuseReasons'
1732 description: plain search that will match with video titles, reporter names and more
1738 $ref: '#/components/schemas/AbuseStateSet'
1739 - name: searchReporter
1741 description: only list reports of a specific reporter
1744 - name: searchReportee
1745 description: only list reports of a specific reportee
1751 description: only list reports of a specific video
1754 - name: searchVideoChannel
1756 description: only list reports of a specific video channel
1761 description: only list blacklisted or deleted videos
1769 description: only list account, comment or video reports
1776 - $ref: '#/components/parameters/start'
1777 - $ref: '#/components/parameters/count'
1778 - $ref: '#/components/parameters/abusesSort'
1781 description: successful operation
1787 $ref: '#/components/schemas/Abuse'
1790 summary: Report an abuse
1803 description: Reason why the user reports this video
1807 $ref: '#/components/schemas/PredefinedAbuseReasons'
1813 description: Video id to report
1817 description: Timestamp in the video that marks the beginning of the report
1821 description: Timestamp in the video that marks the ending of the report
1827 description: Comment id to report
1833 description: Account id to report
1839 description: successful operation
1841 description: incorrect request parameters
1842 '/abuses/{abuseId}':
1844 summary: Update an abuse
1852 - $ref: '#/components/parameters/abuseId'
1860 $ref: '#/components/schemas/AbuseStateSet'
1863 description: Update the report comment visible only to the moderation team
1866 description: successful operation
1868 description: abuse not found
1872 summary: Delete an abuse
1878 - $ref: '#/components/parameters/abuseId'
1881 description: successful operation
1883 description: block not found
1884 '/abuses/{abuseId}/messages':
1886 summary: List messages of an abuse
1892 - $ref: '#/components/parameters/abuseId'
1895 description: successful operation
1901 $ref: '#/components/schemas/AbuseMessage'
1904 summary: Add message to an abuse
1910 - $ref: '#/components/parameters/abuseId'
1919 description: Message to send
1925 description: successful operation
1927 description: incorrect request parameters
1928 '/abuses/{abuseId}/messages/{abuseMessageId}':
1930 summary: Delete an abuse message
1936 - $ref: '#/components/parameters/abuseId'
1937 - $ref: '#/components/parameters/abuseMessageId'
1940 description: successful operation
1942 '/videos/{id}/blacklist':
1944 summary: Block a video
1952 - $ref: '#/components/parameters/idOrUUID'
1955 description: successful operation
1957 summary: Unblock a video by its id
1965 - $ref: '#/components/parameters/idOrUUID'
1968 description: successful operation
1970 description: block not found
1975 summary: List video blocks
1984 list only blocks that match this type:
1988 - `2`: automatic block that needs review
1996 description: plain search that will match with video titles, and more
1999 - $ref: '#/components/parameters/start'
2000 - $ref: '#/components/parameters/count'
2001 - $ref: '#/components/parameters/blacklistsSort'
2004 description: successful operation
2016 $ref: '#/components/schemas/VideoBlacklist'
2017 /videos/{id}/captions:
2019 summary: List captions of a video
2023 - $ref: '#/components/parameters/idOrUUID'
2026 description: successful operation
2038 $ref: '#/components/schemas/VideoCaption'
2039 /videos/{id}/captions/{captionLanguage}:
2041 summary: Add or replace a video caption
2048 - $ref: '#/components/parameters/idOrUUID'
2049 - $ref: '#/components/parameters/captionLanguage'
2052 multipart/form-data:
2057 description: The file to upload.
2062 contentType: text/vtt, application/x-subrip, text/plain
2065 description: successful operation
2067 description: video or language not found
2069 summary: Delete a video caption
2076 - $ref: '#/components/parameters/idOrUUID'
2077 - $ref: '#/components/parameters/captionLanguage'
2080 description: successful operation
2082 description: video or language or caption for that language not found
2085 summary: List video channels
2089 - $ref: '#/components/parameters/start'
2090 - $ref: '#/components/parameters/count'
2091 - $ref: '#/components/parameters/sort'
2094 description: successful operation
2106 $ref: '#/components/schemas/VideoChannel'
2108 summary: Create a video channel
2115 description: successful operation
2120 $ref: '#/components/schemas/VideoChannelCreate'
2121 '/video-channels/{channelHandle}':
2123 summary: Get a video channel
2127 - $ref: '#/components/parameters/channelHandle'
2130 description: successful operation
2134 $ref: '#/components/schemas/VideoChannel'
2136 summary: Update a video channel
2142 - $ref: '#/components/parameters/channelHandle'
2145 description: successful operation
2150 $ref: '#/components/schemas/VideoChannelUpdate'
2152 summary: Delete a video channel
2158 - $ref: '#/components/parameters/channelHandle'
2161 description: successful operation
2162 '/video-channels/{channelHandle}/videos':
2164 summary: List videos of a video channel
2169 - $ref: '#/components/parameters/channelHandle'
2170 - $ref: '#/components/parameters/categoryOneOf'
2171 - $ref: '#/components/parameters/tagsOneOf'
2172 - $ref: '#/components/parameters/tagsAllOf'
2173 - $ref: '#/components/parameters/licenceOneOf'
2174 - $ref: '#/components/parameters/languageOneOf'
2175 - $ref: '#/components/parameters/nsfw'
2176 - $ref: '#/components/parameters/filter'
2177 - $ref: '#/components/parameters/skipCount'
2178 - $ref: '#/components/parameters/start'
2179 - $ref: '#/components/parameters/count'
2180 - $ref: '#/components/parameters/videosSort'
2183 description: successful operation
2187 $ref: '#/components/schemas/VideoListResponse'
2189 /video-playlists/privacies:
2191 summary: List available playlist privacies
2196 description: successful operation
2205 externalValue: https://peertube2.cpy.re/api/v1/video-playlists/privacies
2209 summary: List video playlists
2213 - $ref: '#/components/parameters/start'
2214 - $ref: '#/components/parameters/count'
2215 - $ref: '#/components/parameters/sort'
2218 description: successful operation
2230 $ref: '#/components/schemas/VideoPlaylist'
2232 summary: Create a video playlist
2233 description: 'If the video playlist is set as public, the videoChannelId is mandatory.'
2240 description: successful operation
2255 multipart/form-data:
2260 description: Video playlist display name
2263 description: Video playlist thumbnail file
2267 $ref: '#/components/schemas/VideoPlaylistPrivacySet'
2269 description: Video playlist description
2272 description: Video channel in which the playlist will be published
2278 contentType: image/jpeg
2280 /video-playlists/{id}:
2282 summary: Get a video playlist
2286 - $ref: '#/components/parameters/idOrUUID'
2289 description: successful operation
2293 $ref: '#/components/schemas/VideoPlaylist'
2295 summary: Update a video playlist
2296 description: 'If the video playlist is set as public, the playlist must have a assigned channel.'
2303 description: successful operation
2305 - $ref: '#/components/parameters/idOrUUID'
2308 multipart/form-data:
2313 description: Video playlist display name
2316 description: Video playlist thumbnail file
2320 $ref: '#/components/schemas/VideoPlaylistPrivacySet'
2322 description: Video playlist description
2325 description: Video channel in which the playlist will be published
2329 contentType: image/jpeg
2331 summary: Delete a video playlist
2337 - $ref: '#/components/parameters/idOrUUID'
2340 description: successful operation
2342 /video-playlists/{id}/videos:
2344 summary: 'List videos of a playlist'
2349 - $ref: '#/components/parameters/idOrUUID'
2352 description: successful operation
2356 $ref: '#/components/schemas/VideoListResponse'
2358 summary: 'Add a video in a playlist'
2365 - $ref: '#/components/parameters/idOrUUID'
2368 description: successful operation
2374 videoPlaylistElement:
2387 description: 'Video to add in the playlist'
2390 description: 'Start the video at this specific timestamp (in seconds)'
2393 description: 'Stop the video at this specific timestamp (in seconds)'
2397 /video-playlists/{id}/videos/reorder:
2399 summary: 'Reorder a playlist'
2405 - $ref: '#/components/parameters/idOrUUID'
2408 description: successful operation
2417 description: 'Start position of the element to reorder'
2419 insertAfterPosition:
2421 description: 'New position for the block to reorder, to add the block before the first element'
2425 description: 'How many element from `startPosition` to reorder'
2429 - insertAfterPosition
2431 /video-playlists/{id}/videos/{playlistElementId}:
2433 summary: 'Update a playlist element'
2439 - $ref: '#/components/parameters/idOrUUID'
2440 - $ref: '#/components/parameters/playlistElementId'
2443 description: successful operation
2452 description: 'Start the video at this specific timestamp (in seconds)'
2455 description: 'Stop the video at this specific timestamp (in seconds)'
2457 summary: 'Delete an element from a playlist'
2463 - $ref: '#/components/parameters/idOrUUID'
2464 - $ref: '#/components/parameters/playlistElementId'
2467 description: successful operation
2469 '/users/me/video-playlists/videos-exist':
2471 summary: 'Check video exists in my playlists'
2480 description: The video ids to check
2487 description: successful operation
2507 '/accounts/{name}/video-channels':
2509 summary: List video channels of an account
2514 - $ref: '#/components/parameters/name'
2517 description: include view statistics for the last 30 days (only if authentified as the account user)
2520 - $ref: '#/components/parameters/start'
2521 - $ref: '#/components/parameters/count'
2522 - $ref: '#/components/parameters/sort'
2525 description: successful operation
2536 $ref: '#/components/schemas/VideoChannel'
2537 '/accounts/{name}/ratings':
2539 summary: List ratings of an account
2545 - $ref: '#/components/parameters/name'
2546 - $ref: '#/components/parameters/start'
2547 - $ref: '#/components/parameters/count'
2548 - $ref: '#/components/parameters/sort'
2552 description: Optionally filter which ratings to retrieve
2560 description: successful operation
2566 $ref: '#/components/schemas/VideoRating'
2567 '/videos/{id}/comment-threads':
2569 summary: List threads of a video
2573 - $ref: '#/components/parameters/idOrUUID'
2574 - $ref: '#/components/parameters/start'
2575 - $ref: '#/components/parameters/count'
2576 - $ref: '#/components/parameters/commentsSort'
2579 description: successful operation
2583 $ref: '#/components/schemas/CommentThreadResponse'
2585 summary: Create a thread
2591 - $ref: '#/components/parameters/idOrUUID'
2594 description: successful operation
2598 $ref: '#/components/schemas/CommentThreadPostResponse'
2600 description: video does not exist
2609 description: 'Text comment'
2613 '/videos/{id}/comment-threads/{threadId}':
2615 summary: Get a thread
2619 - $ref: '#/components/parameters/idOrUUID'
2620 - $ref: '#/components/parameters/threadId'
2623 description: successful operation
2627 $ref: '#/components/schemas/VideoCommentThreadTree'
2628 '/videos/{id}/comments/{commentId}':
2630 summary: Reply to a thread of a video
2636 - $ref: '#/components/parameters/idOrUUID'
2637 - $ref: '#/components/parameters/commentId'
2640 description: successful operation
2644 $ref: '#/components/schemas/CommentThreadPostResponse'
2646 description: thread or video does not exist
2655 description: 'Text comment'
2660 summary: Delete a comment or a reply
2666 - $ref: '#/components/parameters/idOrUUID'
2667 - $ref: '#/components/parameters/commentId'
2670 description: successful operation
2672 description: cannot remove comment of another user
2674 description: comment or video does not exist
2676 description: comment is already deleted
2677 '/videos/{id}/rate':
2679 summary: Like/dislike a video
2685 - $ref: '#/components/parameters/idOrUUID'
2688 description: successful operation
2690 description: video does not exist
2695 summary: Search videos
2700 allowEmptyValue: false
2702 String to search. If the user can make a remote URI search, and the string is an URI then the
2703 PeerTube instance will fetch the remote object and add it to its database. Then,
2704 you can use the REST API to fetch the complete video information and interact with it.
2707 - $ref: '#/components/parameters/categoryOneOf'
2708 - $ref: '#/components/parameters/tagsOneOf'
2709 - $ref: '#/components/parameters/tagsAllOf'
2710 - $ref: '#/components/parameters/licenceOneOf'
2711 - $ref: '#/components/parameters/languageOneOf'
2712 - $ref: '#/components/parameters/nsfw'
2713 - $ref: '#/components/parameters/filter'
2714 - $ref: '#/components/parameters/skipCount'
2715 - $ref: '#/components/parameters/start'
2716 - $ref: '#/components/parameters/count'
2717 - $ref: '#/components/parameters/searchTarget'
2718 - $ref: '#/components/parameters/videosSearchSort'
2721 description: Get videos that are published after this date
2727 description: Get videos that are published before this date
2731 - name: originallyPublishedStartDate
2733 description: Get videos that are originally published after this date
2737 - name: originallyPublishedEndDate
2739 description: Get videos that are originally published before this date
2745 description: Get videos that have this minimum duration
2750 description: Get videos that have this maximum duration
2754 'searchTarget === search-index':
2755 $ref: '#/components/callbacks/searchIndex'
2758 description: successful operation
2762 $ref: '#/components/schemas/VideoListResponse'
2764 description: search index unavailable
2765 /search/video-channels:
2769 summary: Search channels
2775 String to search. If the user can make a remote URI search, and the string is an URI then the
2776 PeerTube instance will fetch the remote object and add it to its database. Then,
2777 you can use the REST API to fetch the complete channel information and interact with it.
2780 - $ref: '#/components/parameters/start'
2781 - $ref: '#/components/parameters/count'
2782 - $ref: '#/components/parameters/searchTarget'
2783 - $ref: '#/components/parameters/sort'
2785 'searchTarget === search-index':
2786 $ref: '#/components/callbacks/searchIndex'
2789 description: successful operation
2795 $ref: '#/components/schemas/VideoChannel'
2797 description: search index unavailable
2798 /blocklist/accounts:
2802 summary: List account blocks
2807 - $ref: '#/components/parameters/start'
2808 - $ref: '#/components/parameters/count'
2809 - $ref: '#/components/parameters/sort'
2812 description: successful operation
2816 summary: Block an account
2828 example: chocobozzz@example.org
2829 description: account to block, in the form `username@domain`
2834 description: successful operation
2836 description: self-blocking forbidden
2837 '/blocklist/accounts/{accountName}':
2841 summary: Unblock an account by its handle
2849 description: account to unblock, in the form `username@domain`
2854 description: successful operation
2856 description: account or account block does not exist
2861 summary: List server blocks
2866 - $ref: '#/components/parameters/start'
2867 - $ref: '#/components/parameters/count'
2868 - $ref: '#/components/parameters/sort'
2871 description: successful operation
2875 summary: Block a server
2888 description: server domain to block
2893 description: successful operation
2895 description: self-blocking forbidden
2896 '/blocklist/servers/{host}':
2900 summary: Unblock a server by its domain
2908 description: server domain to unblock
2914 description: successful operation
2916 description: account block does not exist
2920 - Instance Redundancy
2921 summary: Update a server redundancy policy
2929 description: server domain to mirror
2941 description: allow mirroring of the host's local videos
2946 description: successful operation
2948 description: server is not already known
2953 summary: List videos being mirrored
2961 description: direction of the mirror
2967 - $ref: '#/components/parameters/start'
2968 - $ref: '#/components/parameters/count'
2969 - $ref: '#/components/parameters/videoRedundanciesSort'
2972 description: successful operation
2978 $ref: '#/components/schemas/VideoRedundancy'
2982 summary: Mirror a video
2998 description: successful operation
3000 description: cannot mirror a local video
3002 description: video does not exist
3004 description: video is already mirrored
3005 /redundancy/videos/{redundancyId}:
3009 summary: Delete a mirror done on a video
3014 - name: redundancyId
3017 description: id of an existing redundancy on a video
3022 description: successful operation
3024 description: video redundancy not found
3025 '/feeds/video-comments.{format}':
3029 summary: List comments on videos
3031 - url: 'https://peertube2.cpy.re'
3032 description: Live Test Server (live data - latest nightly version)
3033 - url: 'https://peertube3.cpy.re'
3034 description: Live Test Server (live data - latest RC version)
3035 - url: 'https://peertube.cpy.re'
3036 description: Live Test Server (live data - stable version)
3041 description: 'format expected (we focus on making `rss` the most featureful ; it serves [Media RSS](https://www.rssboard.org/media-rss))'
3054 description: 'limit listing to a specific video'
3059 description: 'limit listing to a specific account'
3064 description: 'limit listing to a specific account'
3067 - name: videoChannelId
3069 description: 'limit listing to a specific video channel'
3072 - name: videoChannelName
3074 description: 'limit listing to a specific video channel'
3079 description: successful operation
3084 default: 'max-age=900' # 15 min cache
3088 $ref: '#/components/schemas/VideoCommentsForXML'
3089 application/rss+xml:
3091 $ref: '#/components/schemas/VideoCommentsForXML'
3094 $ref: '#/components/schemas/VideoCommentsForXML'
3095 application/atom+xml:
3097 $ref: '#/components/schemas/VideoCommentsForXML'
3102 x-summary: field inconsistencies
3105 - videoId filter is mixed with a channel filter
3107 description: video, video channel or account not found
3109 description: accept header unsupported
3110 '/feeds/videos.{format}':
3114 summary: List videos
3116 - url: 'https://peertube2.cpy.re'
3117 description: Live Test Server (live data - latest nightly version)
3118 - url: 'https://peertube3.cpy.re'
3119 description: Live Test Server (live data - latest RC version)
3120 - url: 'https://peertube.cpy.re'
3121 description: Live Test Server (live data - stable version)
3126 description: 'format expected (we focus on making `rss` the most featureful ; it serves [Media RSS](https://www.rssboard.org/media-rss))'
3139 description: 'limit listing to a specific account'
3144 description: 'limit listing to a specific account'
3147 - name: videoChannelId
3149 description: 'limit listing to a specific video channel'
3152 - name: videoChannelName
3154 description: 'limit listing to a specific video channel'
3157 - $ref: '#/components/parameters/sort'
3158 - $ref: '#/components/parameters/nsfw'
3159 - $ref: '#/components/parameters/filter'
3162 description: successful operation
3167 default: 'max-age=900' # 15 min cache
3171 $ref: '#/components/schemas/VideosForXML'
3174 externalValue: https://peertube2.cpy.re/feeds/videos.xml?filter=local
3175 application/rss+xml:
3177 $ref: '#/components/schemas/VideosForXML'
3180 $ref: '#/components/schemas/VideosForXML'
3181 application/atom+xml:
3183 $ref: '#/components/schemas/VideosForXML'
3188 description: video channel or account not found
3190 description: accept header unsupported
3195 summary: List plugins
3208 - $ref: '#/components/parameters/start'
3209 - $ref: '#/components/parameters/count'
3210 - $ref: '#/components/parameters/sort'
3213 description: successful operation
3217 $ref: '#/components/schemas/PluginResponse'
3222 summary: List available plugins
3235 - name: currentPeerTubeEngine
3239 - $ref: '#/components/parameters/start'
3240 - $ref: '#/components/parameters/count'
3241 - $ref: '#/components/parameters/sort'
3244 description: successful operation
3248 $ref: '#/components/schemas/PluginResponse'
3250 description: plugin index unavailable
3255 summary: Install a plugin
3268 example: peertube-plugin-auth-ldap
3271 additionalProperties: false
3278 additionalProperties: false
3281 description: successful operation
3283 description: should have either `npmName` or `path` set
3288 summary: Update a plugin
3301 example: peertube-plugin-auth-ldap
3304 additionalProperties: false
3311 additionalProperties: false
3314 description: successful operation
3316 description: should have either `npmName` or `path` set
3318 description: existing plugin not found
3323 summary: Uninstall a plugin
3335 description: name of the plugin/theme in its package.json
3336 example: peertube-plugin-auth-ldap
3341 description: successful operation
3343 description: existing plugin not found
3348 summary: Get a plugin
3353 - $ref: '#/components/parameters/npmName'
3356 description: successful operation
3360 $ref: '#/components/schemas/Plugin'
3362 description: plugin not found
3363 /plugins/{npmName}/settings:
3367 summary: Set a plugin's settings
3372 - $ref: '#/components/parameters/npmName'
3381 additionalProperties: true
3384 description: successful operation
3386 description: plugin not found
3387 /plugins/{npmName}/public-settings:
3391 summary: Get a plugin's public settings
3393 - $ref: '#/components/parameters/npmName'
3396 description: successful operation
3401 additionalProperties: true
3403 description: plugin not found
3404 /plugins/{npmName}/registered-settings:
3408 summary: Get a plugin's registered settings
3413 - $ref: '#/components/parameters/npmName'
3416 description: successful operation
3421 additionalProperties: true
3423 description: plugin not found
3425 - url: 'https://peertube2.cpy.re/api/v1'
3426 description: Live Test Server (live data - latest nightly version)
3427 - url: 'https://peertube3.cpy.re/api/v1'
3428 description: Live Test Server (live data - latest RC version)
3429 - url: 'https://peertube.cpy.re/api/v1'
3430 description: Live Test Server (live data - stable version)
3437 description: Offset used to paginate results
3445 description: "Number of items to return"
3455 description: Sort column
3463 description: Plain text search, applied to various parts of the model depending on endpoint
3471 If the administrator enabled search index support, you can override the default search target.
3474 **Warning**: If you choose to make an index search, PeerTube will get results from a third party service.
3475 It means the instance may not yet know the objects you fetched. If you want to load video/channel information:
3476 * If the current user has the ability to make a remote URI search (this information is available in the config endpoint),
3477 then reuse the search API to make a search using the object URI so PeerTube instance fetches the remote object and fill its database.
3478 After that, you can use the classic REST API endpoints to fetch the complete object or interact with it
3479 * 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
3480 the data from the origin instance API
3490 description: Sort videos by criteria
3506 description: Sort videos by criteria
3521 description: Sort comments by criteria
3531 description: Sort blacklists by criteria
3547 description: Plain text search that will match with user usernames or emails
3554 description: Filter results down to (un)banned users
3561 description: Sort users by criteria
3572 description: Sort abuses by criteria
3579 videoRedundanciesSort:
3583 description: Sort abuses by criteria
3592 description: The username or handle of the account
3595 example: chocobozzz | chocobozzz@example.org
3600 description: The user id
3609 description: The object id or uuid
3617 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
3619 name: playlistElementId
3622 description: Playlist element id
3629 description: Abuse id
3633 name: abuseMessageId
3636 description: Abuse message id
3640 name: captionLanguage
3643 description: The caption language
3650 description: The video channel handle
3653 example: my_username | my_username@example.com
3655 name: subscriptionHandle
3658 description: The subscription handle
3661 example: my_username | my_username@example.com
3666 description: The thread id (root comment id)
3673 description: The comment id
3680 description: category id of the video (see [/videos/categories](#tag/Video/paths/~1videos~1categories/get))
3693 description: tag(s) of the video
3706 description: tag(s) of the video, where all should be present in the video
3719 description: language id of the video (see [/videos/languages](#tag/Video/paths/~1videos~1languages/get)). Use `_unknown` to filter on videos that don't have a video language
3732 description: licence id of the video (see [/videos/licences](#tag/Video/paths/~1videos~1licences/get))
3745 description: if you don't need the `total` in the response
3756 description: whether to include nsfw videos, if any
3767 Special filters which might require special rights:
3768 * `local` - only videos local to the instance
3769 * `all-local` - only videos local to the instance, but showing private and unlisted videos (requires Admin privileges)
3770 * `all` - all videos, showing private and unlisted videos (requires Admin privileges)
3780 description: list of uris to check if each is part of the user subscriptions
3790 description: name of the plugin/theme on npmjs.com or in its package.json
3793 example: peertube-plugin-auth-ldap
3798 description: job type
3802 - activitypub-follow
3803 - activitypub-http-broadcast
3804 - activitypub-http-fetcher
3805 - activitypub-http-unicast
3811 - activitypub-refresher
3817 In the header: *Authorization: Bearer <token\>*
3820 Authenticating via OAuth requires the following steps:
3823 - Have an account with sufficient authorization levels
3825 - [Generate](https://docs.joinpeertube.org/api-rest-getting-started) a
3828 - Make Authenticated Requests
3832 tokenUrl: 'https://peertube.example.com/api/v1/users/token'
3835 moderator: Moderator scope
3838 VideoConstantNumber:
3844 VideoConstantString:
3851 VideoPlaylistPrivacySet:
3857 description: 'The video playlist privacy (Public = `1`, Unlisted = `2`, Private = `3`)'
3858 VideoPlaylistPrivacyConstant:
3861 $ref: '#/components/schemas/VideoPlaylistPrivacySet'
3865 VideoPlaylistTypeSet:
3870 description: 'The video playlist type (Regular = `1`, Watch Later = `2`)'
3871 VideoPlaylistTypeConstant:
3874 $ref: '#/components/schemas/VideoPlaylistTypeSet'
3885 description: 'The video privacy (Public = `1`, Unlisted = `2`, Private = `3`, Internal = `4`)'
3886 VideoPrivacyConstant:
3889 $ref: '#/components/schemas/VideoPrivacySet'
3906 description: 'The user role (Admin = `0`, Moderator = `1`, User = `2`)'
3913 description: 'Admin flags for the user (None = `0`, Bypass video blacklist = `1`)'
3924 description: 'The video state (Published = `1`, to transcode = `2`, to import = `3`)'
3934 description: 'The abuse state (Pending = `1`, Rejected = `2`, Accepted = `3`)'
3938 $ref: '#/components/schemas/AbuseStateSet'
3941 AbusePredefinedReasons:
3954 example: [spamOrMisleading]
3956 VideoResolutionConstant:
3960 description: 'Video resolution (240, 360, 720, 1080, 1440 or 2160)'
3965 VideoScheduledUpdate:
3968 $ref: '#/components/schemas/VideoPrivacySet'
3972 description: When to update the video
3992 - $ref: '#/components/schemas/Avatar'
3993 VideoChannelSummary:
4010 - $ref: '#/components/schemas/Avatar'
4022 - $ref: '#/components/schemas/Video'
4028 $ref: '#/components/schemas/VideoResolutionConstant'
4031 description: 'Video file size in bytes'
4049 VideoStreamingPlaylists:
4057 description: 'Playlist type (HLS = `1`)'
4066 description: 'Video files associated to this playlist. The difference with the root "files" property is that these files are fragmented, so they can be used in this streaming playlist (HLS etc)'
4068 $ref: '#/components/schemas/VideoFile'
4084 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4095 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4107 originallyPublishedAt:
4111 $ref: '#/components/schemas/VideoConstantNumber'
4113 $ref: '#/components/schemas/VideoConstantNumber'
4115 $ref: '#/components/schemas/VideoConstantString'
4117 $ref: '#/components/schemas/VideoPrivacyConstant'
4127 example: What is PeerTube?
4130 example: /static/thumbnails/a65bc12f-9383-462e-81ae-8207e8b434ee.jpg
4133 example: /lazy-static/previews/a65bc12f-9383-462e-81ae-8207e8b434ee.jpg
4136 example: /videos/embed/a65bc12f-9383-462e-81ae-8207e8b434ee
4152 $ref: '#/components/schemas/VideoStateConstant'
4156 - $ref: '#/components/schemas/VideoScheduledUpdate'
4164 $ref: '#/components/schemas/AccountSummary'
4166 $ref: '#/components/schemas/VideoChannelSummary'
4175 - $ref: '#/components/schemas/Video'
4182 description: A text tell the audience how to support the video creator
4183 example: Please support my work on <insert crowdfunding plateform>! <3
4185 $ref: '#/components/schemas/VideoChannel'
4187 $ref: '#/components/schemas/Account'
4192 example: [flowers, gardening]
4195 description: 'WebTorrent/raw video files. Can be empty if WebTorrent is disabled on the server. In this case, video files will be in the "streamingPlaylists[].files" property'
4197 $ref: '#/components/schemas/VideoFile'
4210 $ref: '#/components/schemas/VideoStreamingPlaylists'
4211 FileRedundancyInformation:
4248 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4255 $ref: '#/components/schemas/FileRedundancyInformation'
4259 $ref: '#/components/schemas/FileRedundancyInformation'
4260 VideoImportStateConstant:
4268 description: 'The video import state (Pending = `1`, Success = `2`, Failed = `3`)'
4280 example: https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d
4284 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
4288 $ref: '#/components/schemas/VideoImportStateConstant'
4298 $ref: '#/components/schemas/Video'
4306 example: The video is a spam
4308 $ref: '#/components/schemas/AbusePredefinedReasons'
4310 $ref: '#/components/schemas/Account'
4312 $ref: '#/components/schemas/AbuseStateConstant'
4315 example: Decided to ban the server since it spams us regularly
4326 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4342 $ref: '#/components/schemas/AccountSummary'
4360 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4389 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4405 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4415 $ref: '#/components/schemas/VideoPlaylistPrivacyConstant'
4417 $ref: '#/components/schemas/VideoPlaylistTypeConstant'
4419 $ref: '#/components/schemas/AccountSummary'
4421 $ref: '#/components/schemas/VideoChannelSummary'
4443 totalRepliesFromVideoAuthor:
4448 $ref: '#/components/schemas/Account'
4449 VideoCommentThreadTree:
4452 $ref: '#/components/schemas/VideoComment'
4456 $ref: '#/components/schemas/VideoCommentThreadTree'
4460 $ref: '#/components/schemas/VideoConstantString'
4515 $ref: '#/components/schemas/Avatar'
4518 - $ref: '#/components/schemas/Actor'
4531 description: timestamp within the video, in seconds
4598 allowedForCurrentIP:
4600 requiresEmailVerification:
4804 requiresEmailVerification:
4829 allowAdditionalExtensions:
4899 $ref: '#/components/schemas/Actor'
4901 $ref: '#/components/schemas/Actor'
4904 description: score reflecting the reachability of the actor, with steps of `10` and a base score of `1000`.
4917 PredefinedAbuseReasons:
4918 description: Reason categories that help triage reports
4949 - activitypub-http-unicast
4950 - activitypub-http-broadcast
4951 - activitypub-http-fetcher
4952 - activitypub-follow
4958 - activitypub-refresher
4962 additionalProperties: true
4965 additionalProperties: true
4989 VideoUploadResponse:
5000 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
5001 CommentThreadResponse:
5010 $ref: '#/components/schemas/VideoComment'
5011 CommentThreadPostResponse:
5014 $ref: '#/components/schemas/VideoComment'
5024 $ref: '#/components/schemas/Video'
5032 description: The user username
5038 description: The user email
5041 description: Auth plugin to use to authenticate the user
5044 description: Theme enabled by this user
5047 description: Has the user confirmed their email address?
5049 $ref: '#/components/schemas/NSFWPolicy'
5052 description: Enable P2P in the player
5055 description: Automatically start playing the video on the watch page
5057 $ref: '#/components/schemas/UserRole'
5066 description: The user video quota
5069 description: The user daily video quota
5074 abusesAcceptedCount:
5080 noInstanceConfigWarningModal:
5091 $ref: '#/components/schemas/Account'
5095 $ref: '#/components/schemas/VideoChannel'
5100 description: The user username
5106 description: The user password. If the smtp server is configured, you can leave empty and an email will be sent
5112 description: The user email
5115 description: The user video quota
5118 description: The user daily video quota
5121 description: The user default channel username
5123 $ref: '#/components/schemas/UserRole'
5125 $ref: '#/components/schemas/UserAdminFlags'
5137 description: The user id
5141 description: The updated email of the user
5144 description: Set the email as verified
5147 description: The updated video quota of the user
5150 description: The updated daily video quota of the user
5154 description: The auth plugin to use to authenticate the user
5155 example: 'peertube-plugin-auth-saml2'
5157 $ref: '#/components/schemas/UserRole'
5159 $ref: '#/components/schemas/UserAdminFlags'
5167 description: Your new password
5173 description: Your new email
5176 description: Your new displayNSFW
5183 description: Your new autoPlayVideo
5193 description: Id of the video
5196 description: Rating of the video
5203 $ref: '#/components/schemas/Video'
5206 description: 'Rating of the video'
5214 description: The username of the user
5217 pattern: '/^[a-z0-9._]{1,50}$/'
5221 description: The password of the user
5227 description: The email of the user
5230 description: The user display name
5238 description: The username for the default channel
5239 pattern: '/^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\\-_.:]+$/'
5242 description: The display name for the default channel
5259 description: 'A text shown by default on all videos of this channel, to tell the audience how to support it'
5260 example: Please support my work on <insert crowdfunding plateform>! <3
5272 description: 'A text shown by default on all videos of this channel, to tell the audience how to support it'
5273 example: Please support my work on <insert crowdfunding plateform>! <3
5274 bulkVideosSupportUpdate:
5276 description: 'Update the support field for all videos of this channel'
5281 name: 'media:peerLink'
5290 - application/x-bittorrent
5296 name: 'media:content'
5327 VideoCommentsForXML:
5362 description: video watch page URL
5365 description: video canonical URL
5369 description: video publication date
5372 description: video description
5375 description: video description
5378 description: publisher user name
5381 description: video category (MRSS)
5384 description: see [media:community](https://www.rssboard.org/media-rss#media-community) (MRSS)
5399 description: video embed path, relative to the canonical URL domain (MRSS)
5408 description: video watch path, relative to the canonical URL domain (MRSS)
5429 description: see [media:title](https://www.rssboard.org/media-rss#media-title) (MRSS). We only use `plain` titles.
5430 'media:description':
5437 description: see [media:rating](https://www.rssboard.org/media-rss#media-rating) (MRSS)
5440 description: main streamable file for the video
5450 - application/x-bittorrent
5459 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)
5462 - $ref: '#/components/schemas/MRSSPeerLink'
5463 - $ref: '#/components/schemas/MRSSGroupContent'
5464 NotificationSettingValue:
5485 Notification type, following the `UserNotificationType` enum:
5487 - `1` NEW_VIDEO_FROM_SUBSCRIPTION
5489 - `2` NEW_COMMENT_ON_MY_VIDEO
5491 - `3` NEW_ABUSE_FOR_MODERATORS
5493 - `4` BLACKLIST_ON_MY_VIDEO
5495 - `5` UNBLACKLIST_ON_MY_VIDEO
5497 - `6` MY_VIDEO_PUBLISHED
5499 - `7` MY_VIDEO_IMPORT_SUCCESS
5501 - `8` MY_VIDEO_IMPORT_ERROR
5503 - `9` NEW_USER_REGISTRATION
5507 - `11` COMMENT_MENTION
5509 - `12` VIDEO_AUTO_BLACKLIST_FOR_MODERATORS
5511 - `13` NEW_INSTANCE_FOLLOWER
5513 - `14` AUTO_INSTANCE_FOLLOWING
5519 - $ref: '#/components/schemas/VideoInfo'
5523 $ref: '#/components/schemas/ActorInfo'
5532 $ref: '#/components/schemas/VideoInfo'
5553 $ref: '#/components/schemas/VideoInfo'
5555 $ref: '#/components/schemas/ActorInfo'
5564 - $ref: '#/components/schemas/VideoInfo'
5573 - $ref: '#/components/schemas/VideoInfo'
5577 - $ref: '#/components/schemas/ActorInfo'
5585 $ref: '#/components/schemas/ActorInfo'
5613 NotificationListResponse:
5622 $ref: '#/components/schemas/Notification'
5627 example: peertube-plugin-auth-ldap
5655 example: https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-ldap
5658 additionalProperties: true
5674 $ref: '#/components/schemas/Plugin'
5681 description: User can stream multiple times in a permanent live
5690 description: RTMP stream key to use to stream into this live video
5694 description: User can stream multiple times in a permanent live
5699 'https://search.example.org/api/v1/search/videos':
5701 summary: third-party search index MAY be used instead of the local index, if enabled by the instance admin. see `searchTarget`
5704 description: successful operation
5708 $ref: '#/components/schemas/VideoListResponse'