HTTP API reference
此内容尚不支持你的语言。
The HTTP API of the agent-wechat daemon. Every route except /health needs a bearer token. Call sockets are described in asyncapi.json. Send the token as Authorization: Bearer TOKEN; The listed roles are token scopes, and admin passes every scope check. owner means only the owner token is accepted.
The same API is available as an OpenAPI document for tools and code generators.
| Resource | Routes | What it covers |
|---|---|---|
| Accounts | 15 | Accounts, their settings and background operations. |
| Auth | 13 | Signing in, connecting and signing out. |
| Calls | 4 | Voice and video calls. The two sockets are described in asyncapi.json. |
| Contacts | 16 | Saved contacts and their avatars. |
| Events | 4 | The replayable event log and stream. |
| Groups | 16 | Saved groups, their members and group changes. |
| Media | 14 | Uploads, media assets, downloads and jobs. |
| Stickers | 16 | Saved stickers, official packs and temporary media preparation. |
| Messages | 8 | Saved messages, sending and recall. |
| System | 3 | Daemon health, status and shutdown. |
| Threads | 5 | Chats, read state and chat settings. |
| Tokens | 6 | API tokens, which only the owner token can manage. |