---
title: "OAuth Provider Callback"
method: GET
path: "/api/auth/oauth/{provider}/callback"
tags: ["OAuth & SSO"]
---

# OAuth Provider Callback

`GET /api/auth/oauth/{provider}/callback`

## Request

- Base URL: `https://flowdot.ai/api`
- URL: `https://flowdot.ai/api/api/auth/oauth/{provider}/callback`
- Auth: none declared

Handle OAuth provider callback and complete authentication.

## Path parameters

- `provider` string, required

## Query parameters

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

## Response `200`

Successful response

- unknown

## Other responses

- `400`: Invalid state or code
- `422`: Email already registered with different provider

---

[API](https://skmtc.dev/flowdot/apis/flowdot-api.md) · [All operations](https://skmtc.dev/flowdot/apis/flowdot-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flowdot/apis/flowdot-api/revisions/93f63cc9c775?raw)
