---
title: "GET /oauth2/authorize"
method: GET
path: "/oauth2/authorize"
tags: ["authorization"]
---

# GET /oauth2/authorize

`GET /oauth2/authorize`

OAuth2 認可エンドポイント

## Query parameters

- `response_type` 'code' | 'token' | 'none'
- `client_id` string, required
- `redirect_uri` string
- `scope` string
- `state` string
- `code_challenge` string
- `code_challenge_method` string
- `nonce` string
- `prompt` 'none'

## Other responses

- `302` — 結果に応じてリダイレクトします。
- `400` — リクエストが不正です。
- `403` — リクエストが許可されていません。

## Changes

- **2019-09-09** `801af87793dd` — 1 breaking
  - the `query` request parameter `client_id` became required
- **2019-07-24** `66a69a1387ed` — 1 info
  - api operation id `getOauth2Authorize` was added
- **2019-07-22** `d2f7470b1a57` — 2 breaking, 4 info
  - the `query` request parameter `prompt` was restricted to a list of enum values
  - the `query` request parameter `response_type` was restricted to a list of enum values
  - added the new enum value `code` to the `query` request parameter `response_type`
  - added the new enum value `none` to the `query` request parameter `prompt`
  - …2 more
- **2019-07-05** `6956f2622a20` — 15 info
  - api operation id `getOauth2Authorize` removed and replaced with ``
  - endpoint reactivated
  - added the new optional `query` request parameter `client_id`
  - added the new optional `query` request parameter `code_challenge`
  - …11 more

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

---

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