Skip to main content
LINE 1対1チャット履歴取得
curl --request GET \
  --url https://api.utage-system.com/v1/accounts/{account_id}/line/friends/{friend_id}/messages \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {}
  ],
  "meta": {
    "current_page": 123,
    "per_page": 123,
    "total": 123
  }
}
GET
https://api.utage-system.com/v1/accounts/{account_id}/line/friends/{friend_id}/messages
この機能はプレビュー版です。仕様が変更される場合があります。

Authorizations

Authorization
string
header
required

APIキーをBearerトークンとして指定

Path Parameters

account_id
string
required

アカウントID

friend_id
string
required

LINE友だちID

Query Parameters

direction
enum<string>

送受信の絞り込み。sent: 送信のみ、received: 受信のみ、all: 全て(デフォルト)

Available options:
sent,
received,
all
page
integer

ページ番号

Required range: x >= 1
per_page
integer
default:20

1ページあたりの件数(既定20・最大100。超過時は100に丸められます)

Required range: 1 <= x <= 100

Response

メッセージ履歴

data
object[]

メッセージの配列(sent_at / direction / type とタイプ別フィールド)

meta
object