跳转到内容

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.

ResourceRoutesWhat it covers
Accounts15Accounts, their settings and background operations.
Auth13Signing in, connecting and signing out.
Calls4Voice and video calls. The two sockets are described in asyncapi.json.
Contacts16Saved contacts and their avatars.
Events4The replayable event log and stream.
Groups16Saved groups, their members and group changes.
Media14Uploads, media assets, downloads and jobs.
Stickers16Saved stickers, official packs and temporary media preparation.
Messages8Saved messages, sending and recall.
System3Daemon health, status and shutdown.
Threads5Chats, read state and chat settings.
Tokens6API tokens, which only the owner token can manage.