Download OpenAPI specification:
友だち一覧を取得します
友だちの詳細情報を一覧で取得 タグ情報、友だち情報、対応マークなどを含む
| cursor | string カーソル |
| limit | integer <int32> [ 1 .. 1000 ] Default: 50 取得件数 |
| taiou_mark_id | Array of integers <int64> [ items <int64 > ] 対応マークIDでフィルタ(複数指定可、OR条件) |
| is_blocked | boolean 友だちからのブロック状態でフィルタ |
| display_status | Array of strings Items Enum: "normal" "block" "hide" 表示ステータスでフィルタ(複数指定可、OR条件) |
| name | string 友だち名で部分一致検索 |
| full_name | string 本名で部分一致検索 |
| system_name | string システム表示名で部分一致検索 |
| created_at_from | string 作成日時の開始日時 (ISO 8601形式) |
| created_at_to | string 作成日時の終了日時 (ISO 8601形式) |
| sort_by | string Default: "created_at" Enum: "created_at" "taiou_mark_updated_at" ソート項目 |
| sort_order | string Default: "desc" Enum: "asc" "desc" ソート順序 |
| include_tags | Array of integers <int64> <= 100 items [ items <int64 > ] 含めるタグID(最大100個) 例: [123, 124, 125] |
| include_friend_infos | Array of integers <int64> <= 100 items [ items <int64 > ] 含める友だち情報ID(最大100個) 例: [223, 224, 225] |
{- "data": [
- {
- "id": 12345,
- "uid": "Uabcd1234efgh5678",
- "name": "山田太郎",
- "full_name": "山田 太郎",
- "system_name": "山田太郎(東京支店)",
- "taiou_mark": {
- "id": 1,
- "name": "対応済み"
}, - "taiou_mark_updated_at": "2025-01-15T14:30:00+09:00",
- "is_line_group": false,
- "is_blocked": false,
- "display_status": "normal",
- "created_at": "2025-01-01T10:00:00+09:00",
- "memo": "重要顧客",
- "tags": [
- {
- "id": 123,
- "name": "閲覧",
- "attached_at": "2025-01-10T15:30:00+09:00"
}
], - "friend_infos": [
- {
- "id": 223,
- "name": "氏名(漢字)",
- "value": "山田太郎",
- "type": "string"
}
]
}
], - "path": "/v2/api/friends",
- "per_page": 50,
- "next_cursor": "dHN1Z2kgbm8gcGFnZSBoZW5vIGN1cnNvciB3byBzaGltZXN1IG1vamlyZXRzdSBkZXN1Lgo=",
- "prev_cursor": "bWFlbm8gbm8gcGFnZSAuIGhlbm8gY3Vyc29yIC4gc2hpbWVzdSBtb2ppcmV0c3UgLi5kZQo=",
}友だち詳細を取得します
指定した友だちの詳細情報を取得
| id required | string (IdOrUid) 友だちID 数値ID(例: 12345)またはUID(例: Uabcd1234 または Cabcd1234)を受け入れる |
{- "data": {
- "id": 12345,
- "uid": "Uabcd1234efgh5678",
- "name": "山田太郎",
- "full_name": "山田 太郎",
- "system_name": "山田太郎(東京支店)",
- "taiou_mark": {
- "id": 1,
- "name": "対応済み"
}, - "taiou_mark_updated_at": "2025-01-15T14:30:00+09:00",
- "is_line_group": false,
- "is_blocked": false,
- "display_status": "normal",
- "created_at": "2025-01-01T10:00:00+09:00",
- "memo": "重要顧客",
- "tags": [
- {
- "id": 123,
- "name": "閲覧",
- "attached_at": "2025-01-10T15:30:00+09:00"
}
], - "friend_infos": [
- {
- "id": 223,
- "name": "氏名(漢字)",
- "type": "string",
- "value": "山田太郎"
}
]
}
}友だちにタグを追加します
| id required | string (IdOrUid) 友だちID 数値ID(例: 12345)またはUID(例: Uabcd1234 または Cabcd1234)を受け入れる |
| tag_ids required | Array of integers <int64> [ items <int64 > ] 追加するタグIDの配列 |
{- "tag_ids": [
- 1,
- 2,
- 3
]
}{- "message": "更新が完了しました"
}友だちのタグを解除します
| id required | string (IdOrUid) 友だちID 数値ID(例: 12345)またはUID(例: Uabcd1234 または Cabcd1234)を受け入れる |
| tag_ids required | Array of integers <int64> [ items <int64 > ] 削除するタグIDの配列 |
{- "tag_ids": [
- 2
]
}{- "message": "更新が完了しました"
}友だちの対応マークを設定します
| id required | string (IdOrUid) 友だちID 数値ID(例: 12345)またはUID(例: Uabcd1234 または Cabcd1234)を受け入れる |
| taiou_mark_id required | integer <int64> 対応マークID |
{- "taiou_mark_id": 1
}{- "message": "更新が完了しました"
}友だち情報を新規作成します
| name required | string 項目名 |
| type required | string Enum: "string" "text" "image" "pdf" "select" "date" "datetime" タイプ |
integer or null 友だち情報フォルダID (nullable) | |
Array of FriendInfoChoice (objects) or null <= 100 items 選択肢の配列(type=selectの場合のみ有効) |
{- "name": "新規友だち情報",
- "type": "select",
- "folder_id": 10,
- "choices": [
- {
- "value": "新規友だち情報_選択肢A",
- "color": "#FF0000"
}, - {
- "value": "新規友だち情報_選択肢B",
- "color": "#0000FF"
}
]
}{- "data": {
- "id": 12345
}
}タグ一覧の取得
| cursor | string カーソル |
| limit | integer <int32> [ 1 .. 1000 ] Default: 50 取得件数 |
integer or null フォルダID(nullは未分類フォルダのみ、未指定は全て) |
{- "data": [
- {
- "id": 1,
- "name": "重要顧客",
- "folder_id": 10
}, - {
- "id": 2,
- "name": "見込み客",
- "folder_id": 10
}, - {
- "id": 3,
- "name": "要フォロー",
- "folder_id": null
}
], - "path": "/v2/api/tags",
- "per_page": 50,
- "next_cursor": "dHN1Z2kgbm8gcGFnZSBoZW5vIGN1cnNvciB3byBzaGltZXN1IG1vamlyZXRzdSBkZXN1Lgo=",
- "prev_cursor": "bWFlbm8gbm8gcGFnZSAuIGhlbm8gY3Vyc29yIC4gc2hpbWVzdSBtb2ppcmV0c3UgLi5kZQo=",
}タグを更新します
| id required | integer <int64> |
| name | string タグ名 |
integer or null タグフォルダID (nullable)
|
{- "name": "更新タグ",
- "folder_id": 10
}{- "message": "更新が完了しました"
}指定したタグが付与されている友だちの一覧を取得します
| id required | integer <int64> |
| cursor | string カーソル |
| limit | integer <int32> [ 1 .. 10000 ] Default: 50 取得件数 |
{- "data": [
- {
- "id": 12345,
- "uid": "Uabcd1234efgh5678",
- "is_line_group": false,
- "is_blocked": false,
- "display_status": "normal"
}, - {
- "id": 12346,
- "uid": "Uabcd1234efgh5679",
- "is_line_group": false,
- "is_blocked": false,
- "display_status": "hide"
}
], - "path": "/v2/api/tags/1/friends",
- "per_page": 50,
- "next_cursor": "dHN1Z2kgbm8gcGFnZSBoZW5vIGN1cnNvciB3byBzaGltZXN1IG1vamlyZXRzdSBkZXN1Lgo=",
- "prev_cursor": "bWFlbm8gbm8gcGFnZSAuIGhlbm8gY3Vyc29yIC4gc2hpbWVzdSBtb2ppcmV0c3UgLi5kZQo=",
}指定したタグを複数の友だちに付与します
| id required | integer <int64> |
| friend_ids required | Array of strings (IdOrUid) <= 1000 items 追加する友だちIDの配列(数値IDまたはUID) |
{- "friend_ids": [
- "12345",
- "12346",
- "12347"
]
}{- "message": "更新が完了しました"
}指定したタグを複数の友だちから解除します
| id required | integer <int64> |
| friend_ids required | Array of strings (IdOrUid) <= 1000 items 削除する友だちIDの配列(数値IDまたはUID) |
{- "friend_ids": [
- "12345",
- "12346"
]
}{- "message": "更新が完了しました"
}対応マーク一覧を取得します
| cursor | string カーソル |
| limit | integer <int32> [ 1 .. 100 ] Default: 50 取得件数 |
{- "data": [
- {
- "id": 1,
- "name": "対応済み"
}, - {
- "id": 2,
- "name": "対応中"
}, - {
- "id": 3,
- "name": "未対応"
}
], - "path": "/v2/api/taiou-marks",
- "per_page": 50,
- "next_cursor": "dHN1Z2kgbm8gcGFnZSBoZW5vIGN1cnNvciB3byBzaGltZXN1IG1vamlyZXRzdSBkZXN1Lgo=",
- "prev_cursor": "bWFlbm8gbm8gcGFnZSAuIGhlbm8gY3Vyc29yIC4gc2hpbWVzdSBtb2ppcmV0c3UgLi5kZQo=",
}トーク履歴を取得
注意: prev_cursor と prev_page_url は実装されておらず、常にnullを返します
| cursor | string カーソル |
| limit | integer <int32> [ 1 .. 1000 ] Default: 50 取得件数 |
| friend_id | string (IdOrUid) 送信者の友だちIDでフィルタリング |
| direction | string Enum: "inbound" "outbound" "system" メッセージの方向でフィルタリング |
| is_unconfirmed | boolean 未読メッセージのみ取得(true: 未読のみ、false: 既読のみ、指定なし: 全て) |
| staff_id | integer <int64> 送信操作を行ったスタッフIDでフィルタリング |
| has_staff | boolean スタッフによる送信の有無でフィルタリング(true: 手動送信メッセージ、false: その他(受信メッセージ・システムメッセージ・自動送信メッセージ等)、未指定: 全て) |
| sent_at_from | string 送信日時の開始範囲 (ISO 8601形式、この日時以降のメッセージを取得) |
| sent_at_to | string 送信日時の終了範囲 (ISO 8601形式、この日時以前のメッセージを取得) |
| sort_by | string Default: "sent_at" Value: "sent_at" ソート対象フィールド(デフォルト: sent_at) |
| sort_order | string Default: "desc" Enum: "asc" "desc" ソート順(デフォルト: desc) |
{- "data": [
- {
- "direction": "inbound",
- "id": 98765,
- "friend_id": 12345,
- "friend_uid": "Uabcd1234efgh5678",
- "timeline_text": "こんにちは!",
- "content": {
- "type": "text",
- "text": "こんにちは!"
}, - "sent_at": "2025-01-15T10:30:00Z",
- "is_unconfirmed": false
}, - {
- "direction": "outbound",
- "id": 98766,
- "friend_id": 12345,
- "friend_uid": "Uabcd1234efgh5678",
- "timeline_text": "ありがとうございます",
- "content": {
- "type": "text",
- "text": "ありがとうございます"
}, - "sent_at": "2025-01-15T10:31:00Z",
- "staff": {
- "id": 456,
- "name": "佐藤太郎"
}, - "sender_decoration": {
- "display_name": "カスタマーサポート"
}, - "is_unconfirmed": false
}
], - "path": "/v2/api/messages",
- "per_page": 50,
- "next_cursor": "dHN1Z2kgbm8gcGFnZSBoZW5vIGN1cnNvciB3byBzaGltZXN1IG1vamlyZXRzdSBkZXN1Lgo=",
- "prev_cursor": "bWFlbm8gbm8gcGFnZSAuIGhlbm8gY3Vyc29yIC4gc2hpbWVzdSBtb2ppcmV0c3UgLi5kZQo=",
}共通情報一覧を取得します
| cursor | string カーソル |
| limit | integer <int32> [ 1 .. 1000 ] Default: 50 取得件数 |
integer or null フォルダID(nullは未分類フォルダのみ、未指定は全て) |
{- "data": [
- {
- "id": 123,
- "name": "営業時間",
- "value": "10:00-18:00",
- "shortcode_id": "CVAR_abcd",
- "type": "string",
- "folder_id": 10
}, - {
- "id": 124,
- "name": "定休日",
- "value": "土日祝",
- "shortcode_id": "CVAR_efgh",
- "type": "string",
- "folder_id": 10
}, - {
- "id": 125,
- "name": "スタッフ数",
- "value": "5",
- "shortcode_id": "CVAR_ijkl",
- "type": "number",
- "folder_id": null
}
], - "path": "/v2/api/common-infos",
- "per_page": 50,
- "next_cursor": "dHN1Z2kgbm8gcGFnZSBoZW5vIGN1cnNvciB3byBzaGltZXN1IG1vamlyZXRzdSBkZXN1Lgo=",
- "prev_cursor": "bWFlbm8gbm8gcGFnZSAuIGhlbm8gY3Vyc29yIC4gc2hpbWVzdSBtb2ppcmV0c3UgLi5kZQo=",
}共通情報を更新します
| id required | integer <int64> |
| name | string 共通情報名 |
| value | string 値 |
integer or null 共通情報フォルダID |
{- "name": "キャンペーン期間",
- "value": "2025年1月1日〜1月31日",
- "folder_id": 10
}{- "message": "更新が完了しました"
}