---
title: "Approve OAuth authorization"
method: POST
path: "/oauth/authorize"
tags: ["OAuth Authorization"]
---

# Approve OAuth authorization

`POST /oauth/authorize`

Called after user authentication to create an authorization code. Returns the redirect URI with the authorization code as JSON. Requires the user to be authenticated via JWT.

## Request body

- OAuthAuthorizeRequestDto
  - `clientId` string, required
  - `redirectUri` string, required
  - `scopes` string
  - `state` string
  - `codeChallenge` string
  - `codeChallengeMethod` string

## Response `200`

OK

- OAuthApproveResponseDto
  - `redirectUri` string

---

[API](https://skmtc.dev/transferz/apis/authentication-api.md) · [All operations](https://skmtc.dev/transferz/apis/authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/transferz/authentication-api/revisions/73249fb480f2/schema)
