---
title: "Line Webhook"
method: POST
path: "/api/channels/line/webhook/{account_id}"
tags: ["channels", "channels", "line"]
---

# Line Webhook

`POST /api/channels/line/webhook/{account_id}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/channels/line/webhook/{account_id}`
- Auth: none declared

Receive webhook events from LINE Messaging API.

Per-account URL solves routing and signature verification:
1. Look up channel_account by {account_id} to get channel_secret
2. Verify X-Line-Signature using the account's channel_secret
3. Return 200 immediately (LINE suspends delivery if server is slow)
4. Forward events to sync engine async

## Path parameters

- `account_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
