1. Documents
  2. Messaging API

Getting started with the Messaging API

Here we’ll show you how to create a bot using the Messaging API so you can interact more closely with your users. To use the Messaging API, you need to have either a LINE@ or LINE official account.

Note: For more information on account types, see LINE official accounts and LINE@ account. Pricing for accounts and plans varies by country. For more information, see LINE@ Plans and Prices.

What you need to start

To create a bot you first need to have a registered account on the LINE Business Center. You can create an account by signing in to the “LINE Business Center and providing your information. Follow the appropriate link below and complete the steps to start creating a bot.

Note: If you have a LINE official account, please contact your LINE representative for more information on creating a bot.

Create a LINE@ account with the Messaging API enabled

  1. In the LINE Business Center, select Messaging API under the “Service” category at the top of the page.
  2. Select either Start using Messaging API or Start Developer Trial. For more information on the Developer Trial plan, see Messaging API.
  3. Enter the required information (account name, business type) for your new LINE@ account. Confirm the information.
  4. Click the LINE@ MANAGER button at the bottom of the confirmation page to go to the “Bot Settings” page of the LINE@ Manager.
  5. On the “Bot Settings” page, click Enable API.
  6. Configure your bot by following the steps in Configure your bot.

Enable the Messaging API for your LINE@ account

  1. Go to your LINE@ account page in the LINE Business Center
  2. Select the Start using Messaging API button at the bottom of the page. Click OK, after agreeing to the terms and conditions. Note: If you don’t see the Start using Messaging API button, follow the steps below.
  3. Click the LINE@ MANAGER button at the bottom of the confirmation page to go to the “Bot Settings” page of the LINE@ Manager.
  4. On the “Bot Settings” page, click Enable API.
  5. Configure your bot by following the steps in Configure your bot.

If you don’t see the Start using Messaging API button on your LINE@ account page, follow the steps below.

  1. In the LINE@ Manager, go to your LINE@ account page.
  2. Go to the Bot Settings page, which can be found under “Settings” on the side menu
  3. On the “Bot Settings” page, click Enable API.
  4. Configure your bot by following the steps in Configure your bot.

Configure your bot

To start using your bot, you must configure the following settings in the LINE@ Manager and the Channel Console.

LINE@ Manager

  1. In the LINE@ Manager, go to the Bot Settings page, which can be found under “Settings” on the side menu
  2. To use the reply message API, select Allow for “Use webhooks” under “Request Settings”
  3. Optional settings:
    1. To participate in group chats, select Allow for the “Allow bots to join group chats” option
    2. To send a customized response message to user messages, select Allow for the “Auto Reply Message” option
    3. To send a customized greeting message when users add your account as a friend, select Allow for the “Greeting Message” option

Channel Console

  1. Go to your LINE@ account page in the LINE Business Center.
  2. In the “Messaging API” section, select the LINE Developers button to go to the Channel Console.
  3. To issue a Channel access token for accessing APIs, click ISSUE for the “Channel access token” item
  4. Click EDIT and set a webhook URL for your Channel
    • Note: The webhook URL must use HTTPS and have an SSL certificate issued by an authorized CA.
  5. Optional: You can increase your security by registering the IP addresses of your bot servers on the Server IP whitelist page.

After completing these steps, your bot will be able to interact with your users using the APIs provided by the Messaging API.

Useful links

To help you start developing your bot, you can use the LINE Bot SDK and the API reference for the Messaging API.

LINE Bot SDK

Messaging API reference