Enabling the LINE Messaging API
Login to the LINE developers console using your LINE credentials and follow the below steps.
- Create a Line channel of type ‘messaging API’ and connect it with SMS-Magic – Requires all steps
- Use an already created channel of type messaging API and connect it with SMS-Magic – You can directly start from step 6 if you are planning to use the existing created channel of type ‘Messaging API’.
- Click on the ”+ Create New Provider” button. A provider acts as a container of LINE apps.
![Create New Provider](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Add-provider-1024x416.png)
- Enter the required details and click on the “Create” button
![provider doesn't have any channels](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/add-provider-channel-1024x516.png)
- Next, select “Create Channel” for the Messaging API option
- Fill in these details for your new LINE app. These details will be visible to end-users as your business profile information.
![create channel on line](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/create-channel-1024x534.png)
![create channel 2nd fold](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/create-channel-2-1024x464.png)
- Next, review the Terms of Use, click to accept them, and then click on the “Create” button
![Create channel terms of use url](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Create-channel-3-1024x389.png)
- Now select your newly created app/provider
![Select newly created provider](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Select-newly-created-provider-1024x608.png)
- The Messaging API section displays your channel Bot ID as shown below. LINE recipients can search for your business channels with this ID.
![Messaging channel api bot id](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Messaging-api-bot-id-1024x383.png)
- Among the options locate the “Messaging API” section and then issue a “Channel access token” by clicking on the ‘Issue’ button
![Issue Channel Token](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Issue-Channel-Token-1024x126.png)
![Channel Access Token](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Channel-Access-Token-1024x152.png)
- Next, enable the use of webhooks by adding the webhook URL in Webhook settings under the ‘Messaging API’ section.
US Webhook URL: https://api.sms-magic.com/messages/incoming/line
Australia Webhook URL: https://aus-api.sms-magic.com/messages/incoming/line
Europe Webhook URL: https://eu.api.sms-magic.com/messages/incoming/line
![Channel Webhook URL setting](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Channel-Webhook-setting-1024x224.png)
- Once the Webhook URL is added, click on verify and it should give you a successful response
![Verify channel webhook](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Verify-channel-webhook-1024x350.png)
![Webhook verified successfully](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Webhook-verified-successfully-1024x357.png)
- After that enable the Webhook URL using the toggle button given
![Enable webhook for use](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Enable-webhook-for-use-1024x389.png)
- In the ‘Messaging API section, disable the LINE official account features such as Allow Bot to join group chats, Auto-reply messages, and Greeting messages.
![Messaging API Section](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Messaging-API-Section-1024x479.png)
- Click on the Edit option which will take you to the ‘LINE official account manager console’
![Line official messaging account console](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Line-official-messaging-account-console-1024x397.png)
![Line official messaging account console detailed settings](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Line-official-messaging-account-console-detailed-settings.png)
- Verify that LINE official account features such as Allow Bot to join group chats, Auto-reply messages, and Greeting messages are disabled.
![Verify that LINE official account features](https://www.sms-magic.com/docs/salesforce/wp-content/uploads/sites/2/2021/09/Verify-that-LINE-official-account-features-1024x397.png)
- You are now ready to connect your LINE messaging account with SMS-Magic. Follow the next steps to send your first LINE message.