# OAuth Success

`GET https://api.torbox.app/v1/api/integration/oauth/{provider}/success`

- Operation ID: `oauth_success`
- Group: Integrations
- Auth: none

### Overview

Answers with a fixed success message for the providers `google`, `dropbox`, `discord`, `onedrive` and `patreon`. It reads nothing but the provider name and hands over no token: `data` is always null. Any other provider is answered with a JSON error.

This is not where the OAuth callback redirects to. The callback sends the browser to the page with the same path on the TorBox website, `https://torbox.app/oauth/{provider}/success`, with the tokens in the query string. This route on the API takes no part in handing them over.

### Authorization

None required.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `provider` | path | string | yes | The service. One of `google`, `dropbox`, `discord`, `onedrive` or `patreon`. |

## Responses

- `200` Successful Response
- `400` Bad Request
- `404` Not Found
- `422` Validation Error
- `429` Too Many Requests
- `500` Internal Server Error
