---
title: "OAuth2 Authorization Endpoint (POST)"
method: POST
path: "/oauth2/authorize"
tags: ["authentication"]
---

# OAuth2 Authorization Endpoint (POST)

`POST /oauth2/authorize`

Initiates an OAuth2 authorization code flow via POST. Validates the request and redirects to the login UI for user authentication and consent.

## Response `default`

OAuth2 error response

- OAuth2ErrorResponse
  - `error` string, required — OAuth2 error code
  - `error_description` string — Human-readable error description

## Other responses

- `302` — Redirect to login UI or back to client with error

---

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