---
title: "OAuth redirect target (provider → klanex)"
method: GET
path: "/v1/connections/callback"
---

# OAuth redirect target (provider → klanex)

`GET /v1/connections/callback`

## Request

- Base URL: `https://api.klanexai.com`
- URL: `https://api.klanexai.com/v1/connections/callback`
- Auth: none required

Not API-key authenticated; trust comes from the one-time state planted on the connection. Exchanges the code for tokens and shows an HTML result page.

## Query parameters

- `code` string
- `state` string

## Response `200`

Consent completed; connection is connected.

## Other responses

- `400`: Missing/invalid code or state.

---

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