Enabling the LINE Messaging API
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/messaging-guides/wp-content/uploads/sites/7/2021/10/Create-New-Provider-1024x416.png)
- Enter the required details and click on the “Create” button
![provider doesn't have any channel](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/provider-doesnt-have-any-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](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Create-Channel-1024x534.png)
![Create channel2](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Create-channel2-1024x457.png)
![Create channel 3](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Create-channel-3-1024x464.png)
- Next, review the Terms of Use, click to accept them, and then click on the “Create” button
![Terms of use URL](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Terms-of-use-URL-1024x389.png)
- Now select your newly created app/provider
![Select Newly Created Provider](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/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 API Settings](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Messaging-API-Settings-1024x383.png)
- Among the options locate the “Messaging API” section and then issue a “Channel access token” by clicking on the ‘Issue’ button
![Channel Access Token](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Channel-Access-Token-1024x126.png)
![Channel Access Token Value](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Channel-Access-Token-Value-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
![Webhook Settings](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Webhook-Settings-1024x224.png)
- Once the Webhook URL is added, click on verify and it should give you a successful response
![Verify Webhook URL](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Verify-Webhook-URL-1024x350.png)
![Webhook Verification Success](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Webhook-Verification-Success-1024x357.png)
- After that enable the Webhook URL using the toggle button given
![Enable Webhook](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Enable-Webhook-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.
![Line Official Messaging features](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Line-Official-Messaging-features-1024x479.png)
- Click on the Edit option which will take you to the ‘LINE official account manager console’
![Edit Option Clicked](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Edit-Option-Clicked-1024x397.png)
![Detailed Settings](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/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.
![Line Official Messaging features](https://www.sms-magic.com/docs/messaging-guides/wp-content/uploads/sites/7/2021/10/Line-Official-Messaging-features-1024x479.png)
- You are now ready to connect your LINE messaging account with SMS-Magic. Follow the next steps to send your first LINE message.
0 Comments