Skip to main content

General

LINE Notifications

Send alerts via LINE Messaging API.

Send push messages to LINE users using the Messaging API.

Configuration Parameters

ParameterRequiredTypeDescription
AccessTokenYesstringLINE Channel Access Token
UserIdYesstringTarget LINE user ID
BodyYesstringMessage text

Example Configuration

AccessToken = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
UserId = U1234567890abcdef1234567890abcdef
Body = 🚨 Alert: Temperature exceeded threshold

Setup Instructions

  1. Create a LINE Official Account at LINE Developers
  2. Create a new Provider and Channel
  3. Enable the Messaging API
  4. Issue a Channel Access Token
  5. Get user IDs from webhook events or LINE Login

Getting User IDs

User IDs are obtained when users:

  • Add your bot as a friend
  • Send a message to your bot
  • Use LINE Login in your app

Internal Behavior

  • Endpoint: https://api.line.me/v2/bot/message/push
  • Auth: Bearer token in Authorization header
  • Format: JSON with to and messages array