---
title: "Connect Line Account"
method: POST
path: "/api/channels/line/accounts/connect"
tags: ["channels", "channels", "line"]
---

# Connect Line Account

`POST /api/channels/line/accounts/connect`

## 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/accounts/connect`
- Auth: none declared

Connect a LINE Official Account from the form.

The ONE connect path, shared with channels.connect: billing gate →
LineAdapter.connect_account → line_connect_service → billing hook
(perform_connect). Kept as its own route because the form POSTs here
and reads `detail` on failure.

## Request body

- LineConnectRequest: Request body for connecting a LINE Official Account.
  - `channel_access_token` string, required: Long-lived channel access token from LINE Developer Console
  - `channel_secret` string, required: Channel secret from LINE Developer Console

## 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/d84e7dc9977d?raw)
