Appearance
WeChat
Manage official accounts, send messages, and interact with WeChat users.
| Detail | Value |
|---|---|
| Category | Social Media |
| Base URL | https://api.weixin.qq.com/cgi-bin |
| Authentication | API Key (Query) |
| Endpoints | 5 |
| Connector key | wechat |
Using WeChat in a workflow
- Go to Connections and click New Connection.
- Pick WeChat from the marketplace.
- Enter your credentials (see Authentication above for what's expected).
- In a workflow, drop an API Call node and select this connection.
- Pick the operation you need from the Operation dropdown — the full list is below.
Available endpoints
| Endpoint | Summary |
|---|---|
GET /token | Get access token |
POST /message/custom/send | Send a customer service message |
POST /message/template/send | Send a template message |
GET /user/info | Get user info |
GET /user/get | Get follower list |
Each endpoint is documented in full below. Use the outline on the right to jump to one.
GET /token
Get access token
| Detail | Value |
|---|---|
| Operation ID | social.getAccessToken |
| Method | GET |
| Path | /token |
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
grant_type | query | string | Yes |
appid | query | string | Yes |
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your WeChat connection from the Connection dropdown.
- In the Operation dropdown, select
social.getAccessToken. - Fill in the parameter fields that appear. Use
{{...}}to reference upstream values.
Required fields are marked — fill them or the call will fail at runtime.
What it returns
The API Call node writes the response to the workflow context:
{
status: 200,
success: true,
data: { ...response body from the API... },
latencyMs: 142
}Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream WeChat API reference.
POST /message/custom/send
Send a customer service message
| Detail | Value |
|---|---|
| Operation ID | social.sendMessage |
| Method | POST |
| Path | /message/custom/send |
Parameters
No parameters.
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your WeChat connection from the Connection dropdown.
- In the Operation dropdown, select
social.sendMessage. - Fill in the parameter fields that appear. Use
{{...}}to reference upstream values.
What it returns
The API Call node writes the response to the workflow context:
{
status: 200,
success: true,
data: { ...response body from the API... },
latencyMs: 142
}Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream WeChat API reference.
POST /message/template/send
Send a template message
| Detail | Value |
|---|---|
| Operation ID | social.sendTemplate |
| Method | POST |
| Path | /message/template/send |
Parameters
No parameters.
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your WeChat connection from the Connection dropdown.
- In the Operation dropdown, select
social.sendTemplate. - Fill in the parameter fields that appear. Use
{{...}}to reference upstream values.
What it returns
The API Call node writes the response to the workflow context:
{
status: 200,
success: true,
data: { ...response body from the API... },
latencyMs: 142
}Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream WeChat API reference.
GET /user/info
Get user info
| Detail | Value |
|---|---|
| Operation ID | social.getUserInfo |
| Method | GET |
| Path | /user/info |
Parameters
| Name | Location | Type | Required |
|---|---|---|---|
openid | query | string | Yes |
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your WeChat connection from the Connection dropdown.
- In the Operation dropdown, select
social.getUserInfo. - Fill in the parameter fields that appear. Use
{{...}}to reference upstream values.
Required fields are marked — fill them or the call will fail at runtime.
What it returns
The API Call node writes the response to the workflow context:
{
status: 200,
success: true,
data: { ...response body from the API... },
latencyMs: 142
}Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream WeChat API reference.
GET /user/get
Get follower list
| Detail | Value |
|---|---|
| Operation ID | social.listFollowers |
| Method | GET |
| Path | /user/get |
Parameters
No parameters.
Using this endpoint in a workflow
- Add an API Call node to your workflow.
- Pick your WeChat connection from the Connection dropdown.
- In the Operation dropdown, select
social.listFollowers. - Fill in the parameter fields that appear. Use
{{...}}to reference upstream values.
What it returns
The API Call node writes the response to the workflow context:
{
status: 200,
success: true,
data: { ...response body from the API... },
latencyMs: 142
}Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream WeChat API reference.