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

# Authorize

`POST /oauth2/authorize`

Mint a one-time authorization code for an OAuth client on behalf of the
authenticated user. Called by the Adapter consent page; the browser should be
redirected to the returned URL.

## Request body

- AuthorizeRequest
  - `client_id` string, required
  - `redirect_uri` string, required
  - `scope` string, nullable
  - `state` string, nullable

## Response `200`

Successful Response

- AuthorizeResponse
  - `redirect_url` string, required

## Other responses

- `422` — Validation Error

---

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