Provider reference / LINE

How LINE delivers webhooks

LINE publishes no deadline and redelivery is off by default. What is verified, what the vendor leaves unsaid, and a Node verifier for x-line-signature.

Delivery behaviour

Read from the vendor's own documentation, last checked 2026-08-06. Where the vendor states no number, this table carries none.

Response budgetnot published by the vendor

LINE publishes no response deadline; it recommends responding fast and doing work async

RetryWebhook redelivery, off by default (enable in the channel's Messaging API settings); count and interval undisclosed
Gives upMay suspend webhook sending if the bot server keeps failing to receive them; threshold unpublished
Sourcehttps://developers.line.biz/en/docs/messaging-api/receiving-messages/

Signature

Verified against a working verifier proven by a test suite, not read from documentation. Last verified 2026-08-20.

AlgorithmHMAC-SHA256
Signed payloadraw body
Encodingbase64
Headerx-line-signature = base64
Tolerancenone enforced

Verify it

The raw request body, byte for byte, before any JSON parsing. Every scheme on this page breaks the moment a framework re-serializes the payload.

const crypto = require("node:crypto");

// base64(HMAC-SHA256(channel secret, raw body))
const expected = crypto
  .createHmac("sha256", channelSecret) // Messaging API → Basic settings
  .update(rawBody)
  .digest("base64");
const valid = crypto.timingSafeEqual(
  Buffer.from(req.headers["x-line-signature"]),
  Buffer.from(expected),
);

What bites

Redelivery exists but ships disabled — it has to be switched on in the channel's Messaging API settings, and LINE does not disclose the count or the interval. Until you flip it, every failed delivery is a lost message.

LINE may suspend webhook sending entirely if the bot server keeps failing to receive, and the threshold is unpublished. A relay that always answers 200 takes that variable off the table.

Read more

AnyHook sits in front of endpoints that receive from LINE: it answers inside the budget above, retries on its own schedule when your server is down, and keeps every event replayable. Change one URL, keep your code.

How it works →