Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add OTP header doc

Chocobozzz19b8cfaa4f14
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml
index c665f811e9..a3380343dc 100644
--- a/support/doc/api/openapi.yaml
+++ b/support/doc/api/openapi.yaml
@@ -1503,6 +1503,13 @@ paths:
description: With your [client id and secret](#operation/getOAuthClient), you can retrieve an access and refresh tokens.
tags:
- Session
+ parameters:
+ - name: x-peertube-otp
+ in: header
+ schema:
+ type: string
+ required: false
+ description: If the user enabled two factor authentication, you need to provide the OTP code in this header
requestBody:
content:
application/x-www-form-urlencoded: