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
368 - $ref: '#/components/parameters/start'
369 - $ref: '#/components/parameters/count'
370 - $ref: '#/components/parameters/sort'
373 description: successful operation
386 $ref: '#/components/schemas/Job'
387 '/server/following/{host}':
394 summary: Unfollow a server
399 description: 'The host to unfollow '
405 description: successful operation
410 summary: List instance followers
412 - $ref: '#/components/parameters/start'
413 - $ref: '#/components/parameters/count'
414 - $ref: '#/components/parameters/sort'
417 description: successful operation
423 $ref: '#/components/schemas/Follow'
428 summary: List instances followed by the server
447 - $ref: '#/components/parameters/start'
448 - $ref: '#/components/parameters/count'
449 - $ref: '#/components/parameters/sort'
452 description: successful operation
458 $ref: '#/components/schemas/Follow'
465 summary: Follow a server
468 description: successful operation
470 description: cannot follow a non-HTTPS server
485 summary: Create a user
493 description: user created
497 $ref: '#/components/schemas/AddUserResponse'
501 operationId: getUserId
503 id: '$response.body#/user/id'
506 operationId: putUserId
508 id: '$response.body#/user/id'
511 operationId: delUserId
513 id: '$response.body#/user/id'
515 description: insufficient authority to create an admin or moderator
520 $ref: '#/components/schemas/AddUser'
521 description: User to create
531 - $ref: '#/components/parameters/usersSearch'
532 - $ref: '#/components/parameters/usersBlocked'
533 - $ref: '#/components/parameters/start'
534 - $ref: '#/components/parameters/count'
535 - $ref: '#/components/parameters/usersSort'
538 description: successful operation
544 $ref: '#/components/schemas/User'
547 - $ref: '#/components/parameters/id'
549 summary: Delete a user
555 operationId: delUserId
558 description: successful operation
565 operationId: getUserId
568 description: successful operation
572 $ref: '#/components/schemas/User'
574 summary: Update a user
579 operationId: putUserId
582 description: successful operation
587 $ref: '#/components/schemas/UpdateUser'
591 summary: Register a user
596 description: successful operation
601 $ref: '#/components/schemas/RegisterUser'
605 summary: Get my user information
613 description: successful operation
619 $ref: '#/components/schemas/User'
621 summary: Update my user information
629 description: successful operation
634 $ref: '#/components/schemas/UpdateMe'
636 /users/me/videos/imports:
638 summary: Get video imports of my user
646 - $ref: '#/components/parameters/start'
647 - $ref: '#/components/parameters/count'
648 - $ref: '#/components/parameters/sort'
651 description: successful operation
655 $ref: '#/components/schemas/VideoImport'
656 /users/me/video-quota-used:
658 summary: Get my user used quota
666 description: successful operation
671 '/users/me/videos/{videoId}/rating':
673 summary: Get rate of my user for a video
683 description: 'The video id '
688 description: successful operation
692 $ref: '#/components/schemas/GetMeVideoRating'
695 summary: Get videos of my user
703 - $ref: '#/components/parameters/start'
704 - $ref: '#/components/parameters/count'
705 - $ref: '#/components/parameters/sort'
708 description: successful operation
712 $ref: '#/components/schemas/VideoListResponse'
713 /users/me/subscriptions:
715 summary: Get my user subscriptions
722 - $ref: '#/components/parameters/start'
723 - $ref: '#/components/parameters/count'
724 - $ref: '#/components/parameters/sort'
727 description: successful operation
731 summary: Add subscription to my user
744 description: uri of the video channels to subscribe to
750 uri: 008a0e54-375d-49d0-8379-143202e24152@video.lqdn.fr
753 description: successful operation
754 /users/me/subscriptions/exist:
756 summary: Get if subscriptions exist for my user
763 - $ref: '#/components/parameters/subscriptionsUris'
766 description: successful operation
771 /users/me/subscriptions/videos:
773 summary: List videos of subscriptions of my user
781 - $ref: '#/components/parameters/categoryOneOf'
782 - $ref: '#/components/parameters/tagsOneOf'
783 - $ref: '#/components/parameters/tagsAllOf'
784 - $ref: '#/components/parameters/licenceOneOf'
785 - $ref: '#/components/parameters/languageOneOf'
786 - $ref: '#/components/parameters/nsfw'
787 - $ref: '#/components/parameters/filter'
788 - $ref: '#/components/parameters/skipCount'
789 - $ref: '#/components/parameters/start'
790 - $ref: '#/components/parameters/count'
791 - $ref: '#/components/parameters/videosSort'
794 description: successful operation
798 $ref: '#/components/schemas/VideoListResponse'
799 '/users/me/subscriptions/{subscriptionHandle}':
801 summary: Get subscription of my user
808 - $ref: '#/components/parameters/subscriptionHandle'
811 description: successful operation
815 $ref: '#/components/schemas/VideoChannel'
817 summary: Delete subscription of my user
824 - $ref: '#/components/parameters/subscriptionHandle'
827 description: successful operation
828 /users/me/notifications:
830 summary: List my notifications
838 description: only list unread notifications
841 - $ref: '#/components/parameters/start'
842 - $ref: '#/components/parameters/count'
843 - $ref: '#/components/parameters/sort'
846 description: successful operation
850 $ref: '#/components/schemas/NotificationListResponse'
851 /users/me/notifications/read:
853 summary: Mark notifications as read by their id
866 description: ids of the notifications to mark as read
873 description: successful operation
874 /users/me/notifications/read-all:
876 summary: Mark all my notification as read
883 description: successful operation
884 /users/me/notification-settings:
886 summary: Update my notification settings
897 newVideoFromSubscription:
898 $ref: '#/components/schemas/NotificationSettingValue'
900 $ref: '#/components/schemas/NotificationSettingValue'
902 $ref: '#/components/schemas/NotificationSettingValue'
903 videoAutoBlacklistAsModerator:
904 $ref: '#/components/schemas/NotificationSettingValue'
906 $ref: '#/components/schemas/NotificationSettingValue'
908 $ref: '#/components/schemas/NotificationSettingValue'
909 myVideoImportFinished:
910 $ref: '#/components/schemas/NotificationSettingValue'
912 $ref: '#/components/schemas/NotificationSettingValue'
914 $ref: '#/components/schemas/NotificationSettingValue'
916 $ref: '#/components/schemas/NotificationSettingValue'
918 $ref: '#/components/schemas/NotificationSettingValue'
919 autoInstanceFollowing:
920 $ref: '#/components/schemas/NotificationSettingValue'
923 description: successful operation
924 /users/me/history/videos:
926 summary: List watched videos history
932 - $ref: '#/components/parameters/start'
933 - $ref: '#/components/parameters/count'
936 description: successful operation
940 $ref: '#/components/schemas/VideoListResponse'
941 /users/me/history/videos/remove:
943 summary: Clear video history
955 description: history before this date will be deleted
960 description: successful operation
961 /users/me/avatar/pick:
963 summary: Update my user avatar
970 description: successful operation
974 $ref: '#/components/schemas/Avatar'
976 description: image file too large
982 description: Maximum file size for the avatar
990 description: The file to upload.
995 contentType: image/png, image/jpeg
998 summary: List video ownership changes
1000 - Video Ownership Change
1005 description: successful operation
1006 '/videos/ownership/{id}/accept':
1008 summary: Accept ownership change request
1010 - Video Ownership Change
1014 - $ref: '#/components/parameters/idOrUUID'
1017 description: successful operation
1019 description: cannot terminate an ownership change of another user
1021 description: video owneship change not found
1022 '/videos/ownership/{id}/refuse':
1024 summary: Refuse ownership change request
1026 - Video Ownership Change
1030 - $ref: '#/components/parameters/idOrUUID'
1033 description: successful operation
1035 description: cannot terminate an ownership change of another user
1037 description: video owneship change not found
1038 '/videos/{id}/give-ownership':
1040 summary: Request ownership change
1042 - Video Ownership Change
1046 - $ref: '#/components/parameters/idOrUUID'
1050 application/x-www-form-urlencoded:
1060 description: successful operation
1062 description: changing video ownership to a remote account is not supported yet
1064 description: video not found
1067 summary: List videos
1071 - $ref: '#/components/parameters/categoryOneOf'
1072 - $ref: '#/components/parameters/tagsOneOf'
1073 - $ref: '#/components/parameters/tagsAllOf'
1074 - $ref: '#/components/parameters/licenceOneOf'
1075 - $ref: '#/components/parameters/languageOneOf'
1076 - $ref: '#/components/parameters/nsfw'
1077 - $ref: '#/components/parameters/filter'
1078 - $ref: '#/components/parameters/skipCount'
1079 - $ref: '#/components/parameters/start'
1080 - $ref: '#/components/parameters/count'
1081 - $ref: '#/components/parameters/videosSort'
1084 description: successful operation
1088 $ref: '#/components/schemas/VideoListResponse'
1091 summary: List available video categories
1096 description: successful operation
1105 externalValue: https://peertube2.cpy.re/api/v1/videos/categories
1108 summary: List available video licences
1113 description: successful operation
1122 externalValue: https://peertube2.cpy.re/api/v1/videos/licences
1125 summary: List available video languages
1130 description: successful operation
1139 externalValue: https://peertube2.cpy.re/api/v1/videos/languages
1142 summary: List available video privacies
1147 description: successful operation
1156 externalValue: https://peertube2.cpy.re/api/v1/videos/privacies
1159 summary: Update a video
1165 - $ref: '#/components/parameters/idOrUUID'
1168 description: successful operation
1171 multipart/form-data:
1176 description: Video thumbnail file
1180 description: Video preview file
1184 description: Video category
1188 description: Video licence
1192 description: Video language
1195 $ref: '#/components/schemas/VideoPrivacySet'
1197 description: Video description
1200 description: Whether or not we wait transcoding before publish the video
1203 description: A text tell the audience how to support the video creator
1204 example: Please support my work on <insert crowdfunding plateform>! <3
1207 description: Whether or not this video contains sensitive content
1210 description: Video name
1213 description: Video tags (maximum 5 tags each between 2 and 30 characters)
1222 description: Enable or disable comments for this video
1224 originallyPublishedAt:
1225 description: Date when the content was originally published
1229 $ref: '#/components/schemas/VideoScheduledUpdate'
1232 contentType: image/jpeg
1234 contentType: image/jpeg
1236 summary: Get a video
1240 - $ref: '#/components/parameters/idOrUUID'
1243 description: successful operation
1247 $ref: '#/components/schemas/VideoDetails'
1249 summary: Delete a video
1255 - $ref: '#/components/parameters/idOrUUID'
1258 description: successful operation
1259 '/videos/{id}/description':
1261 summary: Get complete video description
1265 - $ref: '#/components/parameters/idOrUUID'
1268 description: successful operation
1273 '/videos/{id}/views':
1275 summary: Add a view to a video
1279 - $ref: '#/components/parameters/idOrUUID'
1282 description: successful operation
1283 '/videos/{id}/watching':
1285 summary: Set watching progress of a video
1291 - $ref: '#/components/parameters/idOrUUID'
1296 $ref: '#/components/schemas/UserWatchingVideo'
1300 description: successful operation
1303 summary: Upload a video
1310 description: successful operation
1314 $ref: '#/components/schemas/VideoUploadResponse'
1316 description: user video quota is exceeded with this video
1318 description: upload has timed out
1320 description: video file too large
1322 X-File-Maximum-Size:
1326 description: Maximum file size for the video
1328 description: invalid input file
1331 multipart/form-data:
1336 description: Video file
1340 description: Channel id that will contain this video
1343 description: Video thumbnail file
1347 description: Video preview file
1351 $ref: '#/components/schemas/VideoPrivacySet'
1353 description: Video category
1357 description: Video licence
1360 description: Video language
1364 description: Video description
1367 description: Whether or not we wait transcoding before publish the video
1370 description: A text tell the audience how to support the video creator
1371 example: Please support my work on <insert crowdfunding plateform>! <3
1374 description: Whether or not this video contains sensitive content
1377 description: Video name
1380 description: Video tags (maximum 5 tags each between 2 and 30 characters)
1390 description: Enable or disable comments for this video
1393 description: Enable or disable downloading for this video
1395 originallyPublishedAt:
1396 description: Date when the content was originally published
1400 $ref: '#/components/schemas/VideoScheduledUpdate'
1407 contentType: video/mp4, video/webm, video/ogg, video/avi, video/quicktime, video/x-msvideo, video/x-flv, video/x-matroska, application/octet-stream
1409 contentType: image/jpeg
1411 contentType: image/jpeg
1416 USERNAME="<your_username>"
1417 PASSWORD="<your_password>"
1418 FILE_PATH="<your_file_path>"
1419 CHANNEL_ID="<your_channel_id>"
1422 API_PATH="https://peertube2.cpy.re/api/v1"
1424 client_id=$(curl -s "$API_PATH/oauth-clients/local" | jq -r ".client_id")
1425 client_secret=$(curl -s "$API_PATH/oauth-clients/local" | jq -r ".client_secret")
1426 token=$(curl -s "$API_PATH/users/token" \
1427 --data client_id="$client_id" \
1428 --data client_secret="$client_secret" \
1429 --data grant_type=password \
1430 --data response_type=code \
1431 --data username="$USERNAME" \
1432 --data password="$PASSWORD" \
1433 | jq -r ".access_token")
1435 curl -s "$API_PATH/videos/upload" \
1436 -H "Authorization: Bearer $token" \
1438 --form videofile=@"$FILE_PATH" \
1439 --form channelId=$CHANNEL_ID \
1443 summary: Import a video
1444 description: Import a torrent or magnetURI or HTTP resource (if enabled by the instance administrator)
1451 multipart/form-data:
1456 description: Torrent File
1460 description: HTTP target URL
1463 description: Magnet URI
1466 description: Channel id that will contain this video
1469 description: Video thumbnail file
1473 description: Video preview file
1477 $ref: '#/components/schemas/VideoPrivacySet'
1479 description: Video category
1482 description: Video licence
1485 description: Video language
1488 description: Video description
1491 description: Whether or not we wait transcoding before publish the video
1494 description: A text tell the audience how to support the video creator
1495 example: Please support my work on <insert crowdfunding plateform>! <3
1498 description: Whether or not this video contains sensitive content
1501 description: Video name
1504 description: Video tags (maximum 5 tags each between 2 and 30 characters)
1513 description: Enable or disable comments for this video
1516 description: Enable or disable downloading for this video
1519 $ref: '#/components/schemas/VideoScheduledUpdate'
1525 contentType: application/x-bittorrent
1527 contentType: image/jpeg
1529 contentType: image/jpeg
1532 description: successful operation
1536 $ref: '#/components/schemas/VideoUploadResponse'
1538 description: HTTP or Torrent/magnetURI import not enabled
1540 description: '`magnetUri` or `targetUrl` or a torrent file missing'
1544 summary: Create a live
1552 description: successful operation
1556 $ref: '#/components/schemas/VideoUploadResponse'
1558 description: Live is not enabled, allow replay is not enabled, or max instance/user live videos limit is exceeded
1561 multipart/form-data:
1566 description: Channel id that will contain this live video
1571 description: Live video/replay thumbnail file
1575 description: Live video/replay preview file
1579 $ref: '#/components/schemas/VideoPrivacySet'
1581 description: Live video/replay category
1584 description: Live video/replay licence
1587 description: Live video/replay language
1590 description: Live video/replay description
1593 description: A text tell the audience how to support the creator
1594 example: Please support my work on <insert crowdfunding plateform>! <3
1597 description: Whether or not this live video/replay contains sensitive content
1600 description: Live video/replay name
1603 description: Live video/replay tags (maximum 5 tags each between 2 and 30 characters)
1612 description: Enable or disable comments for this live video/replay
1615 description: Enable or disable downloading for the replay of this live
1622 contentType: image/jpeg
1624 contentType: image/jpeg
1628 summary: Get a live information
1635 - $ref: '#/components/parameters/idOrUUID'
1638 description: successful operation
1642 $ref: '#/components/schemas/LiveVideoResponse'
1644 summary: Update a live information
1651 - $ref: '#/components/parameters/idOrUUID'
1656 $ref: '#/components/schemas/LiveVideoUpdate'
1659 description: Successful operation
1661 description: Bad parameters or trying to update a live that has already started
1663 description: Trying to save replay of the live but saving replay is not enabled on the instance
1667 summary: List my abuses
1676 description: only list the report with this id
1682 $ref: '#/components/schemas/AbuseStateSet'
1683 - $ref: '#/components/parameters/start'
1684 - $ref: '#/components/parameters/count'
1685 - $ref: '#/components/parameters/abusesSort'
1688 description: successful operation
1694 $ref: '#/components/schemas/Abuse'
1698 summary: List abuses
1708 description: only list the report with this id
1711 - name: predefinedReason
1713 description: predefined reason the listed reports should contain
1715 $ref: '#/components/schemas/PredefinedAbuseReasons'
1718 description: plain search that will match with video titles, reporter names and more
1724 $ref: '#/components/schemas/AbuseStateSet'
1725 - name: searchReporter
1727 description: only list reports of a specific reporter
1730 - name: searchReportee
1731 description: only list reports of a specific reportee
1737 description: only list reports of a specific video
1740 - name: searchVideoChannel
1742 description: only list reports of a specific video channel
1747 description: only list blacklisted or deleted videos
1755 description: only list account, comment or video reports
1762 - $ref: '#/components/parameters/start'
1763 - $ref: '#/components/parameters/count'
1764 - $ref: '#/components/parameters/abusesSort'
1767 description: successful operation
1773 $ref: '#/components/schemas/Abuse'
1776 summary: Report an abuse
1789 description: Reason why the user reports this video
1793 $ref: '#/components/schemas/PredefinedAbuseReasons'
1799 description: Video id to report
1803 description: Timestamp in the video that marks the beginning of the report
1807 description: Timestamp in the video that marks the ending of the report
1813 description: Comment id to report
1819 description: Account id to report
1825 description: successful operation
1827 description: incorrect request parameters
1828 '/abuses/{abuseId}':
1830 summary: Update an abuse
1838 - $ref: '#/components/parameters/abuseId'
1846 $ref: '#/components/schemas/AbuseStateSet'
1849 description: Update the report comment visible only to the moderation team
1852 description: successful operation
1854 description: abuse not found
1858 summary: Delete an abuse
1864 - $ref: '#/components/parameters/abuseId'
1867 description: successful operation
1869 description: block not found
1870 '/abuses/{abuseId}/messages':
1872 summary: List messages of an abuse
1878 - $ref: '#/components/parameters/abuseId'
1881 description: successful operation
1887 $ref: '#/components/schemas/AbuseMessage'
1890 summary: Add message to an abuse
1896 - $ref: '#/components/parameters/abuseId'
1905 description: Message to send
1911 description: successful operation
1913 description: incorrect request parameters
1914 '/abuses/{abuseId}/messages/{abuseMessageId}':
1916 summary: Delete an abuse message
1922 - $ref: '#/components/parameters/abuseId'
1923 - $ref: '#/components/parameters/abuseMessageId'
1926 description: successful operation
1928 '/videos/{id}/blacklist':
1930 summary: Block a video
1938 - $ref: '#/components/parameters/idOrUUID'
1941 description: successful operation
1943 summary: Unblock a video by its id
1951 - $ref: '#/components/parameters/idOrUUID'
1954 description: successful operation
1956 description: block not found
1961 summary: List video blocks
1970 list only blocks that match this type:
1974 - `2`: automatic block that needs review
1982 description: plain search that will match with video titles, and more
1985 - $ref: '#/components/parameters/start'
1986 - $ref: '#/components/parameters/count'
1987 - $ref: '#/components/parameters/blacklistsSort'
1990 description: successful operation
2002 $ref: '#/components/schemas/VideoBlacklist'
2003 /videos/{id}/captions:
2005 summary: List captions of a video
2009 - $ref: '#/components/parameters/idOrUUID'
2012 description: successful operation
2024 $ref: '#/components/schemas/VideoCaption'
2025 /videos/{id}/captions/{captionLanguage}:
2027 summary: Add or replace a video caption
2034 - $ref: '#/components/parameters/idOrUUID'
2035 - $ref: '#/components/parameters/captionLanguage'
2038 multipart/form-data:
2043 description: The file to upload.
2048 contentType: text/vtt, application/x-subrip, text/plain
2051 description: successful operation
2053 description: video or language not found
2055 summary: Delete a video caption
2062 - $ref: '#/components/parameters/idOrUUID'
2063 - $ref: '#/components/parameters/captionLanguage'
2066 description: successful operation
2068 description: video or language or caption for that language not found
2071 summary: List video channels
2075 - $ref: '#/components/parameters/start'
2076 - $ref: '#/components/parameters/count'
2077 - $ref: '#/components/parameters/sort'
2080 description: successful operation
2092 $ref: '#/components/schemas/VideoChannel'
2094 summary: Create a video channel
2101 description: successful operation
2106 $ref: '#/components/schemas/VideoChannelCreate'
2107 '/video-channels/{channelHandle}':
2109 summary: Get a video channel
2113 - $ref: '#/components/parameters/channelHandle'
2116 description: successful operation
2120 $ref: '#/components/schemas/VideoChannel'
2122 summary: Update a video channel
2128 - $ref: '#/components/parameters/channelHandle'
2131 description: successful operation
2136 $ref: '#/components/schemas/VideoChannelUpdate'
2138 summary: Delete a video channel
2144 - $ref: '#/components/parameters/channelHandle'
2147 description: successful operation
2148 '/video-channels/{channelHandle}/videos':
2150 summary: List videos of a video channel
2155 - $ref: '#/components/parameters/channelHandle'
2156 - $ref: '#/components/parameters/categoryOneOf'
2157 - $ref: '#/components/parameters/tagsOneOf'
2158 - $ref: '#/components/parameters/tagsAllOf'
2159 - $ref: '#/components/parameters/licenceOneOf'
2160 - $ref: '#/components/parameters/languageOneOf'
2161 - $ref: '#/components/parameters/nsfw'
2162 - $ref: '#/components/parameters/filter'
2163 - $ref: '#/components/parameters/skipCount'
2164 - $ref: '#/components/parameters/start'
2165 - $ref: '#/components/parameters/count'
2166 - $ref: '#/components/parameters/videosSort'
2169 description: successful operation
2173 $ref: '#/components/schemas/VideoListResponse'
2175 /video-playlists/privacies:
2177 summary: List available playlist privacies
2182 description: successful operation
2191 externalValue: https://peertube2.cpy.re/api/v1/video-playlists/privacies
2195 summary: List video playlists
2199 - $ref: '#/components/parameters/start'
2200 - $ref: '#/components/parameters/count'
2201 - $ref: '#/components/parameters/sort'
2204 description: successful operation
2216 $ref: '#/components/schemas/VideoPlaylist'
2218 summary: Create a video playlist
2219 description: 'If the video playlist is set as public, the videoChannelId is mandatory.'
2226 description: successful operation
2241 multipart/form-data:
2246 description: Video playlist display name
2249 description: Video playlist thumbnail file
2253 $ref: '#/components/schemas/VideoPlaylistPrivacySet'
2255 description: Video playlist description
2258 description: Video channel in which the playlist will be published
2264 contentType: image/jpeg
2266 /video-playlists/{id}:
2268 summary: Get a video playlist
2272 - $ref: '#/components/parameters/idOrUUID'
2275 description: successful operation
2279 $ref: '#/components/schemas/VideoPlaylist'
2281 summary: Update a video playlist
2282 description: 'If the video playlist is set as public, the playlist must have a assigned channel.'
2289 description: successful operation
2291 - $ref: '#/components/parameters/idOrUUID'
2294 multipart/form-data:
2299 description: Video playlist display name
2302 description: Video playlist thumbnail file
2306 $ref: '#/components/schemas/VideoPlaylistPrivacySet'
2308 description: Video playlist description
2311 description: Video channel in which the playlist will be published
2315 contentType: image/jpeg
2317 summary: Delete a video playlist
2323 - $ref: '#/components/parameters/idOrUUID'
2326 description: successful operation
2328 /video-playlists/{id}/videos:
2330 summary: 'List videos of a playlist'
2335 - $ref: '#/components/parameters/idOrUUID'
2338 description: successful operation
2342 $ref: '#/components/schemas/VideoListResponse'
2344 summary: 'Add a video in a playlist'
2351 - $ref: '#/components/parameters/idOrUUID'
2354 description: successful operation
2360 videoPlaylistElement:
2373 description: 'Video to add in the playlist'
2376 description: 'Start the video at this specific timestamp (in seconds)'
2379 description: 'Stop the video at this specific timestamp (in seconds)'
2383 /video-playlists/{id}/videos/reorder:
2385 summary: 'Reorder a playlist'
2391 - $ref: '#/components/parameters/idOrUUID'
2394 description: successful operation
2403 description: 'Start position of the element to reorder'
2405 insertAfterPosition:
2407 description: 'New position for the block to reorder, to add the block before the first element'
2411 description: 'How many element from `startPosition` to reorder'
2415 - insertAfterPosition
2417 /video-playlists/{id}/videos/{playlistElementId}:
2419 summary: 'Update a playlist element'
2425 - $ref: '#/components/parameters/idOrUUID'
2426 - $ref: '#/components/parameters/playlistElementId'
2429 description: successful operation
2438 description: 'Start the video at this specific timestamp (in seconds)'
2441 description: 'Stop the video at this specific timestamp (in seconds)'
2443 summary: 'Delete an element from a playlist'
2449 - $ref: '#/components/parameters/idOrUUID'
2450 - $ref: '#/components/parameters/playlistElementId'
2453 description: successful operation
2455 '/users/me/video-playlists/videos-exist':
2457 summary: 'Check video exists in my playlists'
2466 description: The video ids to check
2473 description: successful operation
2493 '/accounts/{name}/video-channels':
2495 summary: List video channels of an account
2500 - $ref: '#/components/parameters/name'
2503 description: include view statistics for the last 30 days (only if authentified as the account user)
2506 - $ref: '#/components/parameters/start'
2507 - $ref: '#/components/parameters/count'
2508 - $ref: '#/components/parameters/sort'
2511 description: successful operation
2517 $ref: '#/components/schemas/VideoChannel'
2518 '/accounts/{name}/ratings':
2520 summary: List ratings of an account
2526 - $ref: '#/components/parameters/name'
2527 - $ref: '#/components/parameters/start'
2528 - $ref: '#/components/parameters/count'
2529 - $ref: '#/components/parameters/sort'
2533 description: Optionally filter which ratings to retrieve
2541 description: successful operation
2547 $ref: '#/components/schemas/VideoRating'
2548 '/videos/{id}/comment-threads':
2550 summary: List threads of a video
2554 - $ref: '#/components/parameters/idOrUUID'
2555 - $ref: '#/components/parameters/start'
2556 - $ref: '#/components/parameters/count'
2557 - $ref: '#/components/parameters/commentsSort'
2560 description: successful operation
2564 $ref: '#/components/schemas/CommentThreadResponse'
2566 summary: Create a thread
2572 - $ref: '#/components/parameters/idOrUUID'
2575 description: successful operation
2579 $ref: '#/components/schemas/CommentThreadPostResponse'
2581 description: video does not exist
2590 description: 'Text comment'
2594 '/videos/{id}/comment-threads/{threadId}':
2596 summary: Get a thread
2600 - $ref: '#/components/parameters/idOrUUID'
2601 - $ref: '#/components/parameters/threadId'
2604 description: successful operation
2608 $ref: '#/components/schemas/VideoCommentThreadTree'
2609 '/videos/{id}/comments/{commentId}':
2611 summary: Reply to a thread of a video
2617 - $ref: '#/components/parameters/idOrUUID'
2618 - $ref: '#/components/parameters/commentId'
2621 description: successful operation
2625 $ref: '#/components/schemas/CommentThreadPostResponse'
2627 description: thread or video does not exist
2636 description: 'Text comment'
2641 summary: Delete a comment or a reply
2647 - $ref: '#/components/parameters/idOrUUID'
2648 - $ref: '#/components/parameters/commentId'
2651 description: successful operation
2653 description: cannot remove comment of another user
2655 description: comment or video does not exist
2657 description: comment is already deleted
2658 '/videos/{id}/rate':
2660 summary: Like/dislike a video
2666 - $ref: '#/components/parameters/idOrUUID'
2669 description: successful operation
2671 description: video does not exist
2676 summary: Search videos
2681 allowEmptyValue: false
2683 String to search. If the user can make a remote URI search, and the string is an URI then the
2684 PeerTube instance will fetch the remote object and add it to its database. Then,
2685 you can use the REST API to fetch the complete video information and interact with it.
2688 - $ref: '#/components/parameters/categoryOneOf'
2689 - $ref: '#/components/parameters/tagsOneOf'
2690 - $ref: '#/components/parameters/tagsAllOf'
2691 - $ref: '#/components/parameters/licenceOneOf'
2692 - $ref: '#/components/parameters/languageOneOf'
2693 - $ref: '#/components/parameters/nsfw'
2694 - $ref: '#/components/parameters/filter'
2695 - $ref: '#/components/parameters/skipCount'
2696 - $ref: '#/components/parameters/start'
2697 - $ref: '#/components/parameters/count'
2698 - $ref: '#/components/parameters/searchTarget'
2699 - $ref: '#/components/parameters/videosSearchSort'
2702 description: Get videos that are published after this date
2708 description: Get videos that are published before this date
2712 - name: originallyPublishedStartDate
2714 description: Get videos that are originally published after this date
2718 - name: originallyPublishedEndDate
2720 description: Get videos that are originally published before this date
2726 description: Get videos that have this minimum duration
2731 description: Get videos that have this maximum duration
2735 'searchTarget === search-index':
2736 $ref: '#/components/callbacks/searchIndex'
2739 description: successful operation
2743 $ref: '#/components/schemas/VideoListResponse'
2745 description: search index unavailable
2746 /search/video-channels:
2750 summary: Search channels
2756 String to search. If the user can make a remote URI search, and the string is an URI then the
2757 PeerTube instance will fetch the remote object and add it to its database. Then,
2758 you can use the REST API to fetch the complete channel information and interact with it.
2761 - $ref: '#/components/parameters/start'
2762 - $ref: '#/components/parameters/count'
2763 - $ref: '#/components/parameters/searchTarget'
2764 - $ref: '#/components/parameters/sort'
2766 'searchTarget === search-index':
2767 $ref: '#/components/callbacks/searchIndex'
2770 description: successful operation
2776 $ref: '#/components/schemas/VideoChannel'
2778 description: search index unavailable
2779 /blocklist/accounts:
2783 summary: List account blocks
2788 - $ref: '#/components/parameters/start'
2789 - $ref: '#/components/parameters/count'
2790 - $ref: '#/components/parameters/sort'
2793 description: successful operation
2797 summary: Block an account
2809 example: chocobozzz@example.org
2810 description: account to block, in the form `username@domain`
2815 description: successful operation
2817 description: self-blocking forbidden
2818 '/blocklist/accounts/{accountName}':
2822 summary: Unblock an account by its handle
2830 description: account to unblock, in the form `username@domain`
2835 description: successful operation
2837 description: account or account block does not exist
2842 summary: List server blocks
2847 - $ref: '#/components/parameters/start'
2848 - $ref: '#/components/parameters/count'
2849 - $ref: '#/components/parameters/sort'
2852 description: successful operation
2856 summary: Block a server
2869 description: server domain to block
2874 description: successful operation
2876 description: self-blocking forbidden
2877 '/blocklist/servers/{host}':
2881 summary: Unblock a server by its domain
2889 description: server domain to unblock
2895 description: successful operation
2897 description: account block does not exist
2901 - Instance Redundancy
2902 summary: Update a server redundancy policy
2910 description: server domain to mirror
2922 description: allow mirroring of the host's local videos
2927 description: successful operation
2929 description: server is not already known
2934 summary: List videos being mirrored
2942 description: direction of the mirror
2948 - $ref: '#/components/parameters/start'
2949 - $ref: '#/components/parameters/count'
2950 - $ref: '#/components/parameters/videoRedundanciesSort'
2953 description: successful operation
2959 $ref: '#/components/schemas/VideoRedundancy'
2963 summary: Mirror a video
2979 description: successful operation
2981 description: cannot mirror a local video
2983 description: video does not exist
2985 description: video is already mirrored
2986 /redundancy/videos/{redundancyId}:
2990 summary: Delete a mirror done on a video
2995 - name: redundancyId
2998 description: id of an existing redundancy on a video
3003 description: successful operation
3005 description: video redundancy not found
3006 '/feeds/video-comments.{format}':
3010 summary: List comments on videos
3012 - url: 'https://peertube2.cpy.re'
3013 description: Live Test Server (live data - latest nightly version)
3014 - url: 'https://peertube3.cpy.re'
3015 description: Live Test Server (live data - latest RC version)
3016 - url: 'https://peertube.cpy.re'
3017 description: Live Test Server (live data - stable version)
3022 description: 'format expected (we focus on making `rss` the most featureful ; it serves [Media RSS](https://www.rssboard.org/media-rss))'
3035 description: 'limit listing to a specific video'
3040 description: 'limit listing to a specific account'
3045 description: 'limit listing to a specific account'
3048 - name: videoChannelId
3050 description: 'limit listing to a specific video channel'
3053 - name: videoChannelName
3055 description: 'limit listing to a specific video channel'
3060 description: successful operation
3065 default: 'max-age=900' # 15 min cache
3069 $ref: '#/components/schemas/VideoCommentsForXML'
3070 application/rss+xml:
3072 $ref: '#/components/schemas/VideoCommentsForXML'
3075 $ref: '#/components/schemas/VideoCommentsForXML'
3076 application/atom+xml:
3078 $ref: '#/components/schemas/VideoCommentsForXML'
3083 x-summary: field inconsistencies
3086 - videoId filter is mixed with a channel filter
3088 description: video, video channel or account not found
3090 description: accept header unsupported
3091 '/feeds/videos.{format}':
3095 summary: List videos
3097 - url: 'https://peertube2.cpy.re'
3098 description: Live Test Server (live data - latest nightly version)
3099 - url: 'https://peertube3.cpy.re'
3100 description: Live Test Server (live data - latest RC version)
3101 - url: 'https://peertube.cpy.re'
3102 description: Live Test Server (live data - stable version)
3107 description: 'format expected (we focus on making `rss` the most featureful ; it serves [Media RSS](https://www.rssboard.org/media-rss))'
3120 description: 'limit listing to a specific account'
3125 description: 'limit listing to a specific account'
3128 - name: videoChannelId
3130 description: 'limit listing to a specific video channel'
3133 - name: videoChannelName
3135 description: 'limit listing to a specific video channel'
3138 - $ref: '#/components/parameters/sort'
3139 - $ref: '#/components/parameters/nsfw'
3140 - $ref: '#/components/parameters/filter'
3143 description: successful operation
3148 default: 'max-age=900' # 15 min cache
3152 $ref: '#/components/schemas/VideosForXML'
3155 externalValue: https://peertube2.cpy.re/feeds/videos.xml?filter=local
3156 application/rss+xml:
3158 $ref: '#/components/schemas/VideosForXML'
3161 $ref: '#/components/schemas/VideosForXML'
3162 application/atom+xml:
3164 $ref: '#/components/schemas/VideosForXML'
3169 description: video channel or account not found
3171 description: accept header unsupported
3176 summary: List plugins
3189 - $ref: '#/components/parameters/start'
3190 - $ref: '#/components/parameters/count'
3191 - $ref: '#/components/parameters/sort'
3194 description: successful operation
3198 $ref: '#/components/schemas/PluginResponse'
3203 summary: List available plugins
3216 - name: currentPeerTubeEngine
3220 - $ref: '#/components/parameters/start'
3221 - $ref: '#/components/parameters/count'
3222 - $ref: '#/components/parameters/sort'
3225 description: successful operation
3229 $ref: '#/components/schemas/PluginResponse'
3231 description: plugin index unavailable
3236 summary: Install a plugin
3249 example: peertube-plugin-auth-ldap
3252 additionalProperties: false
3259 additionalProperties: false
3262 description: successful operation
3264 description: should have either `npmName` or `path` set
3269 summary: Update a plugin
3282 example: peertube-plugin-auth-ldap
3285 additionalProperties: false
3292 additionalProperties: false
3295 description: successful operation
3297 description: should have either `npmName` or `path` set
3299 description: existing plugin not found
3304 summary: Uninstall a plugin
3316 description: name of the plugin/theme in its package.json
3317 example: peertube-plugin-auth-ldap
3322 description: successful operation
3324 description: existing plugin not found
3329 summary: Get a plugin
3334 - $ref: '#/components/parameters/npmName'
3337 description: successful operation
3341 $ref: '#/components/schemas/Plugin'
3343 description: plugin not found
3344 /plugins/{npmName}/settings:
3348 summary: Set a plugin's settings
3353 - $ref: '#/components/parameters/npmName'
3362 additionalProperties: true
3365 description: successful operation
3367 description: plugin not found
3368 /plugins/{npmName}/public-settings:
3372 summary: Get a plugin's public settings
3374 - $ref: '#/components/parameters/npmName'
3377 description: successful operation
3382 additionalProperties: true
3384 description: plugin not found
3385 /plugins/{npmName}/registered-settings:
3389 summary: Get a plugin's registered settings
3394 - $ref: '#/components/parameters/npmName'
3397 description: successful operation
3402 additionalProperties: true
3404 description: plugin not found
3406 - url: 'https://peertube2.cpy.re/api/v1'
3407 description: Live Test Server (live data - latest nightly version)
3408 - url: 'https://peertube3.cpy.re/api/v1'
3409 description: Live Test Server (live data - latest RC version)
3410 - url: 'https://peertube.cpy.re/api/v1'
3411 description: Live Test Server (live data - stable version)
3418 description: Offset used to paginate results
3426 description: "Number of items to return"
3436 description: Sort column
3444 description: Plain text search, applied to various parts of the model depending on endpoint
3452 If the administrator enabled search index support, you can override the default search target.
3455 **Warning**: If you choose to make an index search, PeerTube will get results from a third party service.
3456 It means the instance may not yet know the objects you fetched. If you want to load video/channel information:
3457 * If the current user has the ability to make a remote URI search (this information is available in the config endpoint),
3458 then reuse the search API to make a search using the object URI so PeerTube instance fetches the remote object and fill its database.
3459 After that, you can use the classic REST API endpoints to fetch the complete object or interact with it
3460 * 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
3461 the data from the origin instance API
3471 description: Sort videos by criteria
3486 description: Sort videos by criteria
3501 description: Sort comments by criteria
3511 description: Sort blacklists by criteria
3527 description: Plain text search that will match with user usernames or emails
3534 description: Filter results down to (un)banned users
3541 description: Sort users by criteria
3552 description: Sort abuses by criteria
3559 videoRedundanciesSort:
3563 description: Sort abuses by criteria
3572 description: The name of the account
3575 example: chocobozzz | chocobozzz@example.org
3580 description: The user id
3589 description: The object id or uuid
3597 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
3599 name: playlistElementId
3602 description: Playlist element id
3609 description: Abuse id
3613 name: abuseMessageId
3616 description: Abuse message id
3620 name: captionLanguage
3623 description: The caption language
3630 description: The video channel handle
3633 example: my_username | my_username@example.com
3635 name: subscriptionHandle
3638 description: The subscription handle
3641 example: my_username | my_username@example.com
3646 description: The thread id (root comment id)
3653 description: The comment id
3660 description: category id of the video (see [/videos/categories](#tag/Video/paths/~1videos~1categories/get))
3673 description: tag(s) of the video
3686 description: tag(s) of the video, where all should be present in the video
3699 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
3712 description: licence id of the video (see [/videos/licences](#tag/Video/paths/~1videos~1licences/get))
3725 description: if you don't need the `total` in the response
3736 description: whether to include nsfw videos, if any
3747 Special filters which might require special rights:
3748 * `local` - only videos local to the instance
3749 * `all-local` - only videos local to the instance, but showing private and unlisted videos (requires Admin privileges)
3750 * `all` - all videos, showing private and unlisted videos (requires Admin privileges)
3760 description: list of uris to check if each is part of the user subscriptions
3770 description: name of the plugin/theme on npmjs.com or in its package.json
3773 example: peertube-plugin-auth-ldap
3777 In the header: *Authorization: Bearer <token\>*
3780 Authenticating via OAuth requires the following steps:
3783 - Have an account with sufficient authorization levels
3785 - [Generate](https://docs.joinpeertube.org/#/api-rest-getting-started) a
3788 - Make Authenticated Requests
3792 tokenUrl: 'https://peertube.example.com/api/v1/users/token'
3795 moderator: Moderator scope
3798 VideoConstantNumber:
3804 VideoConstantString:
3811 VideoPlaylistPrivacySet:
3817 description: 'The video playlist privacy (Public = `1`, Unlisted = `2`, Private = `3`)'
3818 VideoPlaylistPrivacyConstant:
3821 $ref: '#/components/schemas/VideoPlaylistPrivacySet'
3825 VideoPlaylistTypeSet:
3830 description: 'The video playlist type (Regular = `1`, Watch Later = `2`)'
3831 VideoPlaylistTypeConstant:
3834 $ref: '#/components/schemas/VideoPlaylistTypeSet'
3845 description: 'The video privacy (Public = `1`, Unlisted = `2`, Private = `3`, Internal = `4`)'
3846 VideoPrivacyConstant:
3849 $ref: '#/components/schemas/VideoPrivacySet'
3866 description: 'The user role (Admin = `0`, Moderator = `1`, User = `2`)'
3877 description: 'The video state (Published = `1`, to transcode = `2`, to import = `3`)'
3887 description: 'The abuse state (Pending = `1`, Rejected = `2`, Accepted = `3`)'
3891 $ref: '#/components/schemas/AbuseStateSet'
3894 AbusePredefinedReasons:
3907 example: [spamOrMisleading]
3909 VideoResolutionConstant:
3913 description: 'Video resolution (240, 360, 720 ...)'
3918 VideoScheduledUpdate:
3921 $ref: '#/components/schemas/VideoPrivacySet'
3925 description: When to update the video
3945 - $ref: '#/components/schemas/Avatar'
3946 VideoChannelSummary:
3963 - $ref: '#/components/schemas/Avatar'
3975 - $ref: '#/components/schemas/Video'
3981 $ref: '#/components/schemas/VideoResolutionConstant'
3984 description: 'Video file size in bytes'
4002 VideoStreamingPlaylists:
4010 description: 'Playlist type (HLS = `1`)'
4019 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)'
4021 $ref: '#/components/schemas/VideoFile'
4037 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4048 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4060 originallyPublishedAt:
4064 $ref: '#/components/schemas/VideoConstantNumber'
4066 $ref: '#/components/schemas/VideoConstantNumber'
4068 $ref: '#/components/schemas/VideoConstantString'
4070 $ref: '#/components/schemas/VideoPrivacyConstant'
4080 example: What is PeerTube?
4083 example: /static/thumbnails/a65bc12f-9383-462e-81ae-8207e8b434ee.jpg
4086 example: /lazy-static/previews/a65bc12f-9383-462e-81ae-8207e8b434ee.jpg
4089 example: /videos/embed/a65bc12f-9383-462e-81ae-8207e8b434ee
4105 $ref: '#/components/schemas/VideoStateConstant'
4109 - $ref: '#/components/schemas/VideoScheduledUpdate'
4117 $ref: '#/components/schemas/AccountSummary'
4119 $ref: '#/components/schemas/VideoChannelSummary'
4128 - $ref: '#/components/schemas/Video'
4135 description: A text tell the audience how to support the video creator
4136 example: Please support my work on <insert crowdfunding plateform>! <3
4138 $ref: '#/components/schemas/VideoChannel'
4140 $ref: '#/components/schemas/Account'
4145 example: [flowers, gardening]
4148 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'
4150 $ref: '#/components/schemas/VideoFile'
4163 $ref: '#/components/schemas/VideoStreamingPlaylists'
4164 FileRedundancyInformation:
4201 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4208 $ref: '#/components/schemas/FileRedundancyInformation'
4212 $ref: '#/components/schemas/FileRedundancyInformation'
4213 VideoImportStateConstant:
4221 description: 'The video import state (Pending = `1`, Success = `2`, Failed = `3`)'
4233 example: https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d
4237 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
4241 $ref: '#/components/schemas/VideoImportStateConstant'
4251 $ref: '#/components/schemas/Video'
4259 example: The video is a spam
4261 $ref: '#/components/schemas/AbusePredefinedReasons'
4263 $ref: '#/components/schemas/Account'
4265 $ref: '#/components/schemas/AbuseStateConstant'
4268 example: Decided to ban the server since it spams us regularly
4279 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4295 $ref: '#/components/schemas/AccountSummary'
4313 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4342 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4358 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4368 $ref: '#/components/schemas/VideoPlaylistPrivacyConstant'
4370 $ref: '#/components/schemas/VideoPlaylistTypeConstant'
4372 $ref: '#/components/schemas/AccountSummary'
4374 $ref: '#/components/schemas/VideoChannelSummary'
4396 totalRepliesFromVideoAuthor:
4401 $ref: '#/components/schemas/Account'
4402 VideoCommentThreadTree:
4405 $ref: '#/components/schemas/VideoComment'
4409 $ref: '#/components/schemas/VideoCommentThreadTree'
4413 $ref: '#/components/schemas/VideoConstantString'
4468 $ref: '#/components/schemas/Avatar'
4471 - $ref: '#/components/schemas/Actor'
4484 description: timestamp within the video, in seconds
4551 allowedForCurrentIP:
4553 requiresEmailVerification:
4757 requiresEmailVerification:
4782 allowAdditionalExtensions:
4850 $ref: '#/components/schemas/Actor'
4852 $ref: '#/components/schemas/Actor'
4855 description: score reflecting the reachability of the actor, with steps of `10` and a base score of `1000`.
4868 PredefinedAbuseReasons:
4869 description: Reason categories that help triage reports
4900 - activitypub-http-unicast
4901 - activitypub-http-broadcast
4902 - activitypub-http-fetcher
4903 - activitypub-follow
4909 - activitypub-refresher
4913 additionalProperties: true
4916 additionalProperties: true
4940 VideoUploadResponse:
4951 example: 9c9de5e8-0a1e-484a-b099-e80766180a6d
4952 CommentThreadResponse:
4961 $ref: '#/components/schemas/VideoComment'
4962 CommentThreadPostResponse:
4965 $ref: '#/components/schemas/VideoComment'
4975 $ref: '#/components/schemas/Video'
4983 description: The user username
4989 description: The user email
4992 description: Theme enabled by this user
4995 description: Has the user confirmed their email address?
4997 $ref: '#/components/schemas/NSFWPolicy'
5000 description: Enable P2P in the player
5003 description: Automatically start playing the video on the watch page
5005 $ref: '#/components/schemas/UserRole'
5014 description: The user video quota
5017 description: The user daily video quota
5022 abusesAcceptedCount:
5028 noInstanceConfigWarningModal:
5039 $ref: '#/components/schemas/Account'
5043 $ref: '#/components/schemas/VideoChannel'
5048 description: The user username
5054 description: The user password. If the smtp server is configured, you can leave empty and an email will be sent
5060 description: The user email
5063 description: The user video quota
5066 description: The user daily video quota
5068 $ref: '#/components/schemas/UserRole'
5080 description: The user id
5084 description: The updated email of the user
5087 description: The updated video quota of the user
5090 description: The updated daily video quota of the user
5092 $ref: '#/components/schemas/UserRole'
5104 description: Your new password
5110 description: Your new email
5113 description: Your new displayNSFW
5120 description: Your new autoPlayVideo
5130 description: Id of the video
5133 description: Rating of the video
5140 $ref: '#/components/schemas/Video'
5143 description: 'Rating of the video'
5151 description: The username of the user
5154 pattern: '/^[a-z0-9._]{1,50}$/'
5158 description: The password of the user
5164 description: The email of the user
5167 description: The user display name
5175 description: The name for the default channel
5176 pattern: '/^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\\-_.:]+$/'
5179 description: The display name for the default channel
5196 description: 'A text shown by default on all videos of this channel, to tell the audience how to support it'
5197 example: Please support my work on <insert crowdfunding plateform>! <3
5209 description: 'A text shown by default on all videos of this channel, to tell the audience how to support it'
5210 example: Please support my work on <insert crowdfunding plateform>! <3
5211 bulkVideosSupportUpdate:
5213 description: 'Update the support field for all videos of this channel'
5218 name: 'media:peerLink'
5227 - application/x-bittorrent
5233 name: 'media:content'
5264 VideoCommentsForXML:
5299 description: video watch page URL
5302 description: video canonical URL
5306 description: video publication date
5309 description: video description
5312 description: video description
5315 description: publisher user name
5318 description: video category (MRSS)
5321 description: see [media:community](https://www.rssboard.org/media-rss#media-community) (MRSS)
5336 description: video embed path, relative to the canonical URL domain (MRSS)
5345 description: video watch path, relative to the canonical URL domain (MRSS)
5366 description: see [media:title](https://www.rssboard.org/media-rss#media-title) (MRSS). We only use `plain` titles.
5367 'media:description':
5374 description: see [media:rating](https://www.rssboard.org/media-rss#media-rating) (MRSS)
5377 description: main streamable file for the video
5387 - application/x-bittorrent
5396 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)
5399 - $ref: '#/components/schemas/MRSSPeerLink'
5400 - $ref: '#/components/schemas/MRSSGroupContent'
5401 NotificationSettingValue:
5422 Notification type, following the `UserNotificationType` enum:
5424 - `1` NEW_VIDEO_FROM_SUBSCRIPTION
5426 - `2` NEW_COMMENT_ON_MY_VIDEO
5428 - `3` NEW_ABUSE_FOR_MODERATORS
5430 - `4` BLACKLIST_ON_MY_VIDEO
5432 - `5` UNBLACKLIST_ON_MY_VIDEO
5434 - `6` MY_VIDEO_PUBLISHED
5436 - `7` MY_VIDEO_IMPORT_SUCCESS
5438 - `8` MY_VIDEO_IMPORT_ERROR
5440 - `9` NEW_USER_REGISTRATION
5444 - `11` COMMENT_MENTION
5446 - `12` VIDEO_AUTO_BLACKLIST_FOR_MODERATORS
5448 - `13` NEW_INSTANCE_FOLLOWER
5450 - `14` AUTO_INSTANCE_FOLLOWING
5456 - $ref: '#/components/schemas/VideoInfo'
5460 $ref: '#/components/schemas/ActorInfo'
5469 $ref: '#/components/schemas/VideoInfo'
5490 $ref: '#/components/schemas/VideoInfo'
5492 $ref: '#/components/schemas/ActorInfo'
5501 - $ref: '#/components/schemas/VideoInfo'
5510 - $ref: '#/components/schemas/VideoInfo'
5514 - $ref: '#/components/schemas/ActorInfo'
5522 $ref: '#/components/schemas/ActorInfo'
5550 NotificationListResponse:
5559 $ref: '#/components/schemas/Notification'
5564 example: peertube-plugin-auth-ldap
5592 example: https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-ldap
5595 additionalProperties: true
5611 $ref: '#/components/schemas/Plugin'
5624 description: RTMP stream key to use to stream into this live video
5630 'https://search.example.org/api/v1/search/videos':
5632 summary: third-party search index MAY be used instead of the local index, if enabled by the instance admin. see `searchTarget`
5635 description: successful operation
5639 $ref: '#/components/schemas/VideoListResponse'