---
title: "OAuth2 authorization request (GET - show authorization page)."
method: GET
path: "/oauth2/authorize"
tags: ["Enterprise"]
---

# OAuth2 authorization request (GET - show authorization page).

`GET /oauth2/authorize`

## Query parameters

- `client_id` string, required
- `state` string, required
- `response_type` 'code' | 'token', required
- `redirect_uri` string
- `scope` string

## Response `200`

Returns HTML authorization page

## Other responses

- `302` — Redirects to the app's registered callback carrying an OAuth2 error (RFC 6749 4.1.2.1)

## Changes

- **2026-09-02** `da2d760560c1` — 1 info
  - added the non-success response with the status `302`

[Change history](https://skmtc.dev/coder/apis/coder-api/changes/oauth2/authorize/get.md)

---

[API](https://skmtc.dev/coder/apis/coder-api.md) · [All operations](https://skmtc.dev/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coder/coder-api/revisions/a69832b6d696/schema)
