---
title: "Consent"
method: POST
path: "/oauth/authorize/consent"
tags: ["OAuth"]
---

# Consent

`POST /oauth/authorize/consent`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/oauth/authorize/consent`
- Auth: OAuth 2 (password, token URL `/v1/auth/login`)

Issue an authorization code after the user has approved the grant.

## Request body

- ConsentRequest: Body posted by the frontend consent page after the user clicks Allow.
  - `client_id` string, required
  - `redirect_uri` string, required
  - `scope` string
  - `state` string
  - `code_challenge` string, required
  - `code_challenge_method` string
  - `resource` string, nullable

## Response `200`

Successful Response

- ConsentResponse: Where the frontend should send the browser after consent.
  - `redirect_uri` string, required

## 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)
