LINE Messaging API Webhook

View as Markdown

Receives LINE Messaging API webhook events for the channel. Requests are verified via the x-line-signature HMAC-SHA256 (Base64) header using the channel secret unless an api_key is present. Payload shape is defined by LINE. The route acknowledges quickly and processes text message and follow events asynchronously.

Path parameters

idstringRequired
The channel id

Headers

x-line-signaturestringOptional

Base64-encoded HMAC-SHA256 of the raw body keyed with the LINE channel secret. Required when the webhook URL does not include an api_key.

Request

LINE webhook payload (destination + events).

Response

Event acknowledged

Errors

400
Bad Request Error
403
Forbidden Error
500
Internal Server Error
503
Service Unavailable Error