---
title: "Handle user authorization decision from React consent page."
method: POST
path: "/oauth/authorize"
tags: ["OAuth"]
---

# Handle user authorization decision from React consent page.

`POST /oauth/authorize`

Query Parameters:
    All OAuth params from GET (client_id, redirect_uri, state, etc.)

Form Parameters:
    confirm: 'yes' to authorize, 'no' to deny

Returns:
    Redirect to client with authorization code or error

## Response `default`

Default error response

- Error
  - `code` integer — Error code
  - `status` string — Error name
  - `message` string — Error message
  - `errors` object — Errors

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `405` — Method not allowed
- `409` — Conflict
- `500` — Internal server error

---

[API](https://skmtc.net/archera/apis/archera-ai-api.md) · [All operations](https://skmtc.net/archera/apis/archera-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/archera/archera-ai-api/versions/ed4f8fa35f31/schema)
