5 description: Federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.
6 host: peertube.example.com
9 description: 'In the header: *Authorization: Bearer mytoken*'
13 # authorizationUrl: https://example.com/oauth/authorize
14 tokenUrl: https://peertube.example.com/api/v1/users/token
32 description: 'The id of the account'
37 description: 'starting page'
42 description: 'stopping page'
47 description: 'sorting'
50 description: successful operation
52 $ref: '#/definitions/Account'
63 description: successful operation
67 $ref: '#/definitions/Account'
78 description: successful operation
80 $ref: '#/definitions/ServerConfig'
96 description: 'The id of the account'
101 description: 'starting page'
111 description: 'sorting'
114 description: successful operation
118 $ref: '#/definitions/Job'
119 '/server/following/{host}':
134 description: 'The host to unfollow '
137 description: successful operation
151 description: 'starting page'
156 description: 'stopping page'
161 description: 'sorting'
164 description: successful operation
168 $ref: '#/definitions/Follow'
182 description: 'starting page'
187 description: 'stopping page'
192 description: 'sorting'
195 description: successful operation
199 $ref: '#/definitions/Follow'
213 $ref: '#/definitions/Follow'
216 description: successful operation
231 description: 'User to create'
233 $ref: '#/definitions/AddUser'
236 description: successful operation
238 $ref: '#/definitions/AddUserResponse'
253 description: 'starting page'
258 description: 'stopping page'
263 description: 'sorting'
266 description: successful operation
270 $ref: '#/definitions/User'
286 description: 'The user id '
289 description: successful operation
304 description: 'The user id '
307 description: successful operation
309 $ref: '#/definitions/User'
324 description: 'The user id '
329 $ref: '#/definitions/UpdateUser'
332 description: successful operation
345 description: successful operation
349 $ref: '#/definitions/User'
364 $ref: '#/definitions/UpdateMe'
367 description: successful operation
368 /users/me/video-quota-used:
381 description: successful operation
384 '/users/me/videos/{videoId}/rating':
399 description: 'The video id '
402 description: successful operation
404 $ref: '#/definitions/GetMeVideoRating'
420 description: 'starting page'
425 description: 'stopping page'
430 description: 'sorting'
433 description: successful operation
437 $ref: '#/definitions/Video'
451 $ref: '#/definitions/RegisterUser'
454 description: successful operation
455 /users/me/avatar/pick:
462 - multipart/form-data
469 description: The file to upload.
472 description: successful operation
474 $ref: '#/definitions/Avatar'
488 description: 'starting page'
493 description: 'stopping page'
498 description: 'sorting'
501 description: successful operation
505 $ref: '#/definitions/Video'
516 description: successful operation
531 description: successful operation
546 description: successful operation
561 description: successful operation
579 description: 'starting page'
584 description: 'stopping page'
589 description: 'sorting'
592 description: successful operation
596 $ref: '#/definitions/Video'
604 - multipart/form-data
612 description: 'The video id'
613 - name: thumbnailfile
616 description: 'Video thumbnail file'
620 description: 'Video preview file'
624 description: 'Video category'
628 description: 'Video licence'
632 description: 'Video language'
636 description: 'Video description'
640 description: 'Text describing how to support the video uploader'
644 description: 'Whether or not this video contains sensitive content'
648 description: 'Video name'
652 description: 'Video tags'
653 - name: commentsEnabled
656 description: 'Enable or disable comments for this video'
660 enum: [Public, Unlisted]
661 description: 'Video privacy'
664 description: successful operation
666 $ref: '#/definitions/Video'
679 description: 'The video id '
682 description: successful operation
684 $ref: '#/definitions/Video'
699 description: 'The video id '
702 description: successful operation
703 "/videos/{id}/description":
716 description: 'The video id '
719 description: successful operation
722 "/videos/{id}/views":
735 description: 'The video id '
738 description: successful operation
746 - multipart/form-data
754 description: 'Video file'
755 - name: thumbnailfile
759 description: 'Video thumbnail file'
764 description: 'Video preview file'
768 description: 'Video category'
772 description: 'Video licence'
776 description: 'Video language'
780 description: 'Video description'
784 description: 'Text describing how to support the video uploader'
789 description: 'Channel id that will contain this video'
794 description: 'Whether or not this video contains sensitive content'
799 description: 'Video name'
803 description: 'Video tags'
804 - name: commentsEnabled
807 description: 'Enable or disable comments for this video'
812 enum: [Public, Unlisted, Private]
813 description: 'Video privacy'
816 description: successful operation
818 $ref: '#/definitions/VideoUploadResponse'
834 description: 'starting page'
839 description: 'stopping page'
844 description: 'sorting'
847 description: successful operation
851 $ref: '#/definitions/VideoAbuse'
852 "/videos/{id}/abuse":
867 description: 'The video id '
870 description: successful operation
871 "/videos/{videoId}/blacklist":
886 description: 'The video id '
889 description: successful operation
904 description: 'The video id '
907 description: successful operation
923 description: 'starting page'
928 description: 'stopping page'
933 description: 'sorting'
936 description: successful operation
940 $ref: '#/definitions/VideoBlacklist'
954 description: 'starting page'
959 description: 'stopping page'
964 description: 'sorting'
967 description: successful operation
971 $ref: '#/definitions/VideoChannel'
985 $ref: '#/definitions/VideoChannelInput'
988 description: successful operation
989 "/videos/channels/{id}":
1002 description: 'The video id '
1005 description: successful operation
1007 $ref: '#/definitions/VideoChannel'
1022 description: 'The video id '
1026 $ref: '#/definitions/VideoChannelInput'
1029 description: successful operation
1044 description: 'The video id '
1047 description: successful operation
1048 /videos/accounts/{accountId}/channels:
1061 description: 'The account id '
1064 description: successful operation
1068 $ref: '#/definitions/VideoChannel'
1069 "/videos/{videoId}/comment-threads":
1082 description: 'The video id '
1087 description: 'starting page'
1092 description: 'stopping page'
1097 description: 'sorting'
1100 description: successful operation
1102 $ref: '#/definitions/CommentThreadResponse'
1117 description: 'The video id '
1120 description: successful operation
1122 $ref: '#/definitions/CommentThreadPostResponse'
1123 "/videos/{videoId}/comment-threads/{threadId}":
1136 description: 'The video id '
1141 description: 'The thread id '
1144 description: successful operation
1146 $ref: '#/definitions/VideoCommentThreadTree'
1147 "/videos/{videoId}/comments/{commentId}":
1162 description: 'The video id '
1167 description: 'The comment id '
1170 description: successful operation
1172 $ref: '#/definitions/CommentThreadPostResponse'
1187 description: 'The video id '
1192 description: 'The comment id '
1195 description: successful operation
1196 "/videos/{id}/rate":
1211 description: 'The video id '
1214 description: successful operation
1224 enum: [Public, Unlisted, Private]
1238 $ref: "#/definitions/VideoConstant"
1240 $ref: "#/definitions/VideoConstant"
1242 $ref: "#/definitions/VideoConstant"
1244 $ref: "#/definitions/VideoPrivacy"
1279 $ref: "#/definitions/Avatar"
1287 $ref: "#/definitions/Account"
1345 $ref: "#/definitions/Video"
1367 $ref: "#/definitions/Account"
1368 VideoCommentThreadTree:
1371 $ref: "#/definitions/VideoComment"
1375 $ref: "#/definitions/VideoCommentThreadTree"
1405 $ref: "#/definitions/Avatar"
1408 - $ref: "#/definitions/Actor"
1426 enum: [User, Moderator, Administrator]
1432 $ref: "#/definitions/Account"
1436 $ref: "#/definitions/VideoChannel"
1481 $ref: "#/definitions/Actor"
1483 $ref: "#/definitions/Actor"
1488 enum: [pending, accepted]
1499 enum: [pending, processing, error, success]
1502 enum: [transcoding, activitypub-http]
1519 VideoUploadResponse:
1528 CommentThreadResponse:
1535 $ref: "#/definitions/VideoComment"
1536 CommentThreadPostResponse:
1539 $ref: "#/definitions/VideoComment"
1546 description: 'The user username '
1549 description: 'The user password '
1552 description: 'The user email '
1555 description: 'The user videoQuota '
1558 description: 'The user role '
1569 description: 'The user id '
1572 description: 'The updated email of the user '
1575 description: 'The updated videoQuota of the user '
1578 description: 'The updated role of the user '
1588 description: 'Your new password '
1591 description: 'Your new email '
1594 description: 'Your new displayNSFW '
1597 description: 'Your new autoPlayVideo '
1607 description: 'Id of the video '
1610 description: 'Rating of the video '
1618 description: 'The username of the user '
1621 description: 'The password of the user '
1624 description: 'The email of the user '