---
title: "Single static OAuth redirect target (state-keyed, all flows)"
method: GET
path: "/api/oauth/callback"
tags: ["OAuth"]
---

# Single static OAuth redirect target (state-keyed, all flows)

`GET /api/oauth/callback`

## Query parameters

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

## Response `200`

OAuth authorization completed

## Other responses

- `302` — Redirect back to the final destination
- `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)
