Users
Create a user
POST
https://peertube2.cpy.re/api/v1/users
Body
application/json
If the smtp server is configured, you can leave the password empty and an email will be sent asking the user to set it first.
immutable name of the user, used to find or mention its actor
Example
chocobozzzemailstring<email>requiredThe user email
videoQuotaintegerThe user video quota in bytes
Example
-1videoQuotaDailyintegerThe user daily video quota in bytes
Example
-1channelNameusernameChannelimmutable name of the channel, used to interact with its actor
Example
framasoft_videoscurrentPasswordcurrentPasswordRequired to create an administrator, see password confirmation
Response
user created
403Forbidden
insufficient authority to create an admin or moderator
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.
Scopes: admin