Video Channels

List channel collaborators

GET
https://peertube2.cpy.re/api/v1/video-channels/{channelHandle}/collaborators

PeerTube >= 8.0

Parameters

channelHandlestringrequiredpath

The video channel handle

Response

200OKobject

successful operation

Response fields application/json
totalinteger
Example
1
Show child attributes

Representation of a channel collaboration

idid>= 1
Example
42
Show child attributes
idinteger
namestring
displayNamestring
urlstring<url>
hoststring<hostname>
Show child attributes
pathstring | nulldeprecated

Deprecated in PeerTube v8.0, use fileUrl instead. Null if the file is stored in object storage: use the non-deprecated field instead.

fileUrlstring

PeerTube >= 7.1

widthinteger
heightinteger

PeerTube >= 7.3

createdAtstring<date-time>
updatedAtstring<date-time>
stateobject
Show child attributes

The user import state:

  • 1: Pending
  • 2: Accepted
labelstring
createdAtstring<date-time>
updatedAtstring<date-time>

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.