Skip to main content

LINE incoming events

This page describes the incoming events you can receive from LINE through the CM.com Messaging API.

For the generic behaviour of incoming events across all channels, see Incoming events.

Supported Events​

TypeDescription
FollowWhen an end-user follows an account
UnfollowWhen an end-user unfollows an account

Custom objects​

Follow: Contains IsUnblocked, this indicates indicates the user has added the account as a friend or unblocked it

Follow/Unfollow events​

Follow events will be sent when your account is added as a friend (or is unblocked).

The event contains a "isUnblocked" value that can contain the following values:

  • true: The user has unblocked your account.
  • false: The user has added your account as a friend.

Example follow event:

{
"from": {
"number": "Recipients user ID"
},
"to": {
"number": "Your user ID"
},
"event": {
"type": "Follow",
"reference": "A reference to the object or message that triggered the event",
"custom": {
"isUnblocked": "true or false"
}
},
"timeUtc": "2022-10-10T12:00:00",
"channel": "LINE"
}

Unfollow events do not contain any custom values ​​and only indicate that the user has unfollowed your account.

Example unfollow event:

{
"from": {
"number": "Recipients user ID"
},
"to": {
"number": "Your user ID"
},
"event": {
"type": "Unfollow",
"reference": "A reference to the object or message that triggered the event"
},
"timeUtc": "2022-10-10T12:00:00",
"channel": "LINE"
}