---
title: "LINE incoming events"
description: "This page describes the incoming events you can receive from LINE through the CM.com Messaging API."
canonical: "https://docs.cm.com/messaging/other-channels/line-events"
---

# LINE incoming events

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

Source: https://docs.cm.com/messaging/other-channels/line-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](https://docs.cm.com/messaging/business-messaging/incoming-events).

### Supported Events

| Type | Description |
| - | - |
| Follow | When an end-user follows an account |
| Unfollow | When 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:

```json
{
  "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:

```json
{
  "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"
}
```
