---
title: "Start CLI OAuth flow"
method: POST
path: "/public/v2/oauth/authorize/"
tags: ["OAuth"]
---

# Start CLI OAuth flow

`POST /public/v2/oauth/authorize/`

Start the CLI OAuth flow and obtain the authorization URL where the user grants access.

## Request body

- AuthorizeRequest
  - `redirect_uri` string, required
  - `code_challenge` string, required
  - `code_challenge_method` 'S256', required
  - `state` string, required

## Response `200`

OK

- AuthorizeResponse
  - `authorization_url` string, required

## Other responses

- `400` — Bad Request

---

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