---
title: "Scan Wechat Ticket"
method: POST
path: "/account/login-methods/wechat/tickets/{ticket_id}/scan"
tags: ["account"]
---

# Scan Wechat Ticket

`POST /account/login-methods/wechat/tickets/{ticket_id}/scan`

## Request

- Base URL: `https://api.beatra.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.beatra.ai/account/login-methods/wechat/tickets/{ticket_id}/scan`
- Auth: none declared

## Path parameters

- `ticket_id` string, required

## Request body

- TicketScanRequest
  - `code` string, required
  - `state` string, required

## Response `200`

Successful Response

- TicketScanResponse
  - `scan_secret` string, required
  - `view` TicketViewOut, required
    - `status` string, required
    - `purpose` 'link' | 'reauth' | 'merge', required
    - `account` TicketAccountOut, required
      - `kind` string, required
      - `text` string, nullable, required
      - `registered_on` string, nullable, required
    - `requester` TicketRequesterOut, required
      - `os` string, nullable, required
      - `browser` string, nullable, required
      - `app` string, nullable, required
    - `created_at` string, required
    - `other` TicketAccountOut, nullable
      - `kind` string, required
      - `text` string, nullable, required
      - `registered_on` string, nullable, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-30** `157cd97ccca2`: 1 warning, 1 info
  - added the new `merge` enum value to the `view/purpose` response property for the response status `200`
  - added the optional property `view/other` to the response with the `200` status
- **2026-10-29** `5f24507e371d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/beatra/apis/agent-service-api/changes/account/login-methods/wechat/tickets/:ticket_id/scan/post.md)

---

[API](https://skmtc.dev/beatra/apis/agent-service-api.md) - [All operations](https://skmtc.dev/beatra/apis/agent-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/beatra/apis/agent-service-api/revisions/54a093c28eee?raw)
