---
title: "Begin OAuth consent for an authorization-code connection"
method: GET
path: "/v1/connections/{id}/authorize"
---

# Begin OAuth consent for an authorization-code connection

`GET /v1/connections/{id}/authorize`

## Request

- Base URL: `https://api.klanexai.com`
- URL: `https://api.klanexai.com/v1/connections/{id}/authorize`
- Auth: API key in header `X-API-Key`

302-redirects the operator's browser to the provider's consent screen. The return trip lands on /v1/connections/callback.

## Path parameters

- `id` string, required

## Other responses

- `302`: Redirect to the provider consent screen.
- `401`: Missing or invalid X-API-Key.
- `404`: No such execution for this tenant.
- `409`: Connection does not use the authorize flow (NOT_AUTHORIZABLE).

---

[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)
