PeerTube · Authentication Profile

Peertube Authentication

Authentication

PeerTube secures its APIs with oauth2 across 1 declared security scheme, as derived from its OpenAPI definitions. OAuth 2.0 is offered via the password flow(s).

VideoDecentralizedFederationOpen SourceActivityPubSelf-HostedStreaming
Methods: oauth2 Schemes: 1 OAuth flows: password API key in:

Security Schemes

OAuth2 oauth2
· flows: password

Source

Authentication Profile

Raw ↑
generated: '2026-07-11'
method: derived
source: openapi/openapi.json, openapi/openapi.yaml
summary:
  types:
  - oauth2
  oauth2_flows:
  - password
schemes:
- name: OAuth2
  type: oauth2
  flows:
  - flow: password
    tokenUrl: /api/v1/users/token
    scopes: 3
  description: |-
    Authenticating 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__.

    [Generate
  sources:
  - openapi/openapi.json
  - openapi/openapi.yaml