Plugins

Get a plugin

GET
https://peertube2.cpy.re/api/v1/plugins/{npmName}

Parameters

npmNamestringrequiredpath

name of the plugin/theme on npmjs.com or in its package.json

Response

200OKPlugin

successful operation

Response fields application/json
namestring
Example
peertube-plugin-auth-ldap
typeinteger12
  • 1: PLUGIN
  • 2: THEME
latestVersionstring
Example
0.0.3
versionstring
Example
0.0.1
enabledboolean
uninstalledboolean
peertubeEnginestring
Example
2.2.0
descriptionstring
homepagestring<url>
Example
https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-ldap
settingsobject
createdAtstring<date-time>
updatedAtstring<date-time>
404Not Found

plugin not found

Authorization

OAuth2oauth2

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.

Scopes: admin