# LINE configuration

To enable message delivery through the LINE messaging app, you must first configure the LINE platform within your project settings.

## Prerequisites

Before you begin, make sure you have:

* [A LINE official account](https://developers.line.biz/en/docs/messaging-api/getting-started/#step-one-enable-use-of-messaging-api)

* A registered **Messaging API** channel in the LINE Developers Console. [Learn more](https://developers.line.biz/en/docs/messaging-api/getting-started/)

* The following credentials from LINE:

  * **Channel ID**
  * **Channel secret**

## Configure LINE in Pushwoosh 

1. In the **Pushwoosh Control Panel**, navigate to **Settings > Configure Platforms**

2. Find **LINE** in the list of platforms and click **Configure**.

   ![Configure LINE](/configure-project-line-configuration-1.webp)

3. In the configuration window, enter the following:

* **Channel ID:** Your LINE Messaging API Channel ID
* **Channel secret:** Your LINE Messaging API Channel Secret

   ![Fill in Channel ID and secret](/configure-project-line-configuration-2.webp)

After entering the required credentials and setting the webhook, click **Save** to complete the configuration.

### Where to find the Channel ID and Channel secret

#### Channel ID

To find your Channel ID:

1. Go to the [LINE Developers Console](https://developers.line.biz/console/)
2. Select your provider
3. Choose the appropriate channel
4. Go to the **Basic settings tab**, locate and copy the **Channel ID**

[Learn how to find your Channel ID in the LINE Developers Console](https://developers.line.biz/en/faq/#where-can-i-find-channel-id)

  ![Find your Channel ID](/configure-project-line-configuration-3.webp)

#### Channel secret

To find your Channel Secret:

1. Go to the [LINE Developers Console](https://developers.line.biz/console/)
2. Select your provider
3. Choose the relevant channel
4. Navigate to the **Basic settings** tab
5. Scroll down to the **Channel secret** field and click **Copy**.

[Learn more](https://developers.line.biz/en/glossary/#channel-secret)

  ![Find your Channel Secret](/configure-project-line-configuration-4.webp)


> **Important:** The Channel secret is required to authenticate your application with the LINE Messaging API. Keep this value secure and do not share it publicly.

## Set the Webhook URL in LINE

To allow LINE to send incoming messages and events to Pushwoosh, you need to configure a webhook URL in the LINE Developers Console.

Follow these steps to set it up:

1. Go to the **Messaging API** tab in the LINE Developers Console.
2. In the **Webhook URL** field, enter:

```
https://tw-callback.svc-nue.pushwoosh.com/api/v1/lineCallback/XXXXX-XXXXX
```

Replace `XXXXX-XXXXX` with your actual **Pushwoosh application code**.

3. Click **Verify**. If the URL is valid and responsive, you will see a **Success** message.

4. Enable the **Use webhook** option to activate webhook delivery.

   ![Set the Webhook URL in LINE](/configure-project-line-configuration-5.webp)

[Refer to the official LINE documentation for details on setting the webhook URL](https://developers.line.biz/en/docs/messaging-api/building-bot/#setting-webhook-url)