How to authenticate with the PeerTube API.
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]: https://docs.joinpeertube.org/api/rest-getting-started
/api/v1/users/token| Scope | Description |
|---|---|
user | User scope |
admin | Admin scope |
moderator | Moderator scope |
How to authenticate with the PeerTube API.
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]: https://docs.joinpeertube.org/api/rest-getting-started
/api/v1/users/token| Scope | Description |
|---|---|
user | User scope |
admin | Admin scope |
moderator | Moderator scope |