---
title: "OAuth callback endpoint"
method: GET
path: "/api/oauth/callback"
tags: ["OAuth"]
---

# OAuth callback endpoint

`GET /api/oauth/callback`

Handles the OAuth provider callback after user authorization.
This endpoint processes the authorization code and exchanges it for an access token.
On success, displays an HTML page that closes the authorization window.

## Query parameters

- `state` string, required
- `code` string
- `error` string
- `error_description` string

## Response `200`

OAuth authorization successful. Returns HTML page that closes the authorization window.

## Other responses

- `400` — OAuth authorization failed or missing required parameters

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
