---
title: "Authorize"
method: POST
path: "/api/oauth/authorize"
tags: ["oauth"]
---

# Authorize

`POST /api/oauth/authorize`

## Request

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

点「同意」或「拒绝」：回给页面一个回跳地址。

只收 JSON，跨站表单递不进来（会话 cookie 是 SameSite=Lax）。

## Request body

- AuthorizeDecision
  - `params` object
  - `allow` boolean, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ucai/apis/abs-core.md) · [All operations](https://skmtc.dev/ucai/apis/abs-core/llms.txt) · [OpenAPI document](https://skmtc.dev/ucai/apis/abs-core/revisions/1502a61b5620?raw)
