---
updatedAt: 2025-12-13T06:43:25.000Z
agentTools:
  projectIndex: https://docs.clevertap.com/llms.txt
---

# LINE Messenger

Messenger Partner

# Overview

[LINE](https://line.me/en/), one of the world's most popular instant messaging platforms, is used by millions of highly-engaged users. Through LINE, brands can engage with their customers effectively by providing a rich messaging experience. CleverTap and LINE integration allows you to leverage advanced segmentation, predictive capabilities, personalization, and triggering features. You can message your LINE users the Line messaging API.

> 📘 Availability
>
> This feature is available only for verified or premium LINE accounts. For more information about account types, refer to Account Types of [LINE Official Account](https://www.linebiz.com/jp-en/service/line-official-account/account-type/).

# Integrate CleverTap with LINE Messenger

The following are the major steps to perform this integration:

1. [Collect customer LINE IDs](https://docs.clevertap.com/docs/line-messenger#collect-customer-line-ids).
2. [Save the user's LINE ID on CleverTap](https://docs.clevertap.com/docs/line-messenger#save-users-line-id-on-clevertap).
3. [Save the LINE push message API as a Webhook endpoint in Clevertap](https://docs.clevertap.com/docs/line-messenger#save-line-push-message-api-as-a-webhook-endpoint-in-clevertap).
4. [Create a Campaign to Reach your LINE Followers](https://docs.clevertap.com/docs/line-messenger#create-a-campaign-to-reach-your-line-followers).

## Collect Customer LINE IDs

To send messages in LINE, you need the users' LINE IDs to identify the user and interact with them consistently. LINE IDs are not the same as the user’s LINE usernames. LINE IDs are generated by LINE and can be used when interacting with LINE APIs.\
LINE IDs can be obtained using the LINE [User ID API](https://developers.line.biz/en/reference/messaging-api/#get-follower-ids). This endpoint returns a list of all the LINE IDs for your contacts on the LINE official account or contacts that have sent you a message and have not blocked you.\
When sending a GET request to the <https://api.line.me/v2/bot/followers/ids> endpoint, you get the LINE IDs of users following your account.

## Save User's LINE ID on CleverTap

After obtaining the list of LINE IDs, you can send it to Clevertap as a custom user property as `lineID` to each user's profile. You can upload `LineID` to a user's profile by using [APIs](https://docs.clevertap.com/docs/upload-user-profiles-api) or [uploading them as CSVs](https://docs.clevertap.com/docs/csv-upload).

## Save LINE Push Message API as a Webhook Endpoint in CleverTap

To save LINE Push Message API as a webhook endpoint in CleverTap:

1. Navigate to *Settings* > *Channels* > *Webhooks* from the CleverTap dashboard.
2. Click  **+Add Webhook**. The *Create webhook template* popup opens.

<Image title="Create Webhook campaign" alt={1012} align="center" width="80%" border={true} src="https://files.readme.io/f71335d-Create_webhook_template_popup.png">
  Create Webhook Template
</Image>

3. Enter the following details:

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        Name
      </td>

      <td>
        Enter the name for your webhook endpoint.
      </td>
    </tr>

    <tr>
      <td>
        HTTP Method
      </td>

      <td>
        Select POST from the dropdown list.
      </td>
    </tr>

    <tr>
      <td>
        Destination URL
      </td>

      <td>
        Enter the following URL in this field:\
        [https://api.line.me/v2/bot/message/push](https://api.line.me/v2/bot/message/push)
      </td>
    </tr>
  </tbody>
</Table>

4. Toggle ON the *Header parameters* to add the following Request Headers to the payload:

| Key           | Value                            |
| :------------ | :------------------------------- |
| Content-Type  | application/json                 |
| Authorization | Bearer <\{channel access token}> |

For more about getting channel access tokens from LINE, refer to [Types of Channel access tokens](https://developers.line.biz/en/docs/messaging-api/channel-access-tokens/#types-of-channel-access-tokens).

<Image title="Add request headers to Webhook payload" alt={2236} align="center" width="80%" border={true} src="https://files.readme.io/59fe9d7-Header_parameters.png">
  Add Request Headers to Payload
</Image>

5. Click **Create** to save the webhook endpoint.

## Create a Campaign to Reach your LINE Followers

To create a campaign for your LINE users:

1. From the CleverTap dashboard, select *Campaigns*.
2. Click **+ Campaign**.
3. From the Messaging Channels list, select *Webhooks*.

<Image title="Select Webhooks from channels list" alt={5652} align="center" border={true} src="https://files.readme.io/e8cd8a4-Create_Campaign_Webhook_.png">
  Select Webhooks from Channels List
</Image>

4. Enter the required details for *Start here* section and select the target segment under *Who* section.
5. Select *JSON* from the *Webhook format* dropdown and select the *Custom body* option to create a custom body for the request.
6. Add the body to the request for different types of messages as follows:

   * **Simple Text Message**

```json
{ "to": "@Profile - LineID | default: " N.A" ", 
"messages":[ { "type":"text", "text":"Hello, world1" } ] }
```

<Image title="Sample JSON Body Request for Simple Text Messages" alt={3114} align="center" border={true} src="https://files.readme.io/f25ac49-Simple_Text_Message.png">
  Sample JSON Body Request for Simple Text Messages
</Image>

* **Image Message**

```json
{ "to": "@Profile - LineID | default: " N.A" ", 
"messages":[ { "type": "image", "originalContentUrl": "https://example.com/original.jpg", "previewImageUrl": "https://example.com/preview.jpg" } ]}
```

<Image title="Sample JSON Body Request for Image Message" alt={3112} align="center" border={true} src="https://files.readme.io/4bb2e21-Image_Message.png">
  Sample JSON Body Request for Image Message
</Image>

* **Video Message**

```json
{ "to": "@Profile - LineID | default: " N.A" ", 
"messages":[ { "type": "video", "originalContentUrl": "https://example.com/original.mp4", "previewImageUrl": "https://example.com/preview.jpg" } ]}
```

<Image title="Sample JSON Body Request for Video Message" alt={3136} align="center" border={true} src="https://files.readme.io/454bd5c-Video_Message.png">
  Sample JSON Body Request for Video Message
</Image>

> 📘 Note
>
> @Profile - LineID | default: "N.A" personalization fetches the `LineID` from the user's profile.\
> For the “to” key, enter '@' under the *value* field. Select LineID and provide a default value for the profiles that do not have a LineID (assuming LineID is the user property Key against which you have uploaded user Line ID using API or CSV upload).

<Image title="Fetching User's Profile" alt={3200} align="center" border={true} src="https://files.readme.io/6104dac-Set_up_default_value_for_LineID.png">
  Fetching User's Profile
</Image>

7. Define the schedule for your webhook campaign and publish the campaign.

For more information about webhook campaigns, refer to the [Create Webhook Campaigns](https://docs.clevertap.com/docs/create-message-webhook) section.