Skip to content

LINE Official Account Setup

This guide walks you through the complete setup required to send LINE messages from Engage Studio campaigns. Setup involves three steps: preparing your LINE Official Account, registering authentication credentials in Integration Hub, and configuring a LINE Sender Account in Engage Studio.

Prerequisites

  • An active LINE Official Account with Messaging API enabled
  • Channel Secret and Channel Access Token from the LINE Developers Console
  • LINE User IDs stored in your Treasure Data CDP profiles (collected via LIFF, LINE Login API, or external import)
  • Access to Integration Hub in Treasure Data to create authentication credentials
  • A TD Write-only API Key for delivery log writes

Step 1: Prepare Your LINE Official Account

Create a LINE Official Account and Enable Messaging API

If you do not yet have a LINE Official Account with Messaging API enabled:

  1. Sign in to LINE Official Account Manager.
  2. Create or select your LINE Official Account.
  3. Go to Settings > Messaging API.
  4. Click Enable Messaging API and link to a LINE Developers channel.

Obtain API Credentials

From the LINE Developers Console:

  1. Select your channel (Provider > Channel).
  2. On the Basic Settings tab, copy the Channel Secret.
  3. On the Messaging API tab, issue or copy a Channel Access Token (long-lived).

Step 2: Configure LINE Authentication in Integration Hub

Integration Hub stores your LINE API credentials securely and makes them available to Engage Studio. To create a new Authentication, select LINE OA Streaming Output from the connector catalog.

Create a LINE OA Authentication Credential

  1. In Treasure Data, go to Integration Hub.

  2. In the connector catalog, search for LINE OA Messaging.

  3. Select LINE OA Messaging Output and click Add Authentication.

  4. Enter the following:

    FieldDescription
    NameA recognizable label for this credential (e.g., My Brand LINE OA)
    Channel Access TokenThe token obtained from LINE Developers Console
  5. Click Save. The credential is now available for selection in Engage Studio.


Step 3: Create a LINE Sender Account in Engage Studio

A LINE Sender Account links an Integration Hub credential to Engage Studio and configures where delivery logs are written.

Access LINE OA Configurations

  1. In Engage Studio, go to Configurations.
  2. Click the LINE OA Configurations tab.
LINE OA Configurations tab in Engage Studio

Create a New LINE Sender Account

  1. Click + Create LINE OA configuration.

  2. Fill in the following fields:

    FieldDescriptionNotes
    NameDisplay name for this configurationMust be unique within your account
    Linked LINE OA AuthenticationSelect the Integration Hub credential created in Step 2Click Create LINE OA authentication to create a new one
    Treasure Data Write-only API KeyAPI key used to write delivery logs to Treasure Data
    Delivery log database nameEnter the suffix for the delivery log databaseDatabase name is prefixed with delivery_line_. Use only letters (a-z, A-Z), numbers (0-9), and underscores (_)
Create LINE OA Configuration form — Name, Linked LINE OA authentication, TD Write-only API Key, and Delivery log database name
  1. Click Save.

Delete a LINE Sender Account

You cannot delete a LINE Sender Account that is referenced by campaigns with the status Planned, Active, or Finished. To delete, first cancel any associated campaigns.


Step 4: Assign the LINE Sender Account to Workspaces

LINE Sender Accounts must be assigned to one or more Workspaces before they can be used in campaigns.

  1. In Engage Studio, go to Configurations > Workspaces.
  2. Click Edit on the workspace where you want to enable LINE campaigns.
  3. In the LINE OA Configurations field, select one or more LINE Sender Accounts.
  4. Click Save.

Once assigned, users in that workspace can select the LINE Sender Account when creating LINE campaigns.


Next Steps

After completing setup, you are ready to create a LINE campaign: