LINE
The LINE Channel receives Messaging API events through a signed webhook and sends replies with a version 2.1 Channel access token.
What You Need
- a LINE Messaging API Channel;
- a version 2.1 Channel access token;
- the Channel secret;
- optional Bot User ID; and
- a public HTTPS route to the Anyy Gateway.
Refer to the current LINE Messaging API reference while configuring the Channel.
Connect in Dashboard
- Open Dashboard → Channel → Add account.
- Choose LINE and Messaging API webhook.
- Enter the Channel access token and Channel secret.
- Add the Bot User ID only when you need explicit identity matching.
- Review the DM and group policies, then save.
- Register and enable the webhook URL in the LINE Developers Console.
The callback path is:
/channels/line/ACCOUNT_ID/webhook
The default account ID is line.
Access Policies
Direct messages default to open and support open, allowlist, or disabled. Group messages default to mention and support mention, open, allowlist, or disabled.
Sender pairing is not available for LINE. Use an allowlist when the Channel should serve only known users or groups.
Verify the Connection
anyy channel doctor line
anyy channel reload
Use the LINE console's webhook verification, then test a direct message and a group mention.
The Channel secret validates the exact webhook body. Configure the reverse proxy so it forwards the body unchanged to Anyy.
Troubleshooting
| Problem | Check |
|---|---|
| Console webhook test fails | Public HTTPS reachability and exact account path |
| Signature is rejected | Channel secret and unchanged request body |
| Receive works but send fails | Version 2.1 access token and Channel availability |
| Direct message ignored | DM policy and allowlist |
| Group message ignored | Group policy, allowlist, and explicit mention |