WeChat API for personal accounts, WeCom and external groups
A WeChat API for personal WeChat and WeCom accounts: HTTP endpoints and real-time webhooks for messaging, contacts and groups, external group bots and AI auto-replies. No Chinese business license required.
- Personal WeChat API
- WeCom API
- External group bots
- Webhooks
- Self-hosting
Companies connecting WeChat and WeCom with WeChatAPI Labs
- Xueersi
- Yuanfudao
- Meishubao
- Sunlands
- Hongsong
- Shidian Ketang
- Huanqiu Wangxiao
- Golden Education
- VIPKID
- Gaotu
Beyond the official WeChat API
Most developers searching for a WeChat API land on the official docs first, then find that personal accounts and external groups aren't covered. Here's where each option stops.
| Capability | Official Account API | WeCom official API | WeChatAPI Labs |
|---|---|---|---|
| Send and receive as a personal WeChat account | No | No | Yes |
| Message friends or customers proactively | Customer service messages only within 48 hours of user interaction | Requires customer contact permission; mass sends need member confirmation | Yes, sent on API call |
| Manage WeChat groups (invite, remove, announce) | No | Partial, customer groups only | Yes |
| Receive and auto-reply in external groups | No | Group bots can only push via webhook and cannot receive messages | Yes, receive and @reply |
| Post and interact with Moments | No | Customer Moments must be confirmed manually by members | Yes |
| Real-time webhooks for chats and groups | Official account conversations only | Requires paid Conversation Archive and employee consent | Yes |
| Onboarding | Verified official account | Company entity and app review | Scan a QR code to host an account |
This is a third-party service, not an official Tencent product, and carries account risk. See reliability & security.
Personal WeChat API: messages, contacts, groups, Moments
Turn a regular WeChat account into a programmable one: call the API to send, receive new messages and friend requests as webhooks.
Messaging
Send and receive text, images, files, voice, video, link cards and mini program cards. @mention members in groups and recall messages.
POST /v1/message/send_textView endpoint →Contacts
Search and add friends, auto-accept friend requests, set remarks and tags, list friends and profiles.
GET /v1/contact/friendsView endpoint →Group management
Create groups, invite and remove members, change group names and announcements, list members.
POST /v1/group/createView endpoint →Moments
Post text and image Moments, read friends' Moments, like and comment, schedule posts.
POST /v1/moment/postView endpoint →Real-time webhooks
New messages, friend requests, members joining or leaving and account logouts are pushed to your server instantly.
POST {your webhook URL}View endpoint →Login & multi-account
Log in hosted accounts by QR code, check online status, get notified on logout. One API key manages many accounts.
POST /v1/account/login_qrcodeView endpoint →Want to check whether the personal WeChat API fits your use case?
WeCom API: external groups, customers, conversations
Receive and reply in external groups with your customers, without Conversation Archive and beyond the push-only official group bot.
External group messaging
Receive and reply to messages in external groups that include your customers, with @mentions, images, files and mini program cards.
POST /v1/wecom/group/sendView endpoint →Customer management
Sync customers, add customers, apply tags and remarks, and connect WeCom to your CRM.
GET /v1/wecom/customersView endpoint →External group management
Create external groups, invite customers, edit announcements and remove members in bulk.
POST /v1/wecom/group/inviteView endpoint →Real-time conversation webhooks
One-to-one and group messages are pushed to your server in real time for AI support, QA and analytics.
message.receivedView endpoint →Mass messaging & customer Moments
Send messages by tag and post customer Moments, with configurable intervals to reduce risk-control triggers.
POST /v1/wecom/mass_sendView endpoint →Multi-member hosting
Manage many WeCom member accounts from one console, each with its own webhook URL and permissions.
POST /v1/account/login_qrcodeView endpoint →Need an external group bot or custom WeCom integration?
WeChat bot use cases: support, CRM, AI and alerts
One API covers the four most common WeChat automation scenarios.
AI customer support
Connect an LLM to WeChat and WeCom to answer questions, detect buying intent and hand off to humans.
Learn more →Private traffic & SCRM
Customer tags, welcome messages, scheduled broadcasts and customer Moments, automated through the API.
Learn more →Alerts & notifications
Push monitoring alerts, order updates and approvals to WeChat groups or individuals, where they get seen faster than email.
Learn more →Community management
Welcome new members, keyword replies, remove spammers and schedule announcements across many groups.
Learn more →WeChat API quick start in 3 steps: get a key, call the API, receive webhooks
- Get an API key
Contact us for a test account and copy the key from the console. - Log in a hosted account
Call the login endpoint for a QR code and scan it with the phone. - Call the API, set a webhook
Send your first message and set your webhook URL in the console.
import requests
resp = requests.post(
"https://api.wechatapilabs.com/v1/message/send_text",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"account_id": "acc_123", "to": "wxid_friend", "content": "Hello, this is a test message"},
timeout=10,
)
print(resp.json()) # {"code": 0, "data": {"msg_id": "..."}}HttpClient client = HttpClient.newHttpClient();
String body = """
{"account_id":"acc_123","to":"wxid_friend","content":"Hello, this is a test message"}
""";
HttpRequest req = HttpRequest.newBuilder(URI.create("https://api.wechatapilabs.com/v1/message/send_text"))
.header("Authorization", "Bearer YOUR_API_KEY")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
System.out.println(client.send(req, HttpResponse.BodyHandlers.ofString()).body());const res = await fetch("https://api.wechatapilabs.com/v1/message/send_text", {
method: "POST",
headers: { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({ account_id: "acc_123", to: "wxid_friend", content: "Hello, this is a test message" }),
});
console.log(await res.json());body := strings.NewReader(`{"account_id":"acc_123","to":"wxid_friend","content":"Hello, this is a test message"}`)
req, _ := http.NewRequest("POST", "https://api.wechatapilabs.com/v1/message/send_text", body)
req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil { log.Fatal(err) }
defer resp.Body.Close()
out, _ := io.ReadAll(resp.Body)
fmt.Println(string(out))curl -X POST https://api.wechatapilabs.com/v1/message/send_text \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"account_id":"acc_123","to":"wxid_friend","content":"Hello, this is a test message"}' First API call in 5 minutes. Test accounts set up the same day.
WeChat API reference
Standard REST + JSON with unified auth and error codes. The most used endpoints:
| Method | Path | Description | Group |
|---|---|---|---|
| POST | /v1/account/login_qrcode | Get login QR code | Account & login |
| GET | /v1/account/status | Get account status | Account & login |
| POST | /v1/message/send_text | Send text | Messages |
| POST | /v1/message/send_image | Send image | Messages |
| POST | /v1/message/send_file | Send file | Messages |
| POST | /v1/message/send_link | Send link card | Messages |
| POST | /v1/message/revoke | Recall message | Messages |
| GET | /v1/contact/friends | List friends | Contacts |
| POST | /v1/contact/accept | Accept friend request | Contacts |
| POST | /v1/contact/remark | Set remark & tags | Contacts |
| POST | /v1/group/create | Create group | Groups |
| POST | /v1/group/invite | Invite members | Groups |
| POST | /v1/group/remove | Remove members | Groups |
| POST | /v1/group/notice | Post announcement | Groups |
A highly stable WeChat API built for long-running accounts
The real pain of a WeChat API is dropped sessions, repeated logins and account anomalies. We harden every layer, from connections and scheduling to risk alerts, so hosted accounts stay online and your business keeps running.
Keep-alive with auto-reconnect
Heartbeats monitor every session and reconnect automatically after a drop, cutting down the repeated logins that trigger suspicious sign-in prompts.
Multi-node failover
The service runs across multiple nodes and fails over automatically when one has a problem, so the API stays available.
Tiered rate limiting
High-risk actions such as adding friends, mass sends and group invites are rate-limited by account state; requests over the threshold are queued instead of fired at once.
Human-like pacing
Randomized intervals between sends and batch jobs spread across the day avoid the fixed-frequency patterns that flag automation.
Auto-pause on risk warnings
The moment the platform shows a risk warning, proactive actions on that account pause and you're notified by webhook, so problems are caught early.
Conservative defaults for new accounts
New accounts get stricter default limits plus a staged warm-up plan; proactive actions open up as the account stabilizes.
Stability depends on both the API and how it is used; following our usage guidelines keeps accounts running smoothly. Full stability and security details →
WeChat API pricing
Quotes are tailored to your account count and deployment. API calls are not metered. Tell us your needs to get a plan and quote.
Trial
- 1 hosted account
- All messaging and group endpoints
- Webhook events
- Ticket support
Standard
- 1–49 hosted accounts
- Personal WeChat or WeCom
- All endpoints and webhooks
- Logout alerts
- Business-hours support
Enterprise
- From 50 accounts
- Personal WeChat + WeCom
- Dedicated engineer
- 24/7 emergency support
- SLA
Self-hosted
- Runs on your servers
- Message data stays in your network
- Source-level customization
- Launch assistance
Tell us your account count and use case to get a tailored quote.
WeChat bot case studies
Education, e-commerce, SaaS and local services teams use WeChatAPI Labs for AI support and CRM automation.
AI course advisor
When parents ask about courses on WeChat, an LLM answers from course materials and passes qualified leads to advisors.
Personal WeChat API · message.received webhook · LLM
After-sales group automation
Shipping and refund updates are pushed to buyers; keyword replies in after-sales groups, complex issues @ a human agent.
WeCom external groups · Group messaging · Order system
Customer success groups
One external group per key account; release and incident notices pushed centrally; questions in the group become tickets.
WeCom API · External group bot · Ticketing
Community promotions
Scheduled campaigns across many groups, automatic welcome messages, spam links removed automatically.
Group management · Scheduled sends · Join webhook
WeChat API FAQ
Is this an official WeChat API?
No. This is an independent third-party technical service with no affiliation with or authorization from Tencent. If the official APIs cover your needs (Official Accounts, Mini Programs, WeCom apps), use them first.
Can accounts get banned?
Yes, there is a risk and we don't promise zero bans. Most bans come from adding friends too fast, mass-sending identical content and user reports. We provide rate limiting, send intervals and account warm-up guidance. See reliability & security.
Do I need a Chinese business license?
No. The API is plain HTTP + JSON and works for companies registered anywhere. We invoice in USD for overseas customers.
Which client versions are supported?
Current mainstream versions of WeChat and WeCom. When Tencent ships a client update we adapt quickly and post status in the console. Contact us for the exact supported versions.
Can I self-host it?
Yes. The Enterprise plan can be deployed on your own servers or cloud, so message data never passes through ours.
What uses are prohibited?
Fraud, gambling, adult content, pyramid schemes, illegal lead generation, spam and any other unlawful use. We terminate service immediately on violation.
How do I start a trial?
Leave your details on the contact page. We'll set up a test account and API key, usually the same day.
Official WeChat API guides
English guides to Official Accounts, Mini Programs, WeChat Pay and WeCom webhooks. If the official API covers your need, use it.
WeChat API overview: Official Accounts, Mini Programs, Pay, Open Platform and WeCom
What each official WeChat API does, who can apply, what it can't do, and what overseas companies need.
WeCom webhook bot: how to send group messages
Add a bot, send text, Markdown, images and files, with Python and cURL examples and alerting integrations.
Is there a personal WeChat API? Limits and options
Why Tencent doesn't offer one, the alternatives, and the risks of third-party personal account APIs.