---
title: "Wechat Oauth Qr"
method: POST
path: "/api/auth/wechat-oauth/qr"
---

# Wechat Oauth Qr

`POST /api/auth/wechat-oauth/qr`

Mint a WeChat web-QR for the SPA to render as a plain <img>.

Fetches the qrconnect page server-side (Referer = our auth host so
WeChat is happy) and returns the freshly-minted `uuid`; the SPA then
shows `qr_url` directly. No iframe, so WeChat's anti-embedding JS
never runs.

## Request body

- WechatQrIn
  - `state` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omicos/omicos-server/revisions/a00b94573ffe/schema)
