---
title: "Request Authorization"
method: GET
path: "/oauth2/authorize"
tags: ["Auth API"]
---

# Request Authorization

`GET /oauth2/authorize`

This endpoint lets you authorize by redirecting login prompts and consent signing process if applicable. This endpoint only supports authorization for the code grant flow.

## Query parameters

- `client_id` string, required
- `state` string, required
- `redirect_uri` string, required
- `code_challenge_method` string
- `code_challenge` string

## Other responses

- `302` — Redirect to the given url appending temporary code to request tokens.
- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.net/grubtech/apis/grubtech-auth-server.md) · [All operations](https://skmtc.net/grubtech/apis/grubtech-auth-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/grubtech/grubtech-auth-server/revisions/21688b6dcb69/schema)
