Integrations
Authenticate OAuth
GET /v1/api/integration/oauth/{provider}
GET https://api.torbox.app/v1/api/integration/oauth/{provider}
- Operation ID:
authenticate_oauth - Group: Integrations
- Auth: none
Overview
Starts the OAuth login with another service. This is a browser redirect, not a call for a script: open it in the user's browser. It answers with a redirect to the login page of the service named in provider. When the user has approved, the service sends the browser back to the callback route of this API, https://api.torbox.app/v1/api/integration/oauth/{provider}/callback, which finishes the login.
The accepted providers and where the browser is sent:
google->https://accounts.google.com/o/oauth2/auth, asking for the scopeshttps://www.googleapis.com/auth/drive.fileandhttps://www.googleapis.com/auth/userinfo.emaildropbox->https://www.dropbox.com/oauth2/authorize, asking forfiles.content.write sharing.writediscord->https://discord.com/api/oauth2/authorize, asking foridentify role_connections.writeonedrive->https://login.microsoftonline.com/common/oauth2/v2.0/authorize, asking forfiles.readwrite.allpatreon->https://www.patreon.com/oauth2/authorize, asking foridentityapple-> the Apple sign-in page, asking foropenid email. Apple is asked to send the result back as a form POST.anilist->https://anilist.co/api/v2/oauth/authorizemal->https://myanimelist.net/v1/oauth2/authorize, asking forwrite:userstrakt->https://trakt.tv/oauth/authorizesimkl->https://simkl.com/oauth/authorize
Any other provider is answered with a JSON error instead of a redirect.
Authorization
None required.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
provider | path | string | yes | The service to log in with. One of google, dropbox, discord, onedrive, patreon, apple, anilist, mal, trakt or simkl. |
Responses
302Found400Bad Request404Not Found422Validation Error429Too Many Requests500Internal Server Error