---
title: "Legacy per-provider OAuth redirect target (delegates to the static callback)"
method: GET
path: "/api/oauth/{provider}/callback"
tags: ["OAuth"]
---

# Legacy per-provider OAuth redirect target (delegates to the static callback)

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

## Path parameters

- `provider` string, required

## Query parameters

- `code` string
- `state` string
- `error` string
- `error_description` string

## Response `200`

OAuth authorization completed

## Other responses

- `400` — Missing or invalid OAuth callback parameters
- `404` — OAuth app not configured
- `502` — Token exchange failed

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/0375890be8c4/schema)
