LINE integration

Learn how to integrate LINE.

If you’re planning to reach your customers in Southeast Asia, especially Japan, Taiwan and Thailand, you should definitely communicate via LINE messenger where this app is the most used chat app.

Developed in 2011 in Japan, LINE has quickly become a very popular messaging platform in Asia, with more than 600 million users and around 200 million active daily users.

One of the keys of LINE’s stickiness is LINE stickers. That’s proved by the fact that every day more than 2.5 billion stickers are sent. Also, LINE has found a way to keep their users engaged by issuing the LINE game, which soon became its extremely popular feature. Using LINE as a channel you will definitely get close to your customers in a friendly and informal way, especially if you want to reach Millennials and Post-Millennials.

Signup for using LINE

The first step in engaging your users over Line is to sign up for Line by doing the following:

1. Download the LINE app and perform a signup.
2. Add an email inside the LINE app by going to Settings>Account>Email registration.
3. With email and password added in the previous step, you will gain access to LINE Business Center.

LINE account types

Line integration can be used with both the Line@ account and the Line Official account.

For opening a LINE Official account you need to submit a partnership proposal to LINE.

To get a Line@ account please follow the instructions below. If you do not have a Line@ account please follow the instructions here to open one using LINE Business Center. For existing Line@ accounts, you will need to enable API using LINE Business Center messaging based on the instructions here.

Integration setup

To start sending messages over LINE, first you need to register your LINE channel on Infobip’s platform. This is done by adding the LINE integration to the application you have already created here.

Use Channel Access Token as the value of the accessToken parameter, and Channel Secret as the value of the secret parameter. For more details on how to get the Channel Access Token go here.

Request example

POST /omnichat/1/applications/0F3C3F29829FAB88714BA205BEC6D28F/integrations/line HTTP/1.1
Host: api.infobip.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Content-Type: application/json

{
  "channel": {
    "accessToken":"...",
    "secret":"..."
  }
}	
  

Response:

{
  "channel": {
    "id": 1234,
    "accessToken": "...",
    "name": "Line Channel Name",
    "imageUrl": "Line Channel Image Url",
    "secret":"..."
  }
}	
  

That’s it!

You are now ready to send test messages over API by performing a Send message.

Every message we receive from your subscribers will be forwarded to the URL you provided and is described in more details in the Receive message section.

Webhook setup

There are instructions at the LINE Business Center on how to configure the webhook https://api.infobip.com/omnichat/1/accounts/{accountKey}/applications/{applicationKey}/integrations/line/webhook, by replacing a placeholder {applicationKey} with the value previously obtained from Infobip. To get accountKey use Account:// Get.

Please find the detailed instructions here.

How can my organization contact people over LINE?

There are several ways your end users can opt-in to receive your messages as shown below.