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

# Consent

`POST /api/oauth/authorize`

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/fastapi.md) · [All operations](https://skmtc.dev/openshorts/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openshorts/fastapi/revisions/8085a0ce516b/schema)
