> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pathors.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LINE Integration

> The LINE integration endpoint allows you to receive and process messages from LINE Messaging API.

## Webhook Endpoint

### Path Parameters

<ParamField path="projectId" type="string" required>
  The ID of your project
</ParamField>

### Request Headers

LINE Messaging API will send requests with specific headers for authentication and verification.

### Request Body

The request body follows the [LINE Messaging API webhook event format](https://developers.line.biz/en/reference/messaging-api/#webhook-event-objects).

Example:

```json theme={null}
{
  "events": [
    {
      "type": "message",
      "message": {
        "type": "text",
        "text": "Hello"
      },
      "timestamp": 1462629479859,
      "source": {
        "type": "user",
        "userId": "U4af4980629..."
      },
      "replyToken": "nHuyWiB7yP5Zw52FIkcQobQuGDXCTA",
      "mode": "active"
    }
  ]
}
```

### Response

<ResponseField name="message" type="string">
  Status message indicating the result of the webhook processing
</ResponseField>

Example successful response:

```json theme={null}
{
  "message": "OK"
}
```

### Error Responses

| Status Code | Description             |
| ----------- | ----------------------- |
| 400         | Integration is disabled |
| 404         | Integration not found   |
| 500         | Internal server error   |

## Setup Guide

1. Create a LINE channel in the [LINE Developers Console](https://developers.line.biz/console/)
2. Configure the webhook URL in your LINE channel settings
3. Enable the LINE integration in your Pathors project settings
4. Add your LINE channel access token to the integration configuration
