---
title: "Start WeChat QR-code bind for a workspace"
method: POST
path: "/api/workspaces/{id}/im/weixin/qr-start"
tags: ["IM Channels"]
---

# Start WeChat QR-code bind for a workspace

`POST /api/workspaces/{id}/im/weixin/qr-start`

Returns a QR code URL the user scans in WeChat. Client should then long-poll qr-wait until the channel is bound.

## Path parameters

- `id` string, required

## Response `200`

OK

- IMWeixinQRStartResponse
  - `message` string, required
  - `qrcode_url` string, required

## Other responses

- `403` — not a member
- `502` — upstream error

---

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