Register

List registrations

GET
https://peertube2.cpy.re/api/v1/users/registrations

Parameters

startinteger>= 0query

Offset used to paginate results

countinteger[1, 100]15query

Number of items to return

searchstringquery
sortstring-createdAtcreatedAtstate-statequery

Response

200OKobject

successful operation

Response fields application/json
totalinteger
Example
1
Show child attributes
idid>= 1
Example
42
stateobject
Show child attributes

The registration state (Pending = 1, Rejected = 2, Accepted = 3)

labelstring
registrationReasonstring
moderationResponsestring | null
usernamestring
emailstring<email>
emailVerifiedboolean
accountDisplayNamestring
channelHandlestring
channelDisplayNamestring
createdAtstring<date-time>
updatedAtstring<date-time>
userobject | null

If the registration has been accepted, this is a partial user object created by the registration

Show child attributes
idid>= 1
Example
42

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, moderator