Configure the WeCom Callback
The WeCom callback brings inbound Enterprise WeChat events into Pragma.
Prerequisitesβ
- Access to the WeCom admin console.
- Workspace or server secrets for
WECOM_TOKEN,WECOM_ENCODING_AES_KEY, andWECOM_RECEIVE_ID. - A public app URL, for example
https://app.mikemuellers.de.
Callback URLβ
Use this URL in WeCom:
https://app.mikemuellers.de/webhooks/wecom
WeCom uses the same URL for initial verification via GET and encrypted events via POST.
Configure Secretsβ
- Open Integrations in Pragma, or
/admin/integrationsas master. - Set
WECOM_TOKEN,WECOM_ENCODING_AES_KEY, andWECOM_RECEIVE_ID. - Save and redeploy or restart if the values are server environment variables.
- Run WeCom verification again.
Verifyβ
- Send a test message in WeCom.
- Open WeCom Events in Pragma.
- Confirm a new event appears.
- Open the event if you need to inspect the decrypted XML.
Common Issuesβ
- Verification fails: token, AES key, or receive ID does not match the WeCom app.
- Events arrive but messages do not: check whether the event type is supported.
- 403 or 500: inspect server logs; usually a secret is missing or invalid.