LINE Messaging API Setup Guide

LINE Messaging API Setup: Connect Your Official Account in 9 Steps

The exact clicks to enable the LINE Messaging API on a LINE Official Account: choose the provider, copy the Channel secret, issue the LINE channel access token, and get the LINE webhook verified and switched on. No code needed.

Nine steps checked on LINE's live screens
Webhook URL set for you by ChatMaxima
7-day free trial, no credit card
LINE Messaging API setup: channel access token and channel secret from the LINE Developers Console connected to ChatMaxima
Before You Start

What You Need Before the LINE Messaging API Setup

The LINE Messaging API is how software receives and sends messages on a LINE Official Account. ChatMaxima connects through it, so the job is to switch it on and hand over two values. Have these ready first.

A personal LINE account

You sign in with it to create the LINE Official Account and open the LINE Developers Console.

The right company name

It becomes the provider, which LINE does not let you change or unlink later.

A ChatMaxima workspace

This is where the token and secret go. A trial workspace is enough.

A second phone with LINE

A different LINE user has to add the Official Account as a friend and send the test message.

Step by Step

LINE Messaging API Setup in 9 Steps

Follow the steps in order. They move between LINE Official Account Manager, the LINE Developers Console and ChatMaxima.

Create the LINE Official Account

Open the LINE Official Account sign-up form and sign in with your personal LINE account. The form asks for an account name (up to 20 characters), an email address, the country, an optional company name and an industry. You get a free, unverified Official Account with a Basic ID that starts with @.

Open LINE Official Account Manager

Go to LINE Official Account Manager and select the account you just created.

Enable the Messaging API

Open Settings, then Messaging API, and click Enable Messaging API. Three dialogs follow: select or create a provider, add optional privacy policy and terms of use links, then confirm. Check the provider name twice; this choice cannot be undone.

Switch off LINE's own replies

Open Settings, then Response settings. Switch Greeting message off and Auto-response messages off. The Webhooks switch is greyed out at this point, which is normal.

Open the LINE Developers Console

Go to the LINE Developers Console, choose the provider from step 3, then open the Messaging API channel inside it.

Copy the Channel secret

On the Basic settings tab, find Channel secret and copy it.

Issue the LINE channel access token

On the Messaging API tab, scroll to Channel access token (long-lived), click Issue and copy the token.

Add the account in ChatMaxima and turn the LINE webhook on

In ChatMaxima, open Channels, choose LINE, click Add LINE, paste the token and the secret, and save. ChatMaxima writes the Webhook URL to LINE by itself. Back in the Developers Console, click Verify next to the Webhook URL; it should report success. Then return to Official Account Manager, open Response settings and switch Webhooks on by hand. No customer message arrives while it is off.

Send a test message

From the second phone, add the Official Account as a friend (scan the QR code on the Messaging API tab or search the Basic ID) and send a message. It should appear in the ChatMaxima inbox.

Quick Reference

Where the LINE Channel Access Token, Channel Secret and LINE Webhook Settings Are

The setup is split across two LINE screens. This table shows which one holds each setting.

SettingWhere it isWhat it does
Greeting message and Auto-response messagesOfficial Account Manager, Settings, Response settingsBoth off, so LINE does not answer alongside ChatMaxima
Channel secretDevelopers Console, Basic settings tabProves that webhook calls really come from LINE
Channel access token (long-lived)Developers Console, Messaging API tab, Issue buttonLets ChatMaxima send messages as your account
Webhook URL and VerifyDevelopers Console, Messaging API tabFilled in by ChatMaxima; Verify tests the connection
Webhooks switchOfficial Account Manager, Settings, Response settingsMust be on, or LINE forwards nothing
Troubleshooting

LINE Messaging API Troubleshooting: LINE Webhook Errors and Missing Messages

Most failed setups come down to one forgotten switch. Find your symptom in the first column.

What you seeCauseFix
Verify says the webhook returned 404The account has not been saved in ChatMaxima yetSave the LINE account in ChatMaxima first, then click Verify again
Verify returns 401The Channel secret in ChatMaxima does not match the channelCopy the Channel secret again from the Basic settings tab and save it
The Webhooks switch is greyed outLINE has no Webhook URL for the channel yetFinish step 8; the switch becomes available once the URL exists
Verify succeeds but no messages arriveThe Webhooks switch is still offSwitch Webhooks on in Response settings
Customers get two answersGreeting message or Auto-response messages is still onSwitch both off in Response settings
Security

Keep Your LINE Channel Access Token and Channel Secret Safe

Treat both values as passwords

Anyone holding the LINE channel access token can send messages as your account. Keep it and the Channel secret out of emails and screenshots.

Replace a leaked value at once

If either value has been exposed, issue a new one in the LINE Developers Console and save the new value in ChatMaxima straight away.

Related LINE Guides

What to Read After Your LINE Messaging API Setup

Ready to Finish Your LINE Messaging API Setup?

Start a ChatMaxima workspace, paste the token and the secret, and send your first test message. 7-day free trial, no credit card required.

Start Your Free Trial
FAQs Answered

LINE Messaging API Questions, Answered

Yes. Every step in this guide was done on a free, unverified Official Account created from LINE's sign-up form.

No. When you save the account with the token and the secret, ChatMaxima sets the Webhook URL on LINE for you. Your part is to click Verify and to switch Webhooks on.

A 404 means the account has not been saved in ChatMaxima yet, so save it and verify again. A 401 means the Channel secret saved in ChatMaxima does not match the channel, so copy it again from the Basic settings tab.

Greeting message or Auto-response messages is still on in Response settings, so LINE answers next to your bot. Switch both off. The LINE auto reply guide covers what to use instead.

Both are in the LINE Developers Console, inside your Messaging API channel. The Channel secret is on the Basic settings tab. The token is on the Messaging API tab, under Channel access token (long-lived); click Issue to create it.

LINE keeps that switch disabled until the channel has a Webhook URL. Save the account in ChatMaxima first. The switch then becomes usable, but it stays off until you turn it on yourself.

No. The provider you select or create while enabling the Messaging API cannot be changed or unlinked afterwards, so settle the company name before you confirm.

No. You copy two values and flip a few switches; ChatMaxima handles the webhook and the API calls. Only one-to-one chats are handled; group chats, LINE Login and LIFF apps are not included.