---
title: "OAuth 2.1 authorization endpoint (GET)"
method: GET
path: "/api/oauth/authorize"
tags: ["OAuth"]
---

# OAuth 2.1 authorization endpoint (GET)

`GET /api/oauth/authorize`

## Request

- Base URL: `https://intentdocs.com`
- URL: `https://intentdocs.com/api/oauth/authorize`
- Auth: none declared

Initiate OAuth 2.1 authorization flow. Redirects to login if not authenticated, then to the redirect_uri with authorization code.

## Query parameters

- `client_id` string, required
- `redirect_uri` string
- `response_type` 'code', required
- `code_challenge` string, required
- `code_challenge_method` 'S256', required
- `state` string
- `scope` string

## Other responses

- `302`: Redirect to login or redirect_uri with authorization code
- `400`: Invalid request

---

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