---
title: "Initiate custom OAuth flow (PKCE)"
method: GET
path: "/api/auth/oauth/custom/{key}"
tags: ["Client"]
---

# Initiate custom OAuth flow (PKCE)

`GET /api/auth/oauth/custom/{key}`

Generate OAuth authorization URL for a configured custom OAuth provider using PKCE flow

## Path parameters

- `key` string, required

## Query parameters

- `redirect_uri` string, uri, required
- `code_challenge` string

## Response `200`

OAuth authorization URL

- object
  - `authUrl` string, uri

## Other responses

- `400` — Invalid request
- `404` — Custom OAuth provider not found

---

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