POST
/
api
/
project
/
{projectId}
/
integration
/
line
/
callback
curl --request POST \
  --url https://app.pathors.com/api/project/{projectId}/integration/line/callback \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>"
}

Webhook Endpoint

Path Parameters

projectId
string
required

The ID of your project

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.

Example:

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

Response

message
string

Status message indicating the result of the webhook processing

Example successful response:

{
  "message": "OK"
}

Error Responses

Status CodeDescription
400Integration is disabled
404Integration not found
500Internal server error

Setup Guide

  1. Create a LINE channel in the LINE Developers 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