Create a live
Body
multipart/form-dataobjectthumbnailfileimage/jpegpreviewfileimage/jpegchannelIdintegerrequiredChannel id that will contain this live video
saveReplaybooleanreplaySettingsLiveVideoReplaySettingspermanentLivebooleanUser can stream multiple times in a permanent live
latencyModeLiveVideoLatencyModeUser can select live latency mode if enabled by the instance
thumbnailfilestring<binary>Live video/replay thumbnail file
previewfilestring<binary>deprecatedDeprecated in PeerTube v8.1, use thumbnailfile instead
privacyVideoPrivacySet12345privacy id of the video (see /videos/privacies)
descriptionstringLive video/replay description
supportstringA text tell the audience how to support the creator
Please support our work on https://soutenir.framasoft.org/en/ <3nsfwbooleanWhether or not this live video/replay contains sensitive content
nsfwSummaryanyMore information about the sensitive content of the video
nsfwFlagsNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
namestringrequiredLive video/replay name
tagsArray<string>Live video/replay tags (maximum 5 tags each between 2 and 30 characters)
commentsPolicyVideoCommentsPolicySet123Comments policy of the video (Enabled = 1, Disabled = 2, Requires Approval = 3)
recommendationScopeVideoRecommendationScopeSet1234Videos that can be recommended next to a video:
1All videos2Only videos of the platform that owns the reference video (or of the current platform if no video is given)3Only videos of the account that owns the reference video4Only videos of the channel of the reference video
This is a preference of the video owner: applications displaying recommendations may not apply it
aiUsageVideoAIUsageSet1234PeerTube >= 9.0 Use of AI in the video, declared by the video creator:
1Not specified2No AI-generated content: nothing seen or heard in the video has been generated by AI3Contains AI-generated content: some parts of the video have been generated by AI4AI-generated: the whole video, or most of it, has been generated by AI
commercialContentVideoCommercialContentSet123PeerTube >= 9.0 Commercial content in the video, declared by the video creator:
1None2Promotional content: the creator promotes their own products, services or business3Paid partnership: a third party paid, or provided goods or services, in exchange for the promotion
downloadEnabledbooleanEnable or disable downloading for the replay of this live video
schedulesArray<LiveSchedule>Response
successful operation
Disambiguate via code:
- default type for a validation error
live_conflicting_permanent_and_save_replayfor conflicting parameters set
Disambiguate via code:
live_not_enabledfor a disabled live featurelive_not_allowing_replayfor a disabled replay featuremax_instance_lives_limit_reachedfor the absolute concurrent live limitmax_user_lives_limit_reachedfor the user concurrent live limit
Authorization
OAuth2oauth2Authenticating via OAuth requires the following steps:
- Have an activated account
- Generate an access token for that account at
/api/v1/users/token. - Make requests with the Authorization: Bearer <token> header
- Profit, depending on the role assigned to the account
Note that the access token is valid for 1 day and is given along with a refresh token valid for 2 weeks.