---
title: "Authorize"
method: GET
path: "/oauth/authorize"
tags: ["OAuth"]
---

# Authorize

`GET /oauth/authorize`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/oauth/authorize`
- Auth: none declared

Validate authorization-request params and bounce the browser to consent.

On invalid client_id or redirect_uri we 400 directly — we won't redirect
to an unverified URI. For other validation failures we redirect back to
the registered redirect_uri with ``error=...`` per OAuth 2.1 §4.1.2.1.

## Query parameters

- `response_type` string, required
- `client_id` string, required
- `redirect_uri` string, required
- `code_challenge` string, required
- `code_challenge_method` string
- `scope` string
- `state` string
- `resource` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/rubenayla/apis/partle-api.md) · [All operations](https://skmtc.dev/rubenayla/apis/partle-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rubenayla/apis/partle-api/revisions/628cce2acee5?raw)
