---
title: "OAuth2 v2 callback endpoint"
method: GET
path: "/api/v1/oauth2_v2/callback"
tags: ["Authentication"]
---

# OAuth2 v2 callback endpoint

`GET /api/v1/oauth2_v2/callback`

## Request

- Base URL: `https://toolkit.browserstack.com`
- URL: `https://toolkit.browserstack.com/api/v1/oauth2_v2/callback`
- Auth: none required

Handles OAuth2 v2 callback and redirects to success or error page.

## Query parameters

- `code` string, required
- `state` string, required

## Other responses

- `302`: Authentication failed - invalid state

---

[API](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api.md) - [All operations](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api/llms.txt) - [OpenAPI document](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api/revisions/cbd06b547b6a?raw)
