---
title: "Redirect to React consent page."
method: GET
path: "/oauth/authorize"
tags: ["OAuth"]
---

# Redirect to React consent page.

`GET /oauth/authorize`

Query Parameters (handled by Authlib):
    client_id: OAuth client identifier
    redirect_uri: Where to redirect after authorization
    response_type: Must be 'code'
    scope: Space-separated list of requested scopes
    state: CSRF protection token (optional but recommended)
    code_challenge: PKCE code challenge
    code_challenge_method: PKCE method (usually 'S256')

Returns:
    Redirect to React consent page with OAuth params and client info

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