WeChatAPI Labs

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
How it works: your system calls the HTTP API to send messages through a hosted account; events come back to you as webhooks Your system CRM · Support · AI HTTP API Webhook Hosted account WeChat / WeCom Online · heartbeat OK acc_123 Customer group · 128 @Support invoice? Sure, send me yourcompany details Friend · Alice Where's my order? Shipped, trackingSF10234… AI auto-reply · 0.8 s

Companies connecting WeChat and WeCom with WeChatAPI Labs

100+companies onboarded
10,000+hosted accounts online
99.9%API uptime, last 12 months
7×24technical support

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.

Full comparison
CapabilityOfficial Account APIWeCom official APIWeChatAPI Labs
Send and receive as a personal WeChat accountNoNoYes
Message friends or customers proactivelyCustomer service messages only within 48 hours of user interactionRequires customer contact permission; mass sends need member confirmationYes, sent on API call
Manage WeChat groups (invite, remove, announce)NoPartial, customer groups onlyYes
Receive and auto-reply in external groupsNoGroup bots can only push via webhook and cannot receive messagesYes, receive and @reply
Post and interact with MomentsNoCustomer Moments must be confirmed manually by membersYes
Real-time webhooks for chats and groupsOfficial account conversations onlyRequires paid Conversation Archive and employee consentYes
OnboardingVerified official accountCompany entity and app reviewScan 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.

Personal WeChat API

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.

WeCom API

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

  1. Get an API key
    Contact us for a test account and copy the key from the console.
  2. Log in a hosted account
    Call the login endpoint for a QR code and scan it with the phone.
  3. 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": "..."}}

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:

All endpoints
MethodPathDescriptionGroup
POST/v1/account/login_qrcodeGet login QR codeAccount & login
GET/v1/account/statusGet account statusAccount & login
POST/v1/message/send_textSend textMessages
POST/v1/message/send_imageSend imageMessages
POST/v1/message/send_fileSend fileMessages
POST/v1/message/send_linkSend link cardMessages
POST/v1/message/revokeRecall messageMessages
GET/v1/contact/friendsList friendsContacts
POST/v1/contact/acceptAccept friend requestContacts
POST/v1/contact/remarkSet remark & tagsContacts
POST/v1/group/createCreate groupGroups
POST/v1/group/inviteInvite membersGroups
POST/v1/group/removeRemove membersGroups
POST/v1/group/noticePost announcementGroups

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.

10,000+hosted accounts online
99.9%API uptime, last 12 months
7×24technical support

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.

Pricing details

Trial

Free 3 days
  • 1 hosted account
  • All messaging and group endpoints
  • Webhook events
  • Ticket support
Get a trial

Standard

Custom quote
  • 1–49 hosted accounts
  • Personal WeChat or WeCom
  • All endpoints and webhooks
  • Logout alerts
  • Business-hours support
Get a quote
Most popular

Enterprise

Custom quote
  • From 50 accounts
  • Personal WeChat + WeCom
  • Dedicated engineer
  • 24/7 emergency support
  • SLA
Get a quote

Self-hosted

Custom quote
  • Runs on your servers
  • Message data stays in your network
  • Source-level customization
  • Launch assistance
Get a quote

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.

View use cases
Education

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

E-commerce

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

SaaS

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

Local services

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.