---
title: "Generate O Auth Code"
method: POST
path: "/api/oauth/state"
tags: ["OAuth"]
---

# Generate O Auth Code

`POST /api/oauth/state`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/oauth/state`
- Auth: none required

## Query parameters

- `turnstile` string

## Response `200`

OK

- ApiResponse
  - `data` unknown
  - `message` string, required
  - `object` string
  - `success` boolean, required

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
