---
title: "Consent"
method: POST
path: "/api/oauth/authorize"
---

# Consent

`POST /api/oauth/authorize`

## Request

- Base URL: `https://api.openshorts.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openshorts.app/api/oauth/authorize`
- Auth: none declared

The user said yes on the dashboard: mint the code, return where to go.

## Request body

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

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/openshorts/apis/openshorts-api.md) - [All operations](https://skmtc.dev/openshorts/apis/openshorts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openshorts/apis/openshorts-api/revisions/62b7629b5e88?raw)
