MENU navbar-image

TalkLabel API

TalkLabelが提供するAPIのドキュメントです。

このドキュメントは、TalkLabelのAPIを使用するために必要なすべての情報を提供することを目的としています。

リクエストの認証

リクエストを認証するには、「Bearer {YOUR_AUTH_KEY}」という値の Authorizationヘッダーを含めます。 認証されたエンドポイントには、以下のドキュメントで 要認証 のバッジが表示されます。

各Objectの説明

Paginationオブジェクト

各オブジェクトを一覧取得した際、戻り値はPaginationオブジェクトを介して取得されます。
一覧取得APIは共通して以下のページネーションを返却し、各種オブジェクトは直近で生成された順番に取得されます。

                                                        
                    {
    "current_page": 1,
    "data": [],
    "links": {
        "first": "api/v1/channels?page=1",
        "last": "api/v1/channels?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« 前",
                "active": false
            },
            {
                "url": "api/v1/channels?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "次 »",
                "active": false
            }
        ],
        "path": "api/v1/channels",
        "per_page": 50,
        "to": 1,
        "total": 1
    }
}
                            
current_page   int   

現在のページ番号

data   array   

リソースオブジェクトの配列

links   object   

リンク情報

meta   object   

メタ情報

Userオブジェクト

                                                        
                    {
    "uuid": "2e0472d0-4ab7-4ac7-840c-9c896e192224",
    "email": "demo1@example.com",
    "email_verified_at": "2024-01-01T00:00:00.000000Z",
    "name": "デモユーザー1",
    "phone_number": "090-1234-5678",
    "postal_code": "123-4567",
    "prefecture": "東京都",
    "address": "山本町佐藤10-8-5",
    "building": "ハイツ山田106号",
    "tmp_special_invitation_code": "123456789",
    "link_code": "",
    "line_user_id": "U0f5927464f4589fd98635acaf983f523",
    "line_display_name": "LINEユーザー名",
    "is_settlement": 1,
    "extra_query_param": "hoge=test"
}
                            
uuid   string   

一意に識別するためのUUID

email   string   

メールアドレス

email_verified_at   string   

メールアドレス認証実行日時

name   string   

名前

phone_number   string   

電話番号

postal_code   string   

郵便番号

prefecture   string   

都道府県

address   string   

住所

building   string   

建物名

tmp_special_invitation_code   string   

仮登録時の特別招待コード

link_code   string   

スマートフォン連携コード

line_user_id   string   

LINEユーザーID

line_display_name   string   

LINE表示名

is_settlement   int   

決済済みかどうか

extra_query_param   string   

その他のクエリパラメータ

Channelオブジェクト

                                                        
                    {
    "uuid": "c3cddb23-18b3-3e23-99ba-afaf64217753",
    "name": "チャネル名",
    "line_official_account_id": "@207dabog",
    "current_channel_plan": {
        "start_date": "2024-03-27",
        "end_date": null,
        "discount": 0,
        "message_plan_id": 8,
        "function_plan_id": 2,
        "is_metered_billing": 0,
        "is_current_plan": 1,
        "is_exclude_payment_amount": 1,
        "plan_name": "199,800円の超大容量プラン"
    }
}
                            
uuid   string   

一意に識別するためのUUID

name   string   

チャネル名

line_official_account_id   string   

LINE公式アカウントID

current_channel_plan   object   

ChannelPlanオブジェクト

ChannelPlanオブジェクト

                                                        
                    {
    "start_date": "2024-01-01",
    "end_date": null,
    "is_current_plan": 1,
    "deleted_at": null,
    "created_at": "2024-01-01T00:00:00.000000Z",
    "updated_at": "2024-01-01T00:00:00.000000Z",
    "is_exclude_payment_amount": 1,
    "plan_name": "199,800円の超大容量プラン"
}
                            
start_date   string   

開始日

end_date   string   

終了日

is_current_plan   int   

現在のプランかどうか

is_exclude_payment_amount   int   

決算に含めるかどうか

plan_name   string   

プラン名

Friendオブジェクト

                                                        
                    {
    "uuid": "d607abbf-1a71-4415-951f-aaae42c5cc72",
    "line_user_id": "U0f5927464f4589fd98635acaf983f523",
    "line_display_name": "LINEユーザー",
    "line_status_message": "LINEステータスメッセージ",
    "line_picture_url": "https://example.com/picture.jpg",
    "display_name": "表示名",
    "name": "名前",
    "email": "test@exampla.com",
    "phone_number": "090-1234-5678",
    "memo": "メモ",
    "is_blocked": 0,
    "blocked_at": null,
    "is_blocking": 0,
    "blocking_at": null,
    "is_hidden": 0,
    "latest_received_message_at": "2024-01-01T00:00:00.000000Z",
    "unread_count": 0
}
                            
uuid   string   

一意に識別するためのUUID

line_user_id   string   

LINEユーザーID

line_display_name   string   

LINE表示名

line_status_message   string   

LINEステータスメッセージ

line_picture_url   string   

LINEプロフィール画像URL

display_name   string   

表示名

name   string   

名前

email   string   

メールアドレス

phone_number   string   

電話番号

memo   string   

メモ

is_blocked   boolean   

システムがブロックしているかどうか

blocked_at   string   

ブロックされた日時

is_blocking   boolean   

フレンドがブロックしているかどうか

blocking_at   string   

ブロックした日時

is_hidden   boolean   

非表示かどうか

latest_received_message_at   string   

最新の受信メッセージ日時

unread_count   int   

未読メッセージの数

TemplateActionオブジェクト

                                                        
                    {
    "uuid": "eeb448c2-cf87-4d81-8a9d-bcadf74d4db4",
    "name": "テンプレートアクション名"
}
                            
uuid   string   

一意に識別するためのUUID

name   string   

テンプレートアクション名

Messageオブジェクト

                                                        
                    {
    "send_order": 1,
    "type": 1,
    "text": "テキスト",
    "package_id": 11539,
    "sticker_id": 52114110,
    "image_url": "https://example.com/image.jpg",
    "imagemap_type": 1,
    "image_alt_text": "画像の代替テキスト",
    "image_width": 1040,
    "image_height": 1040,
    "video_url": "https://example.com/video.mp4",
    "audio_url": "https://example.com/audio.mp3",
    "carousel_alt_text": "カルーセル:PC版・通知欄での代替テキスト",
    "question": "質問文",
    "question_alt_text": "質問:PC版・通知欄での代替テキスト",
    "location_title": "位置情報タイトル",
    "location_address": "位置情報の住所",
    "location_latitude": 35.681236,
    "location_longitude": 139.767125,
    "introduction_text": "紹介文",
    "introduction_line_id": "紹介文LINE ID",
    "introduction_alt_text": "紹介:PC版・通知欄での代替テキスト",
    "audio_duration": 60,
    "preview_image_url": "https://example.com/preview_image.jpg"
}
                            
send_order   int   

同時に5通まで送信できるので、その時の送信順

type   int   

メッセージタイプ

text   string   

テキスト

package_id   int   

スタンプのパッケージID

sticker_id   int   

スタンプID

image_url   string   

画像URL

imagemap_type   int   

領域設定

image_alt_text   string   

画像の代替テキスト

image_width   int   

画像の幅

image_height   int   

画像の高さ

video_url   string   

動画URL

audio_url   string   

音声URL

carousel_alt_text   string   

カルーセル:PC版・通知欄での代替テキスト

question   string   

質問文

question_alt_text   string   

質問:PC版・通知欄での代替テキスト

location_title   string   

位置情報タイトル

location_address   string   

位置情報の住所

location_latitude   float   

位置情報の緯度

location_longitude   float   

位置情報の経度

introduction_text   string   

紹介文

introduction_line_id   string   

紹介文LINE ID

introduction_alt_text   string   

紹介:PC版・通知欄での代替テキスト

audio_duration   int   

音声の再生時間

preview_image_url   string   

プレビュー画像URL

MessageHistoryオブジェクト

                                                        
                    {
    "content_type": 1,
    "line_message_id": "111111111111111111",
    "file_url": "https://example.com/file.jpg",
    "content": {
        "message": {
            "text": "メッセージ内容",
            "type": "text",
            "sender": {
                "name": "カスタム送信者名",
                "iconUrl": "https://example.com/icon.jpg"
            }
        }
    },
    "messaged_at": "2024-01-01T00:00:00.000000Z",
    "text": "メッセージ内容"
}
                            
content_type   int   

メッセージ内容を示す数値
・1 => テキスト
・2 => スタンプ
・3 => 画像
・4 => 動画
・5 => 音声
・6 => 質問
・7 => カルーセル
・8 => 位置情報
・9 => 紹介
・10 => ファイル
・11 => フレックス

line_message_id   string   

LINEメッセージID

file_url   string   

ファイルURL

content   json   

メッセージ内容

messaged_at   string   

メッセージ日時

text   string   

メッセージ内容

FriendSearchTemplateオブジェクト

                                                        
                    {
    "name": "フレンドテンプレート検索名",
    "friend_search_setting": {
        "blocked": "hidden",
        "blocking_hidden": "hidden",
        "sort_by": "friend_added_desc",
        "friend_search_groups": {
            "friend_search_conditions": [
                {
                    "conditionable_type": "App\\Models\\ConditionName",
                    "conditionable": {
                        "name": "山田",
                        "is_line_display_name": true,
                        "is_display_name": true
                    }
                }
            ]
        }
    }
}
                            
name   string   

フレンドテンプレート検索名

friend_search_setting   object   

FriendSearchSettingオブジェクト

FriendSearchSettingオブジェクト

                                                        
                    {
    "blocked": "hidden",
    "blocking_hidden": "hidden",
    "sort_by": "friend_added_desc",
    "friend_search_groups": {
        "friend_search_conditions": [
            {
                "conditionable_type": "App\\Models\\ConditionName",
                "conditionable": {
                    "name": "山田",
                    "is_line_display_name": true,
                    "is_display_name": true
                }
            }
        ]
    }
}
                            
blocked   string   

ブロックされたフレンドを表示するかどうか

blocking_hidden   string   

自分がブロック・非表示にした人を表示するかどうか

sort_by   string   

ソート順

ActionMessageオブジェクト

                                                        
                    {
    "send_timing": 1,
    "send_delay_minutes": 0,
    "messages": [
        {
            "send_order": 1,
            "type": 1,
            "text": "テキスト",
            "package_id": 11539,
            "sticker_id": 52114110,
            "image_url": "https://example.com/image.jpg",
            "imagemap_type": 1,
            "image_alt_text": "画像の代替テキスト",
            "image_width": 1040,
            "image_height": 1040,
            "video_url": "https://example.com/video.mp4",
            "audio_url": "https://example.com/audio.mp3",
            "carousel_alt_text": "カルーセル:PC版・通知欄での代替テキスト",
            "question": "質問文",
            "question_alt_text": "質問:PC版・通知欄での代替テキスト",
            "location_title": "位置情報タイトル",
            "location_address": "位置情報の住所",
            "location_latitude": 35.681236,
            "location_longitude": 139.767125,
            "introduction_text": "紹介文",
            "introduction_line_id": "紹介文LINE ID",
            "introduction_alt_text": "紹介:PC版・通知欄での代替テキスト",
            "audio_duration": 60,
            "preview_image_url": "https://example.com/preview_image.jpg"
        }
    ]
}
                            
send_timing   string   

送信

send_delay_minutes   int   

送信遅延時間

messages   array   

Messageオブジェクトの配列

Folderオブジェクト

                                                        
                    {
    "uuid": "c95d0006-5c6d-4b9a-b5f9-2db75bb2a14f",
    "name": "フォルダ名",
    "order_number": 0,
    "purpose": 1
}
                            
uuid   string   

一意に識別するためのUUID

name   string   

フォルダ名

order_number   int   

表示順

purpose   enum   

フォルダの用途を示す数値
・1 => タグ
・2 => スケジュール配信
・3 => 自動応答
・4 => テンプレートメッセージ
・5 => リマインダー配信
・6 => スケジュール設定
・7 => テンプレートアクション
・8 => テンプレート検索
・9 => URLクリック分析
・10 => リッチメニュー
・11 => シナリオ
・12 => 流入経路
・13 => 回答フォーム

Others

フレックスメッセージで送信するJSONの形式

Flex Message Simulatorで発行できるようなJSONの形式で指定してください。

                                                        
                    {
    "type": "bubble",
    "hero": {
        "type": "image",
        "url": "https://developers-resource.landpress.line.me/fx/img/01_1_cafe.png",
        "size": "full",
        "aspectRatio": "20:13",
        "aspectMode": "cover",
        "action": {
            "type": "uri",
            "uri": "https://line.me/"
        }
    },
    "body": {
        "type": "box",
        "layout": "vertical",
        "contents": [
            {
                "type": "text",
                "text": "Brown Cafe",
                "weight": "bold",
                "size": "xl"
            },
            {
                "type": "box",
                "layout": "baseline",
                "margin": "md",
                "contents": [
                    {
                        "type": "icon",
                        "size": "sm",
                        "url": "https://developers-resource.landpress.line.me/fx/img/review_gold_star_28.png"
                    },
                    {
                        "type": "icon",
                        "size": "sm",
                        "url": "https://developers-resource.landpress.line.me/fx/img/review_gold_star_28.png"
                    },
                    {
                        "type": "icon",
                        "size": "sm",
                        "url": "https://developers-resource.landpress.line.me/fx/img/review_gold_star_28.png"
                    },
                    {
                        "type": "icon",
                        "size": "sm",
                        "url": "https://developers-resource.landpress.line.me/fx/img/review_gold_star_28.png"
                    },
                    {
                        "type": "icon",
                        "size": "sm",
                        "url": "https://developers-resource.landpress.line.me/fx/img/review_gray_star_28.png"
                    },
                    {
                        "type": "text",
                        "text": "4.0",
                        "size": "sm",
                        "color": "#999999",
                        "margin": "md",
                        "flex": 0
                    }
                ]
            },
            {
                "type": "box",
                "layout": "vertical",
                "margin": "lg",
                "spacing": "sm",
                "contents": [
                    {
                        "type": "box",
                        "layout": "baseline",
                        "spacing": "sm",
                        "contents": [
                            {
                                "type": "text",
                                "text": "Place",
                                "color": "#aaaaaa",
                                "size": "sm",
                                "flex": 1
                            },
                            {
                                "type": "text",
                                "text": "Flex Tower, 7-7-4 Midori-ku, Tokyo",
                                "wrap": true,
                                "color": "#666666",
                                "size": "sm",
                                "flex": 5
                            }
                        ]
                    },
                    {
                        "type": "box",
                        "layout": "baseline",
                        "spacing": "sm",
                        "contents": [
                            {
                                "type": "text",
                                "text": "Time",
                                "color": "#aaaaaa",
                                "size": "sm",
                                "flex": 1
                            },
                            {
                                "type": "text",
                                "text": "10:00 - 23:00",
                                "wrap": true,
                                "color": "#666666",
                                "size": "sm",
                                "flex": 5
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "footer": {
        "type": "box",
        "layout": "vertical",
        "spacing": "sm",
        "contents": [
            {
                "type": "button",
                "style": "link",
                "height": "sm",
                "action": {
                    "type": "uri",
                    "label": "CALL",
                    "uri": "https://line.me/"
                }
            },
            {
                "type": "button",
                "style": "link",
                "height": "sm",
                "action": {
                    "type": "uri",
                    "label": "WEBSITE",
                    "uri": "https://line.me/"
                }
            },
            {
                "type": "box",
                "layout": "vertical",
                "contents": [],
                "margin": "sm"
            }
        ],
        "flex": 0
    }
}
                            

User

ユーザーを取得

ログイン中のユーザー情報を取得します。

リクエスト:
curl --request GET \
    --get "https://app.talklabel.com/api/v1/user" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/user"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/user';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/user'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

レスポンス (200):

                                                        
                    {
    "data": {
        "uuid": "cedf6bf5-3804-4409-b586-b370908d1553",
        "email": "shuhei.ekoda@yahoo.co.jp",
        "email_verified_at": "2026-05-15T11:40:06.000000Z",
        "name": "小泉 学",
        "phone_number": "08-6222-4404",
        "postal_code": "2407443",
        "prefecture": "滋賀県",
        "address": "廣川町吉田7-5-8",
        "building": "ハイツ笹田108号",
        "tmp_special_invitation_code": null,
        "link_code": "",
        "line_user_id": "",
        "line_display_name": "",
        "is_settlement": 1,
        "extra_query_param": ""
    }
}
                            

リクエスト      

GET api/v1/user 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

レスポンス

200      

ログイン中のUserオブジェクト

Channel

チャネルリストを取得

チャネルリストをぺージネーション形式で取得します。

リクエスト:
curl --request GET \
    --get "https://app.talklabel.com/api/v1/channels" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/channels"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/channels'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

レスポンス (200):

                                                        
                    {
   "data": [
      {
           "uuid": "78927a54-3416-337d-8f07-bd2d3e06bf59",
           "name": "デモチャネル",
           "line_official_account_id": "@111dummy",
           "current_channel_plan": {
             "start_date": "2024-01-01",
             "end_date": null,
             "is_current_plan": 1,
             "is_execute_payment_at": 0,
             "plan_name": "199,800円の超大容量プラン",
      }
   ],
    "links": {
        "first": "/api/v1/channels?page=1",
        "last": "/api/v1/channels?page=1",
        "prev": null,
        "next": null
   },
    "meta": {
         "current_page": 1,
         "from": 1,
         "last_page": 1,
         "links": [
             {
                 "url": null,
                 "label": "« 前",
                 "active": false
             },
             {
                 "url": "/api/v1/channels?page=1",
                 "label": "1",
                 "active": true
             },
             {
                 "url": null,
                 "label": "次 »",
                 "active": false
             }
         ],
     "path": "/api/v1/channels?page=1",
     "per_page": 50,
     "to": 1,
     "total": 1
  }
                            

リクエスト      

GET api/v1/channels 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

レスポンス

200      

ChannelオブジェクトPaginationオブジェクト

チャネルを取得

特定のチャネル情報を取得します。

リクエスト:
curl --request GET \
    --get "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

レスポンス (200):

                                                        
                    {
  "uuid": "78927a54-3416-337d-8f07-bd2d3e06bf59",
  "name": "デモチャネル",
  "line_official_account_id": "@111dummy",
  "current_channel_plan": {
     "start_date": "2024-01-01",
     "end_date": null,
     "is_current_plan": 1,
     "is_execute_payment_at": 0,
     "plan_name": "199,800円の超大容量プラン",
  }
                            

リクエスト      

GET api/v1/channels/{uuid} 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

uuid   string   

チャネルUUID 例: 78927a54-3416-337d-8f07-bd2d3e06bf59

レスポンス

200      

指定されたuuidのChannelオブジェクト

フレンドリストを取得

チャネルに紐づくフレンド一覧をぺージネーション形式で取得します。

リクエスト:
curl --request GET \
    --get "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends?line_user_id=U0x9tejhRwGpatTuXUbeseVasWjGmKuT4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends"
);

const params = {
    "line_user_id": "U0x9tejhRwGpatTuXUbeseVasWjGmKuT4",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'line_user_id' => 'U0x9tejhRwGpatTuXUbeseVasWjGmKuT4',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends'
params = {
  'line_user_id': 'U0x9tejhRwGpatTuXUbeseVasWjGmKuT4',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

レスポンス (200):

                                                        
                    {
   "data": [
      {
           "uuid": "a722b5a4-f7fc-4884-8c23-58cc3a96f309",
           "line_user_id": "U6f168a56162e00e6ea19af8dd6d82fe9",
           "line_display_name": "LINEユーザー名",
           "line_language": "ja",
           "line_status_message": "LINEステータスメッセージ",
           "line_picture_url": "https://example.com/picture.jpg",
           "line_profile_api_json": [],
           "display_name": "表示名",
           "name": "名前",
           "email": "yamaguchi.minoru@test.net"
           "phone_number": "037-335-0831",
           "memo": "メモ",
      }
   ],
    "links": {
        "first": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends?page=1"
        "last": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends?page=1",
        "prev": null,
        "next": null
   },
    "meta": {
         "current_page": 1,
         "from": 1,
         "last_page": 1,
         "links": [
             {
                 "url": null,
                 "label": "« 前",
                 "active": false
             },
             {
                 "url": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends?page=1",
                 "label": "1",
                 "active": true
             },
             {
                 "url": null,
                 "label": "次 »",
                 "active": false
             }
         ],
     "path": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/friends?page=1",
     "per_page": 50,
     "to": 1,
     "total": 1
  }
                            

リクエスト      

GET api/v1/channels/{channel_uuid}/friends 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

channel_uuid   string   

チャネルUUID 例: 78927a54-3416-337d-8f07-bd2d3e06bf59

クエリパラメータ

line_user_id   string  optional  

LINEユーザーID 例: U0x9tejhRwGpatTuXUbeseVasWjGmKuT4

レスポンス

200      

チャネルに紐づいているFriendオブジェクトPaginationオブジェクト

LIFFを追加

LINEログインチャネルにLIFFを追加します。

リクエスト:
curl --request POST \
    "https://app.talklabel.com/api/v1/channels/2e0055ff-aee8-329b-add8-c2bee90eccf3/liffs" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"viewType\": \"full\",
    \"liffUrl\": \"https:\\/\\/example.com\",
    \"description\": \"Earum quia eligendi recusandae ratione ducimus omnis autem non.\"
}"
const url = new URL(
    "https://app.talklabel.com/api/v1/channels/2e0055ff-aee8-329b-add8-c2bee90eccf3/liffs"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "viewType": "full",
    "liffUrl": "https:\/\/example.com",
    "description": "Earum quia eligendi recusandae ratione ducimus omnis autem non."
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/2e0055ff-aee8-329b-add8-c2bee90eccf3/liffs';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'viewType' => 'full',
            'liffUrl' => 'https://example.com',
            'description' => 'Earum quia eligendi recusandae ratione ducimus omnis autem non.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/channels/2e0055ff-aee8-329b-add8-c2bee90eccf3/liffs'
payload = {
    "viewType": "full",
    "liffUrl": "https:\/\/example.com",
    "description": "Earum quia eligendi recusandae ratione ducimus omnis autem non."
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

リクエスト      

POST api/v1/channels/{channel_uuid}/liffs 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

channel_uuid   string   

チャネルUUID 例: 2e0055ff-aee8-329b-add8-c2bee90eccf3

ボディパラメータ

viewType   string   

例: full

この中から選択:
  • full
  • tall
  • compact
liffUrl   string   

LIFF URL 例: https://example.com

description   string   

説明 例: Earum quia eligendi recusandae ratione ducimus omnis autem non.

レスポンス

200      

liffIdを返却

LIFFを削除

LINEログインチャネルのLIFFを削除します。

リクエスト:
curl --request DELETE \
    "https://app.talklabel.com/api/v1/channels/80cfc14b-b01c-3f92-a639-9c49ec4aa8d0/liffs/4267274925-L8tGETcV" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/channels/80cfc14b-b01c-3f92-a639-9c49ec4aa8d0/liffs/4267274925-L8tGETcV"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/80cfc14b-b01c-3f92-a639-9c49ec4aa8d0/liffs/4267274925-L8tGETcV';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/channels/80cfc14b-b01c-3f92-a639-9c49ec4aa8d0/liffs/4267274925-L8tGETcV'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

リクエスト      

DELETE api/v1/channels/{channel_uuid}/liffs/{liff_id} 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

channel_uuid   string   

チャネルUUID 例: 80cfc14b-b01c-3f92-a639-9c49ec4aa8d0

liff_id   string   

LIFF_ID 例: 4267274925-L8tGETcV

メッセージ変数を同期

チャネルに紐づいたメッセージ変数を、指定されたメッセージ変数に同期します。

リクエスト:
curl --request POST \
    "https://app.talklabel.com/api/v1/channels/f7d33421-ed1d-389d-8b4e-2aafb9d93055/message_variables" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"system\": \"aposuru\",
    \"name_and_variables\": [
        {
            \"name\": \"商品価格\",
            \"variable\": \"price\"
        }
    ]
}"
const url = new URL(
    "https://app.talklabel.com/api/v1/channels/f7d33421-ed1d-389d-8b4e-2aafb9d93055/message_variables"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "system": "aposuru",
    "name_and_variables": [
        {
            "name": "商品価格",
            "variable": "price"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/f7d33421-ed1d-389d-8b4e-2aafb9d93055/message_variables';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'system' => 'aposuru',
            'name_and_variables' => [
                [
                    'name' => '商品価格',
                    'variable' => 'price',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/channels/f7d33421-ed1d-389d-8b4e-2aafb9d93055/message_variables'
payload = {
    "system": "aposuru",
    "name_and_variables": [
        {
            "name": "商品価格",
            "variable": "price"
        }
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

リクエスト      

POST api/v1/channels/{channel_uuid}/message_variables 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

channel_uuid   string   

チャネルUUID 例: f7d33421-ed1d-389d-8b4e-2aafb9d93055

ボディパラメータ

system   string   

システム名 例: aposuru

name_and_variables   object[]   

変数名と変数の配列:システムごとに複数指定可能

name   string   

変数名 例: 商品価格

variable   string  optional  

変数 required 例: price

Endpoints

Aposuru LIFFを登録

channel_aposuru_liffsテーブルにLIFF IDを登録します。

リクエスト:
curl --request POST \
    "https://app.talklabel.com/api/v1/channels/1/aposuru_liffs" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"liff_id\": \"nemo\"
}"
const url = new URL(
    "https://app.talklabel.com/api/v1/channels/1/aposuru_liffs"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "liff_id": "nemo"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/1/aposuru_liffs';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'liff_id' => 'nemo',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/channels/1/aposuru_liffs'
payload = {
    "liff_id": "nemo"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

リクエスト      

POST api/v1/channels/{channel_uuid}/aposuru_liffs

ヘッダー

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

channel_uuid   integer   

例: 1

ボディパラメータ

liff_id   string   

例: nemo

Folder

フォルダーリストを取得

フォルダーリストをぺージネーション形式で取得します。

リクエスト:
curl --request GET \
    --get "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders?page=1&rowsPerPage=50&purpose=1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders"
);

const params = {
    "page": "1",
    "rowsPerPage": "50",
    "purpose": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'rowsPerPage' => '50',
            'purpose' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders'
params = {
  'page': '1',
  'rowsPerPage': '50',
  'purpose': '1',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

レスポンス (200):

                                                        
                    {
   "data": [
      {
           "uuid": "c95d0006-5c6d-4b9a-b5f9-2db75bb2a14f",
           "name": "フォルダ名",
           "order_number": 0,
           "purpose": 1,
      }
   ],
    "links": {
        "first": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders?page=1",
        "last": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders?page=1",
        "prev": null,
        "next": null
   },
    "meta": {
         "current_page": 1,
         "from": 1,
         "last_page": 1,
         "links": [
             {
                 "url": null,
                 "label": "« 前",
                 "active": false
             },
             {
                 "url": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders?page=1",
                 "label": "1",
                 "active": true
             },
             {
                 "url": null,
                 "label": "次 »",
                 "active": false
             }
         ],
     "path": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/folders?page=1",
     "per_page": 50,
     "to": 1,
     "total": 1
  }
                            

リクエスト      

GET api/v1/channels/{channel_uuid}/folders 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

channel_uuid   string   

チャネルUUID 例: 78927a54-3416-337d-8f07-bd2d3e06bf59

クエリパラメータ

page   integer  optional  

ページ数 例: 1

rowsPerPage   integer  optional  

1ページあたりの数 例: 50

purpose   integer  optional  

フォルダの用途: 指定値はFolderオブジェクトのpurposeを参照 例: 1

Friend

フレンド情報を取得

特定のフレンド情報を取得します。

リクエスト:
curl --request GET \
    --get "https://app.talklabel.com/api/v1/friends/a722b5a4-f7fc-4884-8c23-58cc3a96f309" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/friends/a722b5a4-f7fc-4884-8c23-58cc3a96f309"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/friends/a722b5a4-f7fc-4884-8c23-58cc3a96f309';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/friends/a722b5a4-f7fc-4884-8c23-58cc3a96f309'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

レスポンス (200):

                                                        
                    {
     "uuid": "a722b5a4-f7fc-4884-8c23-58cc3a96f309",
     "line_user_id": "U6f168a56162e00e6ea19af8dd6d82fe9",
     "line_display_name": "LINEユーザー名",
     "line_language": "ja",
     "line_status_message": "LINEステータスメッセージ",
     "line_picture_url": "https://example.com/picture.jpg",
     "line_profile_api_json": [],
     "display_name": "表示名",
     "name": "名前",
     "email": "yamaguchi.minoru@test.net",
     "phone_number": "037-335-0831",
     "memo": "メモ",
}
                            

リクエスト      

GET api/v1/friends/{uuid} 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

uuid   string   

フレンドUUID 例: a722b5a4-f7fc-4884-8c23-58cc3a96f309

レスポンス

200      

指定されたuuidのFriendオブジェクト

テンプレート検索リストを取得

フレンドのテンプレート検索をぺージネーション形式で取得します。

リクエスト:
curl --request GET \
    --get "https://app.talklabel.com/api/v1/friend_search_templates/4b5f3472-e1b2-38ea-92f3-ff0ad0431934" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/friend_search_templates/4b5f3472-e1b2-38ea-92f3-ff0ad0431934"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/friend_search_templates/4b5f3472-e1b2-38ea-92f3-ff0ad0431934';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/friend_search_templates/4b5f3472-e1b2-38ea-92f3-ff0ad0431934'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

レスポンス (200):

                                                        
                    {
   "data": [
      {
        "name": "山田さんのみ",
        "friend_search_setting": {
             "id": 1,
             "blocked": "hidden",
             "blocking_hidden": "hidden",
             "sort_by": "friend_added_desc",
             "friend_search_groups": [
                 {
                     "id": 1,
                     "friend_search_setting_id": 1,
                     "friend_search_conditions": [
                         {
                             "id": 1,
                             "friend_search_group_id": 1,
                             "conditionable_type": "App\\Models\\ConditionName",
                             "conditionable_id": 1,
                             "conditionable": {
                                 "id": 1,
                                 "name": "山田",
                                 "is_line_display_name": true,
                                 "is_display_name": true,
                              }
                          }
                     ]
                 }
             ]
         }
      }
   ],
    "links": {
        "first": "/api/v1/friend_search_templates/78927a54-3416-337d-8f07-bd2d3e06bf59?page=1",
        "last": "/api/v1/friend_search_templates/78927a54-3416-337d-8f07-bd2d3e06bf59?page=1",
        "prev": null,
        "next": null
   },
    "meta": {
         "current_page": 1,
         "from": 1,
         "last_page": 1,
         "links": [
             {
                 "url": null,
                 "label": "« 前",
                 "active": false
             },
             {
                 "url": "/api/v1/friend_search_templates/78927a54-3416-337d-8f07-bd2d3e06bf59?page=1",
                 "label": "1",
                 "active": true
             },
             {
                 "url": null,
                 "label": "次 »",
                 "active": false
             }
         ],
     "path": "/api/v1/friend_search_templates/78927a54-3416-337d-8f07-bd2d3e06bf59",
     "per_page": 50,
     "to": 1,
     "total": 1
  }
                            

リクエスト      

GET api/v1/friend_search_templates/{channel_uuid} 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

channel_uuid   string   

例: 4b5f3472-e1b2-38ea-92f3-ff0ad0431934

レスポンス

200      

FriendSearchTemplateオブジェクトPaginationオブジェクト

FriendTalk

友だちトーク画面URLを取得

指定した友だちのトーク画面URLを取得します。

リクエスト:
curl --request GET \
    --get "https://app.talklabel.com/api/v1/friends/1/talk_url" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/friends/1/talk_url"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/friends/1/talk_url';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/friends/1/talk_url'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

レスポンス (200):

                                                        
                    {
    "url": "https://localhost/friend_talk/friend_search?friend_uuid=a722b5a4-f7fc-4884-8c23-58cc3a96f309"
}
                            

リクエスト      

GET api/v1/friends/{friend_uuid}/talk_url 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

friend_uuid   integer   

例: 1

uuid   string   

友だちUUID 例: a722b5a4-f7fc-4884-8c23-58cc3a96f309

Message

メッセージ履歴を取得

メッセージ履歴をぺージネーション形式で取得します。

リクエスト:
curl --request GET \
    --get "https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories?page=1&rowsPerPage=50" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories"
);

const params = {
    "page": "1",
    "rowsPerPage": "50",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'rowsPerPage' => '50',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories'
params = {
  'page': '1',
  'rowsPerPage': '50',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

レスポンス (200):

                                                        
                    {
   "data": [
      {
           "uuid": "c95d0006-5c6d-4b9a-b5f9-2db75bb2a14f",
           "message_type": 1,
           "content_type": 1,
           "line_message_id": "1234567890",
           "file_url": "https://example.com/file.jpg",
           "content": "メッセージ内容",
           "messaged_at": "2021-01-01 00:00:00",
           "send_status": 1,
           "response_json": "{}",
           "text": "メッセージ内容",
           "transaction_key": "c95d0006-5c6d-4b9a-b5f9-2db75bb2a14f",
           "is_free_message": false,
           "message_task_mark": {
              {
                 "name": "タスクマーク名",
                 "color": "#000000",
                 "order": 0
              }
           ]
      }
   ],
    "links": {
        "first": "/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories?page=1",
        "last": "/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories?page=1",
        "prev": null,
        "next": null
   },
    "meta": {
         "current_page": 1,
         "from": 1,
         "last_page": 1,
         "links": [
             {
                 "url": null,
                 "label": "« 前",
                 "active": false
             },
             {
                 "url": "/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories?page=1",
                 "label": "1",
                 "active": true
             },
             {
                 "url": null,
                 "label": "次 »",
                 "active": false
             }
         ],
     "path": "/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message_histories?page=1",
     "per_page": 50,
     "to": 1,
     "total": 1
  }
                            

リクエスト      

GET api/v1/friends/{friend_uuid}/message_histories 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

friend_uuid   string   

友達UUID 例: 9cdf3aca-43f8-48f4-bb6a-6b06079f6421

クエリパラメータ

page   integer  optional  

ページ数 例: 1

rowsPerPage   integer  optional  

1ページあたりの数 例: 50

レスポンス

200      

MessageHistoryオブジェクトPaginationオブジェクト

メッセージを送信

メッセージを送信します。

リクエスト:
curl --request POST \
    "https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message/push" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"variable\": {
        \"system\": \"facere\",
        \"replace_friends\": [
            {
                \"friend_uuid\": \"9cdf3aca-43f8-48f4-bb6a-6b06079f6421\",
                \"replaces\": [
                    {
                        \"key\": \"price\",
                        \"value\": \"¥100\"
                    }
                ]
            }
        ],
        \"names\": [
            \"price\"
        ]
    },
    \"messages\": [
        {
            \"type\": 4,
            \"text_sender_name\": \"swueuqbr\",
            \"text_sender_image_url\": \"http:\\/\\/barton.com\\/qui-eligendi-eveniet-similique-voluptatem-ut-qui-pariatur-est.html\",
            \"stamp_sender_name\": \"qs\",
            \"stamp_sender_image_url\": \"https:\\/\\/welch.com\\/sunt-deleniti-sed-eaque-occaecati-omnis-dolor-aut.html\",
            \"image_sender_name\": \"jvystpinxxdoiwr\",
            \"image_sender_image_url\": \"http:\\/\\/gaylord.com\\/eum-aut-corrupti-soluta-enim-dolorem-praesentium-consectetur.html\",
            \"video_sender_name\": \"guaohwukgmm\",
            \"video_sender_image_url\": \"https:\\/\\/www.torphy.com\\/et-eveniet-ea-est-tempore-ullam-qui\",
            \"audio_sender_name\": \"irwwgzbubfjp\",
            \"audio_sender_image_url\": \"http:\\/\\/www.corkery.com\\/vel-hic-et-perspiciatis-nostrum\",
            \"question_sender_name\": \"gtnyflrinivjopawn\",
            \"question_sender_image_url\": \"http:\\/\\/denesik.com\\/et-repudiandae-consequatur-qui-rerum-dignissimos.html\",
            \"carousel_sender_name\": \"d\",
            \"carousel_sender_image_url\": \"http:\\/\\/green.net\\/debitis-qui-qui-quidem-saepe-alias-autem-voluptatem\",
            \"location_sender_name\": \"gxfwydd\",
            \"location_sender_image_url\": \"http:\\/\\/www.herzog.com\\/sequi-eum-suscipit-porro-qui-tenetur.html\",
            \"introduction_sender_name\": \"ljevxgslthisdpz\",
            \"introduction_sender_image_url\": \"http:\\/\\/grant.org\\/quo-illo-suscipit-adipisci-aut\",
            \"flex_sender_name\": \"gej\",
            \"flex_sender_image_url\": \"https:\\/\\/www.mayer.com\\/in-suscipit-id-ut-nulla-aut\",
            \"text\": \"gdnstrxvmbnahyemunwvas\",
            \"package_id\": 187352.1517,
            \"sticker_id\": 26,
            \"image_url\": \"https:\\/\\/example.com\\/image.jpg\",
            \"image_width\": 2.6895,
            \"image_height\": 49.85,
            \"imagemap_type\": 8,
            \"imagemap_areas\": [
                {
                    \"link_action\": 1,
                    \"url\": \"http:\\/\\/bahringer.info\\/quis-dolor-quam-illo-vero-cupiditate-est-fugiat\"
                }
            ],
            \"image_alt_text\": \"gvfrhajzsvpxxpwinxi\",
            \"video_url\": \"https:\\/\\/example.com\\/video.mp4\",
            \"preview_image_url\": \"https:\\/\\/example.com\\/preview.jpg\",
            \"audio_url\": \"https:\\/\\/example.com\\/audio.mp3\",
            \"audio_duration\": 16,
            \"question\": \"py\",
            \"question_alt_text\": \"lhydxmxdgadmwzd\",
            \"message_question_choices\": [
                {
                    \"choice\": \"omcesatoginfyhskmxk\",
                    \"selected_action_type\": 5,
                    \"order\": 19,
                    \"url\": \"http:\\/\\/lowe.com\\/ad-minima-quibusdam-et-temporibus-dolores-soluta-inventore.html\",
                    \"phone_number\": \"Ad----d-dd----dz\",
                    \"line_id\": \"numquam\",
                    \"email\": \"west.olaf@example.org\",
                    \"message_question_choice_actions\": [
                        {
                            \"actionable_type\": \"App\\\\Models\\\\ActionNotification\",
                            \"actionable\": {
                                \"tags\": [
                                    {
                                        \"id\": \"provident\"
                                    }
                                ]
                            }
                        }
                    ]
                }
            ],
            \"message_carousel_panels\": [
                {
                    \"title\": \"nahboyjawtwynkxsedvyvr\",
                    \"text\": \"lpplgebicmizpam\",
                    \"message_carousel_choices\": [
                        {
                            \"name\": \"urxvihaaouyxzwfxcy\",
                            \"carousel_action\": 1,
                            \"url\": \"http:\\/\\/altenwerth.com\\/omnis-veritatis-deleniti-laboriosam-impedit\",
                            \"tel\": \"A---dd-z\",
                            \"line_user_id\": \"odio\",
                            \"mail\": \"fhackett@example.com\",
                            \"message_carousel_choice_actions\": [
                                {
                                    \"actionable_type\": \"App\\\\Models\\\\ActionTag\",
                                    \"actionable\": {
                                        \"tags\": [
                                            {
                                                \"id\": \"libero\"
                                            }
                                        ]
                                    }
                                }
                            ]
                        }
                    ]
                }
            ],
            \"carousel_alt_text\": \"pduxibdezjumrantiwwumnl\",
            \"location_title\": \"nbtunoowyqsamsybcxqxutfyq\",
            \"location_address\": \"pclnsjcrygffmdarcj\",
            \"location_latitude\": 35.681236,
            \"location_longitude\": 139.767125,
            \"introduction_text\": \"behubdlxeienorvqvnpp\",
            \"introduction_line_id\": \"puronphioyrkwkfcfkp\",
            \"introduction_alt_text\": \"gxfkxyglzhickfqlok\",
            \"flex_json\": \"pariatur\"
        }
    ]
}"
const url = new URL(
    "https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message/push"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "variable": {
        "system": "facere",
        "replace_friends": [
            {
                "friend_uuid": "9cdf3aca-43f8-48f4-bb6a-6b06079f6421",
                "replaces": [
                    {
                        "key": "price",
                        "value": "¥100"
                    }
                ]
            }
        ],
        "names": [
            "price"
        ]
    },
    "messages": [
        {
            "type": 4,
            "text_sender_name": "swueuqbr",
            "text_sender_image_url": "http:\/\/barton.com\/qui-eligendi-eveniet-similique-voluptatem-ut-qui-pariatur-est.html",
            "stamp_sender_name": "qs",
            "stamp_sender_image_url": "https:\/\/welch.com\/sunt-deleniti-sed-eaque-occaecati-omnis-dolor-aut.html",
            "image_sender_name": "jvystpinxxdoiwr",
            "image_sender_image_url": "http:\/\/gaylord.com\/eum-aut-corrupti-soluta-enim-dolorem-praesentium-consectetur.html",
            "video_sender_name": "guaohwukgmm",
            "video_sender_image_url": "https:\/\/www.torphy.com\/et-eveniet-ea-est-tempore-ullam-qui",
            "audio_sender_name": "irwwgzbubfjp",
            "audio_sender_image_url": "http:\/\/www.corkery.com\/vel-hic-et-perspiciatis-nostrum",
            "question_sender_name": "gtnyflrinivjopawn",
            "question_sender_image_url": "http:\/\/denesik.com\/et-repudiandae-consequatur-qui-rerum-dignissimos.html",
            "carousel_sender_name": "d",
            "carousel_sender_image_url": "http:\/\/green.net\/debitis-qui-qui-quidem-saepe-alias-autem-voluptatem",
            "location_sender_name": "gxfwydd",
            "location_sender_image_url": "http:\/\/www.herzog.com\/sequi-eum-suscipit-porro-qui-tenetur.html",
            "introduction_sender_name": "ljevxgslthisdpz",
            "introduction_sender_image_url": "http:\/\/grant.org\/quo-illo-suscipit-adipisci-aut",
            "flex_sender_name": "gej",
            "flex_sender_image_url": "https:\/\/www.mayer.com\/in-suscipit-id-ut-nulla-aut",
            "text": "gdnstrxvmbnahyemunwvas",
            "package_id": 187352.1517,
            "sticker_id": 26,
            "image_url": "https:\/\/example.com\/image.jpg",
            "image_width": 2.6895,
            "image_height": 49.85,
            "imagemap_type": 8,
            "imagemap_areas": [
                {
                    "link_action": 1,
                    "url": "http:\/\/bahringer.info\/quis-dolor-quam-illo-vero-cupiditate-est-fugiat"
                }
            ],
            "image_alt_text": "gvfrhajzsvpxxpwinxi",
            "video_url": "https:\/\/example.com\/video.mp4",
            "preview_image_url": "https:\/\/example.com\/preview.jpg",
            "audio_url": "https:\/\/example.com\/audio.mp3",
            "audio_duration": 16,
            "question": "py",
            "question_alt_text": "lhydxmxdgadmwzd",
            "message_question_choices": [
                {
                    "choice": "omcesatoginfyhskmxk",
                    "selected_action_type": 5,
                    "order": 19,
                    "url": "http:\/\/lowe.com\/ad-minima-quibusdam-et-temporibus-dolores-soluta-inventore.html",
                    "phone_number": "Ad----d-dd----dz",
                    "line_id": "numquam",
                    "email": "west.olaf@example.org",
                    "message_question_choice_actions": [
                        {
                            "actionable_type": "App\\Models\\ActionNotification",
                            "actionable": {
                                "tags": [
                                    {
                                        "id": "provident"
                                    }
                                ]
                            }
                        }
                    ]
                }
            ],
            "message_carousel_panels": [
                {
                    "title": "nahboyjawtwynkxsedvyvr",
                    "text": "lpplgebicmizpam",
                    "message_carousel_choices": [
                        {
                            "name": "urxvihaaouyxzwfxcy",
                            "carousel_action": 1,
                            "url": "http:\/\/altenwerth.com\/omnis-veritatis-deleniti-laboriosam-impedit",
                            "tel": "A---dd-z",
                            "line_user_id": "odio",
                            "mail": "fhackett@example.com",
                            "message_carousel_choice_actions": [
                                {
                                    "actionable_type": "App\\Models\\ActionTag",
                                    "actionable": {
                                        "tags": [
                                            {
                                                "id": "libero"
                                            }
                                        ]
                                    }
                                }
                            ]
                        }
                    ]
                }
            ],
            "carousel_alt_text": "pduxibdezjumrantiwwumnl",
            "location_title": "nbtunoowyqsamsybcxqxutfyq",
            "location_address": "pclnsjcrygffmdarcj",
            "location_latitude": 35.681236,
            "location_longitude": 139.767125,
            "introduction_text": "behubdlxeienorvqvnpp",
            "introduction_line_id": "puronphioyrkwkfcfkp",
            "introduction_alt_text": "gxfkxyglzhickfqlok",
            "flex_json": "pariatur"
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message/push';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'variable' => [
                'system' => 'facere',
                'replace_friends' => [
                    [
                        'friend_uuid' => '9cdf3aca-43f8-48f4-bb6a-6b06079f6421',
                        'replaces' => [
                            [
                                'key' => 'price',
                                'value' => '¥100',
                            ],
                        ],
                    ],
                ],
                'names' => [
                    'price',
                ],
            ],
            'messages' => [
                [
                    'type' => 4,
                    'text_sender_name' => 'swueuqbr',
                    'text_sender_image_url' => 'http://barton.com/qui-eligendi-eveniet-similique-voluptatem-ut-qui-pariatur-est.html',
                    'stamp_sender_name' => 'qs',
                    'stamp_sender_image_url' => 'https://welch.com/sunt-deleniti-sed-eaque-occaecati-omnis-dolor-aut.html',
                    'image_sender_name' => 'jvystpinxxdoiwr',
                    'image_sender_image_url' => 'http://gaylord.com/eum-aut-corrupti-soluta-enim-dolorem-praesentium-consectetur.html',
                    'video_sender_name' => 'guaohwukgmm',
                    'video_sender_image_url' => 'https://www.torphy.com/et-eveniet-ea-est-tempore-ullam-qui',
                    'audio_sender_name' => 'irwwgzbubfjp',
                    'audio_sender_image_url' => 'http://www.corkery.com/vel-hic-et-perspiciatis-nostrum',
                    'question_sender_name' => 'gtnyflrinivjopawn',
                    'question_sender_image_url' => 'http://denesik.com/et-repudiandae-consequatur-qui-rerum-dignissimos.html',
                    'carousel_sender_name' => 'd',
                    'carousel_sender_image_url' => 'http://green.net/debitis-qui-qui-quidem-saepe-alias-autem-voluptatem',
                    'location_sender_name' => 'gxfwydd',
                    'location_sender_image_url' => 'http://www.herzog.com/sequi-eum-suscipit-porro-qui-tenetur.html',
                    'introduction_sender_name' => 'ljevxgslthisdpz',
                    'introduction_sender_image_url' => 'http://grant.org/quo-illo-suscipit-adipisci-aut',
                    'flex_sender_name' => 'gej',
                    'flex_sender_image_url' => 'https://www.mayer.com/in-suscipit-id-ut-nulla-aut',
                    'text' => 'gdnstrxvmbnahyemunwvas',
                    'package_id' => 187352.1517,
                    'sticker_id' => 26.0,
                    'image_url' => 'https://example.com/image.jpg',
                    'image_width' => 2.6895,
                    'image_height' => 49.85,
                    'imagemap_type' => 8,
                    'imagemap_areas' => [
                        [
                            'link_action' => 1,
                            'url' => 'http://bahringer.info/quis-dolor-quam-illo-vero-cupiditate-est-fugiat',
                        ],
                    ],
                    'image_alt_text' => 'gvfrhajzsvpxxpwinxi',
                    'video_url' => 'https://example.com/video.mp4',
                    'preview_image_url' => 'https://example.com/preview.jpg',
                    'audio_url' => 'https://example.com/audio.mp3',
                    'audio_duration' => 16,
                    'question' => 'py',
                    'question_alt_text' => 'lhydxmxdgadmwzd',
                    'message_question_choices' => [
                        [
                            'choice' => 'omcesatoginfyhskmxk',
                            'selected_action_type' => 5,
                            'order' => 19,
                            'url' => 'http://lowe.com/ad-minima-quibusdam-et-temporibus-dolores-soluta-inventore.html',
                            'phone_number' => 'Ad----d-dd----dz',
                            'line_id' => 'numquam',
                            'email' => 'west.olaf@example.org',
                            'message_question_choice_actions' => [
                                [
                                    'actionable_type' => 'App\\Models\\ActionNotification',
                                    'actionable' => [
                                        'tags' => [
                                            [
                                                'id' => 'provident',
                                            ],
                                        ],
                                    ],
                                ],
                            ],
                        ],
                    ],
                    'message_carousel_panels' => [
                        [
                            'title' => 'nahboyjawtwynkxsedvyvr',
                            'text' => 'lpplgebicmizpam',
                            'message_carousel_choices' => [
                                [
                                    'name' => 'urxvihaaouyxzwfxcy',
                                    'carousel_action' => 1,
                                    'url' => 'http://altenwerth.com/omnis-veritatis-deleniti-laboriosam-impedit',
                                    'tel' => 'A---dd-z',
                                    'line_user_id' => 'odio',
                                    'mail' => 'fhackett@example.com',
                                    'message_carousel_choice_actions' => [
                                        [
                                            'actionable_type' => 'App\\Models\\ActionTag',
                                            'actionable' => [
                                                'tags' => [
                                                    [
                                                        'id' => 'libero',
                                                    ],
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                            ],
                        ],
                    ],
                    'carousel_alt_text' => 'pduxibdezjumrantiwwumnl',
                    'location_title' => 'nbtunoowyqsamsybcxqxutfyq',
                    'location_address' => 'pclnsjcrygffmdarcj',
                    'location_latitude' => 35.681236,
                    'location_longitude' => 139.767125,
                    'introduction_text' => 'behubdlxeienorvqvnpp',
                    'introduction_line_id' => 'puronphioyrkwkfcfkp',
                    'introduction_alt_text' => 'gxfkxyglzhickfqlok',
                    'flex_json' => 'pariatur',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/friends/9cdf3aca-43f8-48f4-bb6a-6b06079f6421/message/push'
payload = {
    "variable": {
        "system": "facere",
        "replace_friends": [
            {
                "friend_uuid": "9cdf3aca-43f8-48f4-bb6a-6b06079f6421",
                "replaces": [
                    {
                        "key": "price",
                        "value": "¥100"
                    }
                ]
            }
        ],
        "names": [
            "price"
        ]
    },
    "messages": [
        {
            "type": 4,
            "text_sender_name": "swueuqbr",
            "text_sender_image_url": "http:\/\/barton.com\/qui-eligendi-eveniet-similique-voluptatem-ut-qui-pariatur-est.html",
            "stamp_sender_name": "qs",
            "stamp_sender_image_url": "https:\/\/welch.com\/sunt-deleniti-sed-eaque-occaecati-omnis-dolor-aut.html",
            "image_sender_name": "jvystpinxxdoiwr",
            "image_sender_image_url": "http:\/\/gaylord.com\/eum-aut-corrupti-soluta-enim-dolorem-praesentium-consectetur.html",
            "video_sender_name": "guaohwukgmm",
            "video_sender_image_url": "https:\/\/www.torphy.com\/et-eveniet-ea-est-tempore-ullam-qui",
            "audio_sender_name": "irwwgzbubfjp",
            "audio_sender_image_url": "http:\/\/www.corkery.com\/vel-hic-et-perspiciatis-nostrum",
            "question_sender_name": "gtnyflrinivjopawn",
            "question_sender_image_url": "http:\/\/denesik.com\/et-repudiandae-consequatur-qui-rerum-dignissimos.html",
            "carousel_sender_name": "d",
            "carousel_sender_image_url": "http:\/\/green.net\/debitis-qui-qui-quidem-saepe-alias-autem-voluptatem",
            "location_sender_name": "gxfwydd",
            "location_sender_image_url": "http:\/\/www.herzog.com\/sequi-eum-suscipit-porro-qui-tenetur.html",
            "introduction_sender_name": "ljevxgslthisdpz",
            "introduction_sender_image_url": "http:\/\/grant.org\/quo-illo-suscipit-adipisci-aut",
            "flex_sender_name": "gej",
            "flex_sender_image_url": "https:\/\/www.mayer.com\/in-suscipit-id-ut-nulla-aut",
            "text": "gdnstrxvmbnahyemunwvas",
            "package_id": 187352.1517,
            "sticker_id": 26,
            "image_url": "https:\/\/example.com\/image.jpg",
            "image_width": 2.6895,
            "image_height": 49.85,
            "imagemap_type": 8,
            "imagemap_areas": [
                {
                    "link_action": 1,
                    "url": "http:\/\/bahringer.info\/quis-dolor-quam-illo-vero-cupiditate-est-fugiat"
                }
            ],
            "image_alt_text": "gvfrhajzsvpxxpwinxi",
            "video_url": "https:\/\/example.com\/video.mp4",
            "preview_image_url": "https:\/\/example.com\/preview.jpg",
            "audio_url": "https:\/\/example.com\/audio.mp3",
            "audio_duration": 16,
            "question": "py",
            "question_alt_text": "lhydxmxdgadmwzd",
            "message_question_choices": [
                {
                    "choice": "omcesatoginfyhskmxk",
                    "selected_action_type": 5,
                    "order": 19,
                    "url": "http:\/\/lowe.com\/ad-minima-quibusdam-et-temporibus-dolores-soluta-inventore.html",
                    "phone_number": "Ad----d-dd----dz",
                    "line_id": "numquam",
                    "email": "west.olaf@example.org",
                    "message_question_choice_actions": [
                        {
                            "actionable_type": "App\\Models\\ActionNotification",
                            "actionable": {
                                "tags": [
                                    {
                                        "id": "provident"
                                    }
                                ]
                            }
                        }
                    ]
                }
            ],
            "message_carousel_panels": [
                {
                    "title": "nahboyjawtwynkxsedvyvr",
                    "text": "lpplgebicmizpam",
                    "message_carousel_choices": [
                        {
                            "name": "urxvihaaouyxzwfxcy",
                            "carousel_action": 1,
                            "url": "http:\/\/altenwerth.com\/omnis-veritatis-deleniti-laboriosam-impedit",
                            "tel": "A---dd-z",
                            "line_user_id": "odio",
                            "mail": "fhackett@example.com",
                            "message_carousel_choice_actions": [
                                {
                                    "actionable_type": "App\\Models\\ActionTag",
                                    "actionable": {
                                        "tags": [
                                            {
                                                "id": "libero"
                                            }
                                        ]
                                    }
                                }
                            ]
                        }
                    ]
                }
            ],
            "carousel_alt_text": "pduxibdezjumrantiwwumnl",
            "location_title": "nbtunoowyqsamsybcxqxutfyq",
            "location_address": "pclnsjcrygffmdarcj",
            "location_latitude": 35.681236,
            "location_longitude": 139.767125,
            "introduction_text": "behubdlxeienorvqvnpp",
            "introduction_line_id": "puronphioyrkwkfcfkp",
            "introduction_alt_text": "gxfkxyglzhickfqlok",
            "flex_json": "pariatur"
        }
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

リクエスト      

POST api/v1/friends/{friend_uuid}/message/push 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

friend_uuid   string   

string 友達UUID 例: 9cdf3aca-43f8-48f4-bb6a-6b06079f6421

ボディパラメータ

variable   object  optional  

変数

system   string   

例: facere

replace_friends   object[]  optional  

置換リスト

friend_uuid   string   

友だちUUID 例: 9cdf3aca-43f8-48f4-bb6a-6b06079f6421

replaces   object[]  optional  
key   string   

置換キー 例: price

value   required  optional  

置換後の値 例: ¥100

names   string[]  optional  

変数名リスト

messages   object[]   

メッセージ

type   integer   

例: 4

この中から選択:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
text_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/. valueは、20文字以下で指定してください。. 例: swueuqbr

text_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://barton.com/qui-eligendi-eveniet-similique-voluptatem-ut-qui-pariatur-est.html

stamp_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: qs

stamp_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: https://welch.com/sunt-deleniti-sed-eaque-occaecati-omnis-dolor-aut.html

image_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: jvystpinxxdoiwr

image_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://gaylord.com/eum-aut-corrupti-soluta-enim-dolorem-praesentium-consectetur.html

video_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: guaohwukgmm

video_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: https://www.torphy.com/et-eveniet-ea-est-tempore-ullam-qui

audio_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: irwwgzbubfjp

audio_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.corkery.com/vel-hic-et-perspiciatis-nostrum

question_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: gtnyflrinivjopawn

question_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://denesik.com/et-repudiandae-consequatur-qui-rerum-dignissimos.html

carousel_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: d

carousel_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://green.net/debitis-qui-qui-quidem-saepe-alias-autem-voluptatem

location_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: gxfwydd

location_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.herzog.com/sequi-eum-suscipit-porro-qui-tenetur.html

introduction_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: ljevxgslthisdpz

introduction_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://grant.org/quo-illo-suscipit-adipisci-aut

flex_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: gej

flex_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: https://www.mayer.com/in-suscipit-id-ut-nulla-aut

text   string   

valueは、4000文字以下で指定してください。. 例: gdnstrxvmbnahyemunwvas

package_id   number   

例: 187352.1517

sticker_id   number   

例: 26

image_url   string  optional  

画像URL 例: https://example.com/image.jpg

image_width   number   

例: 2.6895

image_height   number   

例: 49.85

imagemap_type   integer   

例: 8

この中から選択:
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
imagemap_areas   object[]  optional  
link_action   integer   

例: 1

この中から選択:
  • 0
  • 1
url   string  optional  

This field is required when messages..imagemap_areas..link_action is 1. Must be a valid URL. 例: http://bahringer.info/quis-dolor-quam-illo-vero-cupiditate-est-fugiat

image_alt_text   string  optional  

valueは、400文字以下で指定してください。. 例: gvfrhajzsvpxxpwinxi

video_url   string  optional  

動画URL 例: https://example.com/video.mp4

preview_image_url   string  optional  

プレビュー画像URL 例: https://example.com/preview.jpg

audio_url   string  optional  

音楽URL 例: https://example.com/audio.mp3

audio_duration   integer   

例: 16

question   string   

valueは、160文字以下で指定してください。. 例: py

question_alt_text   string  optional  

valueは、400文字以下で指定してください。. 例: lhydxmxdgadmwzd

message_question_choices   object[]   
choice   string   

valueは、20文字以下で指定してください。. 例: omcesatoginfyhskmxk

selected_action_type   integer   

例: 5

この中から選択:
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
order   integer   

例: 19

url   string   

Must be a valid URL. 例: http://lowe.com/ad-minima-quibusdam-et-temporibus-dolores-soluta-inventore.html

phone_number   string   

Must match the regex /\A[\d-]{1,15}\z/. 例: Ad----d-dd----dz

line_id   string   

例: numquam

email   string   

valueには、有効なメールアドレスを指定してください。. 例: west.olaf@example.org

message_question_choice_actions   object[]   
actionable_type   string   

例: App\Models\ActionNotification

この中から選択:
  • App\Models\ActionMessage
  • App\Models\ActionTemplateMessage
  • App\Models\ActionTag
  • App\Models\ActionScenario
  • App\Models\ActionReminder
  • App\Models\ActionLabelDisplay
  • App\Models\ActionNotification
  • App\Models\ActionRichMenu
  • App\Models\ActionFriendCustomField
actionable_id   string  optional  
actionable   string   

例: maiores

template_message   object  optional  
id   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable_type is App\Models\ActionTemplateMessage.

send_timing   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable_type is App\Models\ActionTemplateMessage.

send_delay_minutes   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable_type is App\Models\ActionTemplateMessage.

action_type   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable_type is App\Models\ActionRichMenu. 例: 1

この中から選択:
  • 1
  • 2
tags   object[]  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable_type is App\Models\ActionTag.

id   string   

例: provident

scenario   object  optional  
id   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable.action_type is 1.

scenario_timing   object  optional  
id   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable.action_type is 1.

reminder   object  optional  
id   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable_type is App\Models\ActionReminder.

goal_datetime   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable.action_type is 1. valueには有効な日付を指定してください。. 例: 2026-05-15T20:40:06

friend_task_mark   object  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable_type is App\Models\ActionLabelDisplay.

id   string  optional  
block_hidden   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable_type is App\Models\ActionLabelDisplay. 例: 3

この中から選択:
  • 1
  • 2
  • 3
  • 4
send_message   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable_type is App\Models\ActionLabelDisplay. 例: 3

この中から選択:
  • 1
  • 2
  • 3
text   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable_type is App\Models\ActionNotification. 例: minus

rich_menu   object  optional  
id   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable.action_type is 1.

friend_custom_field_id   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable_type is App\Models\ActionFriendCustomField.

operation_type   string  optional  

This field is required when messages..message_question_choices..message_question_choice_actions.*.actionable_type is App\Models\ActionFriendCustomField. 例: 3

この中から選択:
  • 1
  • 2
  • 3
  • 4
value   string  optional  
message_carousel_panels   object[]   
title   string  optional  

valueは、40文字以下で指定してください。. 例: nahboyjawtwynkxsedvyvr

text   string   

valueは、60文字以下で指定してください。. 例: lpplgebicmizpam

media_file_id   string  optional  
image_url   string  optional  
message_carousel_choices   object[]   
name   string   

valueは、20文字以下で指定してください。. 例: urxvihaaouyxzwfxcy

carousel_action   integer   

例: 1

この中から選択:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
url   string   

Must be a valid URL. 例: http://altenwerth.com/omnis-veritatis-deleniti-laboriosam-impedit

tel   string   

Must match the regex /\A[\d-]{1,15}\z/. 例: A---dd-z

line_user_id   string   

例: odio

mail   string   

valueには、有効なメールアドレスを指定してください。. 例: fhackett@example.com

message_carousel_choice_actions   object[]   
actionable_type   string   

例: App\Models\ActionTag

この中から選択:
  • App\Models\ActionMessage
  • App\Models\ActionTemplateMessage
  • App\Models\ActionTag
  • App\Models\ActionScenario
  • App\Models\ActionReminder
  • App\Models\ActionLabelDisplay
  • App\Models\ActionNotification
  • App\Models\ActionRichMenu
  • App\Models\ActionFriendCustomField
actionable_id   string  optional  
actionable   string   

例: eaque

template_message   object  optional  
id   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable_type is App\Models\ActionTemplateMessage.

send_timing   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable_type is App\Models\ActionTemplateMessage.

send_delay_minutes   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable_type is App\Models\ActionTemplateMessage.

action_type   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable_type is App\Models\ActionRichMenu. 例: 1

この中から選択:
  • 1
  • 2
tags   object[]  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable_type is App\Models\ActionTag.

id   string   

例: libero

scenario   object  optional  
id   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable.action_type is 1.

scenario_timing   object  optional  
id   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable.action_type is 1.

reminder   object  optional  
id   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable_type is App\Models\ActionReminder.

goal_datetime   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable.action_type is 1. valueには有効な日付を指定してください。. 例: 2026-05-15T20:40:06

friend_task_mark   object  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable_type is App\Models\ActionLabelDisplay.

id   string  optional  
block_hidden   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable_type is App\Models\ActionLabelDisplay. 例: 1

この中から選択:
  • 1
  • 2
  • 3
  • 4
send_message   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable_type is App\Models\ActionLabelDisplay. 例: 2

この中から選択:
  • 1
  • 2
  • 3
text   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable_type is App\Models\ActionNotification. 例: itaque

rich_menu   object  optional  
id   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable.action_type is 1.

friend_custom_field_id   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable_type is App\Models\ActionFriendCustomField.

operation_type   string  optional  

This field is required when messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions..actionable_type is App\Models\ActionFriendCustomField. 例: 4

この中から選択:
  • 1
  • 2
  • 3
  • 4
value   string  optional  
carousel_alt_text   string  optional  

valueは、400文字以下で指定してください。. 例: pduxibdezjumrantiwwumnl

location_title   string   

valueは、100文字以下で指定してください。. 例: nbtunoowyqsamsybcxqxutfyq

location_address   string   

valueは、100文字以下で指定してください。. 例: pclnsjcrygffmdarcj

location_latitude   number  optional  

緯度 例: 35.681236

location_longitude   number  optional  

経度 例: 139.767125

introduction_text   string   

valueは、60文字以下で指定してください。. 例: behubdlxeienorvqvnpp

introduction_line_id   string   

valueは、20文字以下で指定してください。. 例: puronphioyrkwkfcfkp

introduction_alt_text   string   

valueは、400文字以下で指定してください。. 例: gxfkxyglzhickfqlok

flex_json   string   

例: pariatur

レスポンス

200      

作成されたActionMessageオブジェクト

フレックスメッセージを送信

フレックスメッセージを送信します。

リクエスト:
curl --request POST \
    "https://app.talklabel.com/api/v1/friends/flex_message/push" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"friend_ids\": [
        \"e07ba8c6-f563-440e-a800-316c89f18f19\",
        \"9cdf3aca-43f8-48f4-bb6a-6b06079f6421\"
    ],
    \"flex_json\": \"nam\"
}"
const url = new URL(
    "https://app.talklabel.com/api/v1/friends/flex_message/push"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "friend_ids": [
        "e07ba8c6-f563-440e-a800-316c89f18f19",
        "9cdf3aca-43f8-48f4-bb6a-6b06079f6421"
    ],
    "flex_json": "nam"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/friends/flex_message/push';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'friend_ids' => [
                'e07ba8c6-f563-440e-a800-316c89f18f19',
                '9cdf3aca-43f8-48f4-bb6a-6b06079f6421',
            ],
            'flex_json' => 'nam',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/friends/flex_message/push'
payload = {
    "friend_ids": [
        "e07ba8c6-f563-440e-a800-316c89f18f19",
        "9cdf3aca-43f8-48f4-bb6a-6b06079f6421"
    ],
    "flex_json": "nam"
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

リクエスト      

POST api/v1/friends/flex_message/push 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

ボディパラメータ

friend_ids   string[]   

友だちUUIDリスト

flex_json   string   

形式はフレックスメッセージで送信するJSONの形式を参照してください。 例: nam

レスポンス

200      

作成されたActionMessageオブジェクト

TemplateAction

テンプレートアクションリストを取得

テンプレートアクションリストをぺージネーション形式で取得します。

リクエスト:
curl --request GET \
    --get "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions?page=1&rowsPerPage=50&folder_uuid=08f511d4-058e-41f3-987c-25c34b3ed953" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions"
);

const params = {
    "page": "1",
    "rowsPerPage": "50",
    "folder_uuid": "08f511d4-058e-41f3-987c-25c34b3ed953",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'rowsPerPage' => '50',
            'folder_uuid' => '08f511d4-058e-41f3-987c-25c34b3ed953',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions'
params = {
  'page': '1',
  'rowsPerPage': '50',
  'folder_uuid': '08f511d4-058e-41f3-987c-25c34b3ed953',
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

レスポンス (200):

                                                        
                    {
   "data": [
      {
           "uuid": "c95d0006-5c6d-4b9a-b5f9-2db75bb2a14f",
           "name": "テンプレートアクション名",
           "actions": [
              {
                 "uuid": "88e3a7f5-888f-4610-9cd1-49f9352e3c26",
                 "actionable_type": "App\\Models\\ActionTag",
                 "order_number": 0,
                 "actionable": {
                     "action_type": 1,
                     "tags": [
                         {
                             "name": "タグ名",
                         }
                     ],
                 }
              }
           ]
      }
   ],
    "links": {
        "first": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions?page=1",
        "last": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions?page=1",
        "prev": null,
        "next": null
   },
    "meta": {
         "current_page": 1,
         "from": 1,
         "last_page": 1,
         "links": [
             {
                 "url": null,
                 "label": "« 前",
                 "active": false
             },
             {
                 "url": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions?page=1",
                 "label": "1",
                 "active": true
             },
             {
                 "url": null,
                 "label": "次 »",
                 "active": false
             }
         ],
     "path": "/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions?page=1",
     "per_page": 50,
     "to": 1,
     "total": 1
  }
                            

リクエスト      

GET api/v1/channels/{channel_uuid}/template_actions 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

channel_uuid   string   

チャネルUUID 例: 78927a54-3416-337d-8f07-bd2d3e06bf59

クエリパラメータ

page   integer  optional  

ページ数 例: 1

rowsPerPage   integer  optional  

1ページあたりの数 例: 50

folder_uuid   string  optional  

フォルダUUID 例: 08f511d4-058e-41f3-987c-25c34b3ed953

レスポンス

200      

TemplateActionオブジェクトPaginationオブジェクト

テンプレートアクションを作成

テンプレートアクションを作成します。

リクエスト:
curl --request POST \
    "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"folder_uuid\": \"7813356d-645f-4bcb-8d90-3c40da892ca2\",
    \"name\": \"テンプレートアクション名\",
    \"template_actions\": [
        {
            \"actionable\": {
                \"tags\": [
                    {
                        \"id\": \"molestias\"
                    }
                ],
                \"messages\": [
                    {
                        \"type\": 8,
                        \"text_sender_name\": \"y\",
                        \"text_sender_image_url\": \"https:\\/\\/erdman.biz\\/expedita-aspernatur-sit-quis-libero.html\",
                        \"stamp_sender_name\": \"wqt\",
                        \"stamp_sender_image_url\": \"http:\\/\\/www.hoeger.biz\\/aperiam-corporis-quasi-ab-earum-voluptatem-harum-qui\",
                        \"image_sender_name\": \"eh\",
                        \"image_sender_image_url\": \"https:\\/\\/ritchie.com\\/doloribus-eum-tenetur-omnis-pariatur.html\",
                        \"video_sender_name\": \"kiw\",
                        \"video_sender_image_url\": \"http:\\/\\/klein.org\\/\",
                        \"audio_sender_name\": \"vhmafduxukmtiga\",
                        \"audio_sender_image_url\": \"http:\\/\\/www.larson.com\\/\",
                        \"question_sender_name\": \"qzgukjhizknffvzxus\",
                        \"question_sender_image_url\": \"https:\\/\\/berge.info\\/porro-sunt-est-aliquam-rerum-blanditiis-voluptas-eos-sit.html\",
                        \"carousel_sender_name\": \"a\",
                        \"carousel_sender_image_url\": \"http:\\/\\/www.pouros.com\\/atque-cumque-fugit-ad\",
                        \"location_sender_name\": \"mwznmgfmbshjxv\",
                        \"location_sender_image_url\": \"http:\\/\\/www.gorczany.info\\/numquam-veniam-sint-sit-ratione-maiores-omnis-ut\",
                        \"introduction_sender_name\": \"nsfked\",
                        \"introduction_sender_image_url\": \"http:\\/\\/www.olson.com\\/saepe-est-aliquam-occaecati-maxime-assumenda-ad\",
                        \"flex_sender_name\": \"lwdwerxaueausoajjpj\",
                        \"flex_sender_image_url\": \"http:\\/\\/www.gutmann.com\\/placeat-recusandae-non-pariatur\",
                        \"text\": \"whyhuoygm\",
                        \"package_id\": 5284.08,
                        \"sticker_id\": 7082.30569,
                        \"image_url\": \"http:\\/\\/www.dubuque.org\\/vel-voluptas-adipisci-dolor-fuga-recusandae-qui.html\",
                        \"image_width\": 19255.134304,
                        \"image_height\": 87.757037,
                        \"imagemap_type\": 2,
                        \"imagemap_areas\": [
                            {
                                \"link_action\": 0,
                                \"url\": \"http:\\/\\/www.durgan.info\\/\"
                            }
                        ],
                        \"image_alt_text\": \"jfpxoyejzxnllqjdokj\",
                        \"video_url\": \"https:\\/\\/www.mohr.info\\/expedita-nisi-et-est-asperiores-sit-ex-enim-dolorum\",
                        \"preview_image_url\": \"http:\\/\\/www.sanford.org\\/quam-quod-alias-incidunt-aut.html\",
                        \"audio_url\": \"http:\\/\\/www.orn.com\\/ut-quo-impedit-eos-aperiam-placeat\",
                        \"audio_duration\": 2,
                        \"question\": \"wvk\",
                        \"question_alt_text\": \"ozf\",
                        \"message_question_choices\": [
                            {
                                \"choice\": \"ualnfate\",
                                \"selected_action_type\": 4,
                                \"order\": 11,
                                \"url\": \"http:\\/\\/www.mitchell.biz\\/minima-tenetur-libero-ipsa-tempora-aut-sit-fugiat\",
                                \"phone_number\": \"A-d--dd-ddd--z\",
                                \"line_id\": \"quae\",
                                \"email\": \"vgoldner@example.com\",
                                \"message_question_choice_actions\": [
                                    {
                                        \"actionable_type\": \"App\\\\Models\\\\ActionLabelDisplay\",
                                        \"actionable\": {
                                            \"tags\": [
                                                {
                                                    \"id\": \"et\"
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        ],
                        \"message_carousel_panels\": [
                            {
                                \"title\": \"qgsefnmntqzlx\",
                                \"text\": \"zjnltyqtqjasjtc\",
                                \"message_carousel_choices\": [
                                    {
                                        \"name\": \"dnybficuffkcskstjw\",
                                        \"carousel_action\": 3,
                                        \"url\": \"http:\\/\\/www.wisozk.org\\/sunt-laudantium-ratione-quia-alias\",
                                        \"tel\": \"A----d-z\",
                                        \"line_user_id\": \"pariatur\",
                                        \"mail\": \"westley78@example.com\",
                                        \"message_carousel_choice_actions\": [
                                            {
                                                \"actionable_type\": \"App\\\\Models\\\\ActionFriendCustomField\",
                                                \"actionable\": {
                                                    \"tags\": [
                                                        {
                                                            \"id\": \"exercitationem\"
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        ],
                        \"carousel_alt_text\": \"nhoezxodhjjvmauoylu\",
                        \"location_title\": \"eoitovlcarjpj\",
                        \"location_address\": \"kgzetibtiyabqzncrzua\",
                        \"location_latitude\": 614.9,
                        \"location_longitude\": 39177.08035,
                        \"introduction_text\": \"foqwfzg\",
                        \"introduction_line_id\": \"rzfbyoywqqlxpguhh\",
                        \"introduction_alt_text\": \"ncbhkijbdxgljbeg\",
                        \"flex_json\": \"deserunt\"
                    }
                ]
            }
        }
    ]
}"
const url = new URL(
    "https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "folder_uuid": "7813356d-645f-4bcb-8d90-3c40da892ca2",
    "name": "テンプレートアクション名",
    "template_actions": [
        {
            "actionable": {
                "tags": [
                    {
                        "id": "molestias"
                    }
                ],
                "messages": [
                    {
                        "type": 8,
                        "text_sender_name": "y",
                        "text_sender_image_url": "https:\/\/erdman.biz\/expedita-aspernatur-sit-quis-libero.html",
                        "stamp_sender_name": "wqt",
                        "stamp_sender_image_url": "http:\/\/www.hoeger.biz\/aperiam-corporis-quasi-ab-earum-voluptatem-harum-qui",
                        "image_sender_name": "eh",
                        "image_sender_image_url": "https:\/\/ritchie.com\/doloribus-eum-tenetur-omnis-pariatur.html",
                        "video_sender_name": "kiw",
                        "video_sender_image_url": "http:\/\/klein.org\/",
                        "audio_sender_name": "vhmafduxukmtiga",
                        "audio_sender_image_url": "http:\/\/www.larson.com\/",
                        "question_sender_name": "qzgukjhizknffvzxus",
                        "question_sender_image_url": "https:\/\/berge.info\/porro-sunt-est-aliquam-rerum-blanditiis-voluptas-eos-sit.html",
                        "carousel_sender_name": "a",
                        "carousel_sender_image_url": "http:\/\/www.pouros.com\/atque-cumque-fugit-ad",
                        "location_sender_name": "mwznmgfmbshjxv",
                        "location_sender_image_url": "http:\/\/www.gorczany.info\/numquam-veniam-sint-sit-ratione-maiores-omnis-ut",
                        "introduction_sender_name": "nsfked",
                        "introduction_sender_image_url": "http:\/\/www.olson.com\/saepe-est-aliquam-occaecati-maxime-assumenda-ad",
                        "flex_sender_name": "lwdwerxaueausoajjpj",
                        "flex_sender_image_url": "http:\/\/www.gutmann.com\/placeat-recusandae-non-pariatur",
                        "text": "whyhuoygm",
                        "package_id": 5284.08,
                        "sticker_id": 7082.30569,
                        "image_url": "http:\/\/www.dubuque.org\/vel-voluptas-adipisci-dolor-fuga-recusandae-qui.html",
                        "image_width": 19255.134304,
                        "image_height": 87.757037,
                        "imagemap_type": 2,
                        "imagemap_areas": [
                            {
                                "link_action": 0,
                                "url": "http:\/\/www.durgan.info\/"
                            }
                        ],
                        "image_alt_text": "jfpxoyejzxnllqjdokj",
                        "video_url": "https:\/\/www.mohr.info\/expedita-nisi-et-est-asperiores-sit-ex-enim-dolorum",
                        "preview_image_url": "http:\/\/www.sanford.org\/quam-quod-alias-incidunt-aut.html",
                        "audio_url": "http:\/\/www.orn.com\/ut-quo-impedit-eos-aperiam-placeat",
                        "audio_duration": 2,
                        "question": "wvk",
                        "question_alt_text": "ozf",
                        "message_question_choices": [
                            {
                                "choice": "ualnfate",
                                "selected_action_type": 4,
                                "order": 11,
                                "url": "http:\/\/www.mitchell.biz\/minima-tenetur-libero-ipsa-tempora-aut-sit-fugiat",
                                "phone_number": "A-d--dd-ddd--z",
                                "line_id": "quae",
                                "email": "vgoldner@example.com",
                                "message_question_choice_actions": [
                                    {
                                        "actionable_type": "App\\Models\\ActionLabelDisplay",
                                        "actionable": {
                                            "tags": [
                                                {
                                                    "id": "et"
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        ],
                        "message_carousel_panels": [
                            {
                                "title": "qgsefnmntqzlx",
                                "text": "zjnltyqtqjasjtc",
                                "message_carousel_choices": [
                                    {
                                        "name": "dnybficuffkcskstjw",
                                        "carousel_action": 3,
                                        "url": "http:\/\/www.wisozk.org\/sunt-laudantium-ratione-quia-alias",
                                        "tel": "A----d-z",
                                        "line_user_id": "pariatur",
                                        "mail": "westley78@example.com",
                                        "message_carousel_choice_actions": [
                                            {
                                                "actionable_type": "App\\Models\\ActionFriendCustomField",
                                                "actionable": {
                                                    "tags": [
                                                        {
                                                            "id": "exercitationem"
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        ],
                        "carousel_alt_text": "nhoezxodhjjvmauoylu",
                        "location_title": "eoitovlcarjpj",
                        "location_address": "kgzetibtiyabqzncrzua",
                        "location_latitude": 614.9,
                        "location_longitude": 39177.08035,
                        "introduction_text": "foqwfzg",
                        "introduction_line_id": "rzfbyoywqqlxpguhh",
                        "introduction_alt_text": "ncbhkijbdxgljbeg",
                        "flex_json": "deserunt"
                    }
                ]
            }
        }
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'folder_uuid' => '7813356d-645f-4bcb-8d90-3c40da892ca2',
            'name' => 'テンプレートアクション名',
            'template_actions' => [
                [
                    'actionable' => [
                        'tags' => [
                            [
                                'id' => 'molestias',
                            ],
                        ],
                        'messages' => [
                            [
                                'type' => 8,
                                'text_sender_name' => 'y',
                                'text_sender_image_url' => 'https://erdman.biz/expedita-aspernatur-sit-quis-libero.html',
                                'stamp_sender_name' => 'wqt',
                                'stamp_sender_image_url' => 'http://www.hoeger.biz/aperiam-corporis-quasi-ab-earum-voluptatem-harum-qui',
                                'image_sender_name' => 'eh',
                                'image_sender_image_url' => 'https://ritchie.com/doloribus-eum-tenetur-omnis-pariatur.html',
                                'video_sender_name' => 'kiw',
                                'video_sender_image_url' => 'http://klein.org/',
                                'audio_sender_name' => 'vhmafduxukmtiga',
                                'audio_sender_image_url' => 'http://www.larson.com/',
                                'question_sender_name' => 'qzgukjhizknffvzxus',
                                'question_sender_image_url' => 'https://berge.info/porro-sunt-est-aliquam-rerum-blanditiis-voluptas-eos-sit.html',
                                'carousel_sender_name' => 'a',
                                'carousel_sender_image_url' => 'http://www.pouros.com/atque-cumque-fugit-ad',
                                'location_sender_name' => 'mwznmgfmbshjxv',
                                'location_sender_image_url' => 'http://www.gorczany.info/numquam-veniam-sint-sit-ratione-maiores-omnis-ut',
                                'introduction_sender_name' => 'nsfked',
                                'introduction_sender_image_url' => 'http://www.olson.com/saepe-est-aliquam-occaecati-maxime-assumenda-ad',
                                'flex_sender_name' => 'lwdwerxaueausoajjpj',
                                'flex_sender_image_url' => 'http://www.gutmann.com/placeat-recusandae-non-pariatur',
                                'text' => 'whyhuoygm',
                                'package_id' => 5284.08,
                                'sticker_id' => 7082.30569,
                                'image_url' => 'http://www.dubuque.org/vel-voluptas-adipisci-dolor-fuga-recusandae-qui.html',
                                'image_width' => 19255.134304,
                                'image_height' => 87.757037,
                                'imagemap_type' => 2,
                                'imagemap_areas' => [
                                    [
                                        'link_action' => 0,
                                        'url' => 'http://www.durgan.info/',
                                    ],
                                ],
                                'image_alt_text' => 'jfpxoyejzxnllqjdokj',
                                'video_url' => 'https://www.mohr.info/expedita-nisi-et-est-asperiores-sit-ex-enim-dolorum',
                                'preview_image_url' => 'http://www.sanford.org/quam-quod-alias-incidunt-aut.html',
                                'audio_url' => 'http://www.orn.com/ut-quo-impedit-eos-aperiam-placeat',
                                'audio_duration' => 2,
                                'question' => 'wvk',
                                'question_alt_text' => 'ozf',
                                'message_question_choices' => [
                                    [
                                        'choice' => 'ualnfate',
                                        'selected_action_type' => 4,
                                        'order' => 11,
                                        'url' => 'http://www.mitchell.biz/minima-tenetur-libero-ipsa-tempora-aut-sit-fugiat',
                                        'phone_number' => 'A-d--dd-ddd--z',
                                        'line_id' => 'quae',
                                        'email' => 'vgoldner@example.com',
                                        'message_question_choice_actions' => [
                                            [
                                                'actionable_type' => 'App\\Models\\ActionLabelDisplay',
                                                'actionable' => [
                                                    'tags' => [
                                                        [
                                                            'id' => 'et',
                                                        ],
                                                    ],
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                                'message_carousel_panels' => [
                                    [
                                        'title' => 'qgsefnmntqzlx',
                                        'text' => 'zjnltyqtqjasjtc',
                                        'message_carousel_choices' => [
                                            [
                                                'name' => 'dnybficuffkcskstjw',
                                                'carousel_action' => 3,
                                                'url' => 'http://www.wisozk.org/sunt-laudantium-ratione-quia-alias',
                                                'tel' => 'A----d-z',
                                                'line_user_id' => 'pariatur',
                                                'mail' => 'westley78@example.com',
                                                'message_carousel_choice_actions' => [
                                                    [
                                                        'actionable_type' => 'App\\Models\\ActionFriendCustomField',
                                                        'actionable' => [
                                                            'tags' => [
                                                                [
                                                                    'id' => 'exercitationem',
                                                                ],
                                                            ],
                                                        ],
                                                    ],
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                                'carousel_alt_text' => 'nhoezxodhjjvmauoylu',
                                'location_title' => 'eoitovlcarjpj',
                                'location_address' => 'kgzetibtiyabqzncrzua',
                                'location_latitude' => 614.9,
                                'location_longitude' => 39177.08035,
                                'introduction_text' => 'foqwfzg',
                                'introduction_line_id' => 'rzfbyoywqqlxpguhh',
                                'introduction_alt_text' => 'ncbhkijbdxgljbeg',
                                'flex_json' => 'deserunt',
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/channels/78927a54-3416-337d-8f07-bd2d3e06bf59/template_actions'
payload = {
    "folder_uuid": "7813356d-645f-4bcb-8d90-3c40da892ca2",
    "name": "テンプレートアクション名",
    "template_actions": [
        {
            "actionable": {
                "tags": [
                    {
                        "id": "molestias"
                    }
                ],
                "messages": [
                    {
                        "type": 8,
                        "text_sender_name": "y",
                        "text_sender_image_url": "https:\/\/erdman.biz\/expedita-aspernatur-sit-quis-libero.html",
                        "stamp_sender_name": "wqt",
                        "stamp_sender_image_url": "http:\/\/www.hoeger.biz\/aperiam-corporis-quasi-ab-earum-voluptatem-harum-qui",
                        "image_sender_name": "eh",
                        "image_sender_image_url": "https:\/\/ritchie.com\/doloribus-eum-tenetur-omnis-pariatur.html",
                        "video_sender_name": "kiw",
                        "video_sender_image_url": "http:\/\/klein.org\/",
                        "audio_sender_name": "vhmafduxukmtiga",
                        "audio_sender_image_url": "http:\/\/www.larson.com\/",
                        "question_sender_name": "qzgukjhizknffvzxus",
                        "question_sender_image_url": "https:\/\/berge.info\/porro-sunt-est-aliquam-rerum-blanditiis-voluptas-eos-sit.html",
                        "carousel_sender_name": "a",
                        "carousel_sender_image_url": "http:\/\/www.pouros.com\/atque-cumque-fugit-ad",
                        "location_sender_name": "mwznmgfmbshjxv",
                        "location_sender_image_url": "http:\/\/www.gorczany.info\/numquam-veniam-sint-sit-ratione-maiores-omnis-ut",
                        "introduction_sender_name": "nsfked",
                        "introduction_sender_image_url": "http:\/\/www.olson.com\/saepe-est-aliquam-occaecati-maxime-assumenda-ad",
                        "flex_sender_name": "lwdwerxaueausoajjpj",
                        "flex_sender_image_url": "http:\/\/www.gutmann.com\/placeat-recusandae-non-pariatur",
                        "text": "whyhuoygm",
                        "package_id": 5284.08,
                        "sticker_id": 7082.30569,
                        "image_url": "http:\/\/www.dubuque.org\/vel-voluptas-adipisci-dolor-fuga-recusandae-qui.html",
                        "image_width": 19255.134304,
                        "image_height": 87.757037,
                        "imagemap_type": 2,
                        "imagemap_areas": [
                            {
                                "link_action": 0,
                                "url": "http:\/\/www.durgan.info\/"
                            }
                        ],
                        "image_alt_text": "jfpxoyejzxnllqjdokj",
                        "video_url": "https:\/\/www.mohr.info\/expedita-nisi-et-est-asperiores-sit-ex-enim-dolorum",
                        "preview_image_url": "http:\/\/www.sanford.org\/quam-quod-alias-incidunt-aut.html",
                        "audio_url": "http:\/\/www.orn.com\/ut-quo-impedit-eos-aperiam-placeat",
                        "audio_duration": 2,
                        "question": "wvk",
                        "question_alt_text": "ozf",
                        "message_question_choices": [
                            {
                                "choice": "ualnfate",
                                "selected_action_type": 4,
                                "order": 11,
                                "url": "http:\/\/www.mitchell.biz\/minima-tenetur-libero-ipsa-tempora-aut-sit-fugiat",
                                "phone_number": "A-d--dd-ddd--z",
                                "line_id": "quae",
                                "email": "vgoldner@example.com",
                                "message_question_choice_actions": [
                                    {
                                        "actionable_type": "App\\Models\\ActionLabelDisplay",
                                        "actionable": {
                                            "tags": [
                                                {
                                                    "id": "et"
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        ],
                        "message_carousel_panels": [
                            {
                                "title": "qgsefnmntqzlx",
                                "text": "zjnltyqtqjasjtc",
                                "message_carousel_choices": [
                                    {
                                        "name": "dnybficuffkcskstjw",
                                        "carousel_action": 3,
                                        "url": "http:\/\/www.wisozk.org\/sunt-laudantium-ratione-quia-alias",
                                        "tel": "A----d-z",
                                        "line_user_id": "pariatur",
                                        "mail": "westley78@example.com",
                                        "message_carousel_choice_actions": [
                                            {
                                                "actionable_type": "App\\Models\\ActionFriendCustomField",
                                                "actionable": {
                                                    "tags": [
                                                        {
                                                            "id": "exercitationem"
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        ],
                        "carousel_alt_text": "nhoezxodhjjvmauoylu",
                        "location_title": "eoitovlcarjpj",
                        "location_address": "kgzetibtiyabqzncrzua",
                        "location_latitude": 614.9,
                        "location_longitude": 39177.08035,
                        "introduction_text": "foqwfzg",
                        "introduction_line_id": "rzfbyoywqqlxpguhh",
                        "introduction_alt_text": "ncbhkijbdxgljbeg",
                        "flex_json": "deserunt"
                    }
                ]
            }
        }
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

レスポンス (200):

                                                        
                    {
    "uuid": "90c49b60-087e-41fc-896d-a8ce7e7c1533",
    "name": "テンプレートアクション名",
}
                            

リクエスト      

POST api/v1/channels/{channel_uuid}/template_actions 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

channel_uuid   string   

チャネルUUID 例: 78927a54-3416-337d-8f07-bd2d3e06bf59

ボディパラメータ

folder_uuid   string  optional  

フォルダUUID 例: 7813356d-645f-4bcb-8d90-3c40da892ca2

name   string  optional  

テンプレートアクション名 例: テンプレートアクション名

template_actions   string[]  optional  

テンプレートアクション

actionable_type   string   

例: App\Models\ActionRichMenu

この中から選択:
  • App\Models\ActionMessage
  • App\Models\ActionTemplateMessage
  • App\Models\ActionTag
  • App\Models\ActionScenario
  • App\Models\ActionReminder
  • App\Models\ActionLabelDisplay
  • App\Models\ActionNotification
  • App\Models\ActionRichMenu
  • App\Models\ActionFriendCustomField
actionable_id   string  optional  
actionable   string   

例: iste

template_message   object  optional  
id   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionTemplateMessage.

send_timing   integer   

例: 1

この中から選択:
  • 1
  • 2
send_delay_minutes   integer   

valueには、1以上の数字を指定してください。. 例: 57

action_type   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionRichMenu. 例: 1

この中から選択:
  • 1
  • 2
tags   object[]  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionTag.

id   string   

例: molestias

scenario   object  optional  
id   string  optional  

This field is required when template_actions.*.actionable.action_type is 1.

scenario_timing   object  optional  
id   string  optional  

This field is required when template_actions.*.actionable.action_type is 1.

reminder   object  optional  
id   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionReminder.

goal_datetime   string  optional  

This field is required when template_actions.*.actionable.action_type is 1. valueには有効な日付を指定してください。. 例: 2026-05-15T20:40:06

friend_task_mark   object  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionLabelDisplay.

id   string  optional  
block_hidden   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionLabelDisplay. 例: 3

この中から選択:
  • 1
  • 2
  • 3
  • 4
send_message   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionLabelDisplay. 例: 2

この中から選択:
  • 1
  • 2
  • 3
text   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionNotification. 例: beatae

rich_menu   object  optional  
id   string  optional  

This field is required when template_actions.*.actionable.action_type is 1.

friend_custom_field_id   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionFriendCustomField.

operation_type   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionFriendCustomField. 例: 1

この中から選択:
  • 1
  • 2
  • 3
  • 4
value   string  optional  
messages   object[]  optional  

valueは1個以上指定してください。.

type   integer   

例: 8

この中から選択:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
text_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/. valueは、20文字以下で指定してください。. 例: y

text_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: https://erdman.biz/expedita-aspernatur-sit-quis-libero.html

stamp_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: wqt

stamp_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.hoeger.biz/aperiam-corporis-quasi-ab-earum-voluptatem-harum-qui

image_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: eh

image_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: https://ritchie.com/doloribus-eum-tenetur-omnis-pariatur.html

video_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: kiw

video_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://klein.org/

audio_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: vhmafduxukmtiga

audio_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.larson.com/

question_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: qzgukjhizknffvzxus

question_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: https://berge.info/porro-sunt-est-aliquam-rerum-blanditiis-voluptas-eos-sit.html

carousel_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: a

carousel_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.pouros.com/atque-cumque-fugit-ad

location_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: mwznmgfmbshjxv

location_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.gorczany.info/numquam-veniam-sint-sit-ratione-maiores-omnis-ut

introduction_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: nsfked

introduction_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.olson.com/saepe-est-aliquam-occaecati-maxime-assumenda-ad

flex_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: lwdwerxaueausoajjpj

flex_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.gutmann.com/placeat-recusandae-non-pariatur

text   string   

valueは、4000文字以下で指定してください。. 例: whyhuoygm

package_id   number   

例: 5284.08

sticker_id   number   

例: 7082.30569

image_url   string   

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.dubuque.org/vel-voluptas-adipisci-dolor-fuga-recusandae-qui.html

image_width   number   

例: 19255.134304

image_height   number   

例: 87.757037

imagemap_type   integer   

例: 2

この中から選択:
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
imagemap_areas   object[]  optional  
link_action   integer   

例: 0

この中から選択:
  • 0
  • 1
url   string  optional  

This field is required when template_actions..actionable.messages..imagemap_areas.*.link_action is 1. Must be a valid URL. 例: http://www.durgan.info/

image_alt_text   string  optional  

valueは、400文字以下で指定してください。. 例: jfpxoyejzxnllqjdokj

video_url   string   

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: https://www.mohr.info/expedita-nisi-et-est-asperiores-sit-ex-enim-dolorum

preview_image_url   string  optional  

This field is required when template_actions..actionable.messages..type is 4. Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.sanford.org/quam-quod-alias-incidunt-aut.html

audio_url   string   

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.orn.com/ut-quo-impedit-eos-aperiam-placeat

audio_duration   integer   

例: 2

question   string   

valueは、160文字以下で指定してください。. 例: wvk

question_alt_text   string  optional  

valueは、400文字以下で指定してください。. 例: ozf

message_question_choices   object[]   
choice   string   

valueは、20文字以下で指定してください。. 例: ualnfate

selected_action_type   integer   

例: 4

この中から選択:
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
order   integer   

例: 11

url   string   

Must be a valid URL. 例: http://www.mitchell.biz/minima-tenetur-libero-ipsa-tempora-aut-sit-fugiat

phone_number   string   

Must match the regex /\A[\d-]{1,15}\z/. 例: A-d--dd-ddd--z

line_id   string   

例: quae

email   string   

valueには、有効なメールアドレスを指定してください。. 例: vgoldner@example.com

message_question_choice_actions   object[]   
actionable_type   string   

例: App\Models\ActionLabelDisplay

この中から選択:
  • App\Models\ActionMessage
  • App\Models\ActionTemplateMessage
  • App\Models\ActionTag
  • App\Models\ActionScenario
  • App\Models\ActionReminder
  • App\Models\ActionLabelDisplay
  • App\Models\ActionNotification
  • App\Models\ActionRichMenu
  • App\Models\ActionFriendCustomField
actionable_id   string  optional  
actionable   string   

例: deserunt

template_message   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionTemplateMessage.

send_timing   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionTemplateMessage.

send_delay_minutes   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionTemplateMessage.

action_type   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionRichMenu. 例: 2

この中から選択:
  • 1
  • 2
tags   object[]  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionTag.

id   string   

例: et

scenario   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable.action_type is 1.

scenario_timing   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable.action_type is 1.

reminder   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionReminder.

goal_datetime   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable.action_type is 1. valueには有効な日付を指定してください。. 例: 2026-05-15T20:40:06

friend_task_mark   object  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionLabelDisplay.

id   string  optional  
block_hidden   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionLabelDisplay. 例: 4

この中から選択:
  • 1
  • 2
  • 3
  • 4
send_message   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionLabelDisplay. 例: 3

この中から選択:
  • 1
  • 2
  • 3
text   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionNotification. 例: itaque

rich_menu   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable.action_type is 1.

friend_custom_field_id   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionFriendCustomField.

operation_type   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionFriendCustomField. 例: 3

この中から選択:
  • 1
  • 2
  • 3
  • 4
value   string  optional  
message_carousel_panels   object[]   
title   string  optional  

valueは、40文字以下で指定してください。. 例: qgsefnmntqzlx

text   string   

valueは、60文字以下で指定してください。. 例: zjnltyqtqjasjtc

media_file_id   string  optional  
image_url   string  optional  
message_carousel_choices   object[]   
name   string   

valueは、20文字以下で指定してください。. 例: dnybficuffkcskstjw

carousel_action   integer   

例: 3

この中から選択:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
url   string   

Must be a valid URL. 例: http://www.wisozk.org/sunt-laudantium-ratione-quia-alias

tel   string   

Must match the regex /\A[\d-]{1,15}\z/. 例: A----d-z

line_user_id   string   

例: pariatur

mail   string   

valueには、有効なメールアドレスを指定してください。. 例: westley78@example.com

message_carousel_choice_actions   object[]   
actionable_type   string   

例: App\Models\ActionFriendCustomField

この中から選択:
  • App\Models\ActionMessage
  • App\Models\ActionTemplateMessage
  • App\Models\ActionTag
  • App\Models\ActionScenario
  • App\Models\ActionReminder
  • App\Models\ActionLabelDisplay
  • App\Models\ActionNotification
  • App\Models\ActionRichMenu
  • App\Models\ActionFriendCustomField
actionable_id   string  optional  
actionable   string   

例: aliquam

template_message   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionTemplateMessage.

send_timing   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionTemplateMessage.

send_delay_minutes   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionTemplateMessage.

action_type   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionRichMenu. 例: 2

この中から選択:
  • 1
  • 2
tags   object[]  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionTag.

id   string   

例: exercitationem

scenario   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable.action_type is 1.

scenario_timing   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable.action_type is 1.

reminder   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionReminder.

goal_datetime   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable.action_type is 1. valueには有効な日付を指定してください。. 例: 2026-05-15T20:40:06

friend_task_mark   object  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionLabelDisplay.

id   string  optional  
block_hidden   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionLabelDisplay. 例: 4

この中から選択:
  • 1
  • 2
  • 3
  • 4
send_message   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionLabelDisplay. 例: 2

この中から選択:
  • 1
  • 2
  • 3
text   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionNotification. 例: a

rich_menu   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable.action_type is 1.

friend_custom_field_id   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionFriendCustomField.

operation_type   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionFriendCustomField. 例: 4

この中から選択:
  • 1
  • 2
  • 3
  • 4
value   string  optional  
carousel_alt_text   string  optional  

valueは、400文字以下で指定してください。. 例: nhoezxodhjjvmauoylu

location_title   string   

valueは、100文字以下で指定してください。. 例: eoitovlcarjpj

location_address   string   

valueは、100文字以下で指定してください。. 例: kgzetibtiyabqzncrzua

location_latitude   number   

例: 614.9

location_longitude   number   

例: 39177.08035

introduction_text   string   

valueは、60文字以下で指定してください。. 例: foqwfzg

introduction_line_id   string   

valueは、20文字以下で指定してください。. 例: rzfbyoywqqlxpguhh

introduction_alt_text   string   

valueは、400文字以下で指定してください。. 例: ncbhkijbdxgljbeg

flex_json   string   

例: deserunt

レスポンス

201      

作成されたTemplateActionオブジェクト

テンプレートアクションを取得

特定のテンプレートアクション情報を取得します。

リクエスト:
curl --request GET \
    --get "https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

レスポンス (200):

                                                        
                    {
    "uuid": "90c49b60-087e-41fc-896d-a8ce7e7c1533",
    "name": "テンプレートアクション名",
}
                            

リクエスト      

GET api/v1/template_actions/{templateAction_uuid} 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

templateAction_uuid   string   

テンプレートアクションUUID 例: 90c49b60-087e-41fc-896d-a8ce7e7c15a4

レスポンス

200      

指定されたuuidのTemplateActionオブジェクト

テンプレートアクションを更新

テンプレートアクションを更新します。

リクエスト:
curl --request PUT \
    "https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"folder_uuid\": \"7813356d-645f-4bcb-8d90-3c40da892ca2\",
    \"name\": \"テンプレートアクション名\",
    \"template_actions\": [
        {
            \"actionable\": {
                \"tags\": [
                    {
                        \"id\": \"quos\"
                    }
                ],
                \"messages\": [
                    {
                        \"type\": 7,
                        \"text_sender_name\": \"nqhqqjmfdgcllrjv\",
                        \"text_sender_image_url\": \"http:\\/\\/fritsch.com\\/debitis-ut-exercitationem-natus-consequuntur\",
                        \"stamp_sender_name\": \"ypt\",
                        \"stamp_sender_image_url\": \"http:\\/\\/welch.com\\/corrupti-ipsa-veniam-asperiores-aut\",
                        \"image_sender_name\": \"gvktybshczkfq\",
                        \"image_sender_image_url\": \"http:\\/\\/www.aufderhar.info\\/sed-dolores-dicta-ea-harum.html\",
                        \"video_sender_name\": \"pgya\",
                        \"video_sender_image_url\": \"https:\\/\\/weissnat.com\\/ducimus-fugit-exercitationem-dolorum.html\",
                        \"audio_sender_name\": \"qgykyuhgkxckc\",
                        \"audio_sender_image_url\": \"https:\\/\\/www.reinger.com\\/velit-maxime-non-odit-labore-quas\",
                        \"question_sender_name\": \"jtowkjazlgcannlmptu\",
                        \"question_sender_image_url\": \"https:\\/\\/breitenberg.info\\/odit-non-eum-deleniti-doloribus-placeat-velit-tempore.html\",
                        \"carousel_sender_name\": \"etficszsx\",
                        \"carousel_sender_image_url\": \"http:\\/\\/www.oreilly.com\\/exercitationem-eos-doloremque-sit-et.html\",
                        \"location_sender_name\": \"yodwsa\",
                        \"location_sender_image_url\": \"http:\\/\\/www.ferry.com\\/optio-optio-dolores-dolorem-quam\",
                        \"introduction_sender_name\": \"srd\",
                        \"introduction_sender_image_url\": \"https:\\/\\/strosin.net\\/beatae-nihil-quo-illum.html\",
                        \"flex_sender_name\": \"vwflo\",
                        \"flex_sender_image_url\": \"http:\\/\\/waters.biz\\/est-a-error-quasi-dolores-consequuntur\",
                        \"text\": \"qhlabxogqzsylcwehuwoqgkl\",
                        \"package_id\": 0.0074,
                        \"sticker_id\": 36503.82,
                        \"image_url\": \"http:\\/\\/lynch.com\\/sed-eum-culpa-animi-optio-ut-ut-numquam\",
                        \"image_width\": 373374,
                        \"image_height\": 617095567.0783881,
                        \"imagemap_type\": 4,
                        \"imagemap_areas\": [
                            {
                                \"link_action\": 0,
                                \"url\": \"http:\\/\\/www.pouros.net\\/qui-laudantium-autem-error-aliquid-soluta\"
                            }
                        ],
                        \"image_alt_text\": \"womvvjybfkjkigrmxjoldtiuw\",
                        \"video_url\": \"http:\\/\\/frami.com\\/dolorem-at-nihil-quo-possimus-harum\",
                        \"preview_image_url\": \"http:\\/\\/will.com\\/id-reiciendis-laboriosam-deserunt-incidunt-ullam\",
                        \"audio_url\": \"http:\\/\\/kunze.info\\/optio-magni-a-illo-fugit\",
                        \"audio_duration\": 1,
                        \"question\": \"dwgwziucncrmdjof\",
                        \"question_alt_text\": \"vak\",
                        \"message_question_choices\": [
                            {
                                \"choice\": \"caznsogli\",
                                \"selected_action_type\": 2,
                                \"order\": 16,
                                \"url\": \"http:\\/\\/schowalter.net\\/quaerat-aspernatur-et-quis.html\",
                                \"phone_number\": \"Addd-d-d-ddddz\",
                                \"line_id\": \"explicabo\",
                                \"email\": \"kasandra.damore@example.net\",
                                \"message_question_choice_actions\": [
                                    {
                                        \"actionable_type\": \"App\\\\Models\\\\ActionRichMenu\",
                                        \"actionable\": {
                                            \"tags\": [
                                                {
                                                    \"id\": \"possimus\"
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        ],
                        \"message_carousel_panels\": [
                            {
                                \"title\": \"we\",
                                \"text\": \"qlgbpatejrzt\",
                                \"message_carousel_choices\": [
                                    {
                                        \"name\": \"jrhvkrtxugtpebywluc\",
                                        \"carousel_action\": 1,
                                        \"url\": \"http:\\/\\/luettgen.net\\/\",
                                        \"tel\": \"A---dd-z\",
                                        \"line_user_id\": \"modi\",
                                        \"mail\": \"maximus13@example.org\",
                                        \"message_carousel_choice_actions\": [
                                            {
                                                \"actionable_type\": \"App\\\\Models\\\\ActionScenario\",
                                                \"actionable\": {
                                                    \"tags\": [
                                                        {
                                                            \"id\": \"ut\"
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        ],
                        \"carousel_alt_text\": \"mnbhlldwugomltcprttxg\",
                        \"location_title\": \"geagbdklxsgdl\",
                        \"location_address\": \"boovjxidhiunztpyi\",
                        \"location_latitude\": 9.96358123,
                        \"location_longitude\": 10,
                        \"introduction_text\": \"qybnswliqlggqtsvzeozjxg\",
                        \"introduction_line_id\": \"cwjn\",
                        \"introduction_alt_text\": \"xyzrefhetclfo\",
                        \"flex_json\": \"reprehenderit\"
                    }
                ]
            }
        }
    ]
}"
const url = new URL(
    "https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "folder_uuid": "7813356d-645f-4bcb-8d90-3c40da892ca2",
    "name": "テンプレートアクション名",
    "template_actions": [
        {
            "actionable": {
                "tags": [
                    {
                        "id": "quos"
                    }
                ],
                "messages": [
                    {
                        "type": 7,
                        "text_sender_name": "nqhqqjmfdgcllrjv",
                        "text_sender_image_url": "http:\/\/fritsch.com\/debitis-ut-exercitationem-natus-consequuntur",
                        "stamp_sender_name": "ypt",
                        "stamp_sender_image_url": "http:\/\/welch.com\/corrupti-ipsa-veniam-asperiores-aut",
                        "image_sender_name": "gvktybshczkfq",
                        "image_sender_image_url": "http:\/\/www.aufderhar.info\/sed-dolores-dicta-ea-harum.html",
                        "video_sender_name": "pgya",
                        "video_sender_image_url": "https:\/\/weissnat.com\/ducimus-fugit-exercitationem-dolorum.html",
                        "audio_sender_name": "qgykyuhgkxckc",
                        "audio_sender_image_url": "https:\/\/www.reinger.com\/velit-maxime-non-odit-labore-quas",
                        "question_sender_name": "jtowkjazlgcannlmptu",
                        "question_sender_image_url": "https:\/\/breitenberg.info\/odit-non-eum-deleniti-doloribus-placeat-velit-tempore.html",
                        "carousel_sender_name": "etficszsx",
                        "carousel_sender_image_url": "http:\/\/www.oreilly.com\/exercitationem-eos-doloremque-sit-et.html",
                        "location_sender_name": "yodwsa",
                        "location_sender_image_url": "http:\/\/www.ferry.com\/optio-optio-dolores-dolorem-quam",
                        "introduction_sender_name": "srd",
                        "introduction_sender_image_url": "https:\/\/strosin.net\/beatae-nihil-quo-illum.html",
                        "flex_sender_name": "vwflo",
                        "flex_sender_image_url": "http:\/\/waters.biz\/est-a-error-quasi-dolores-consequuntur",
                        "text": "qhlabxogqzsylcwehuwoqgkl",
                        "package_id": 0.0074,
                        "sticker_id": 36503.82,
                        "image_url": "http:\/\/lynch.com\/sed-eum-culpa-animi-optio-ut-ut-numquam",
                        "image_width": 373374,
                        "image_height": 617095567.0783881,
                        "imagemap_type": 4,
                        "imagemap_areas": [
                            {
                                "link_action": 0,
                                "url": "http:\/\/www.pouros.net\/qui-laudantium-autem-error-aliquid-soluta"
                            }
                        ],
                        "image_alt_text": "womvvjybfkjkigrmxjoldtiuw",
                        "video_url": "http:\/\/frami.com\/dolorem-at-nihil-quo-possimus-harum",
                        "preview_image_url": "http:\/\/will.com\/id-reiciendis-laboriosam-deserunt-incidunt-ullam",
                        "audio_url": "http:\/\/kunze.info\/optio-magni-a-illo-fugit",
                        "audio_duration": 1,
                        "question": "dwgwziucncrmdjof",
                        "question_alt_text": "vak",
                        "message_question_choices": [
                            {
                                "choice": "caznsogli",
                                "selected_action_type": 2,
                                "order": 16,
                                "url": "http:\/\/schowalter.net\/quaerat-aspernatur-et-quis.html",
                                "phone_number": "Addd-d-d-ddddz",
                                "line_id": "explicabo",
                                "email": "kasandra.damore@example.net",
                                "message_question_choice_actions": [
                                    {
                                        "actionable_type": "App\\Models\\ActionRichMenu",
                                        "actionable": {
                                            "tags": [
                                                {
                                                    "id": "possimus"
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        ],
                        "message_carousel_panels": [
                            {
                                "title": "we",
                                "text": "qlgbpatejrzt",
                                "message_carousel_choices": [
                                    {
                                        "name": "jrhvkrtxugtpebywluc",
                                        "carousel_action": 1,
                                        "url": "http:\/\/luettgen.net\/",
                                        "tel": "A---dd-z",
                                        "line_user_id": "modi",
                                        "mail": "maximus13@example.org",
                                        "message_carousel_choice_actions": [
                                            {
                                                "actionable_type": "App\\Models\\ActionScenario",
                                                "actionable": {
                                                    "tags": [
                                                        {
                                                            "id": "ut"
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        ],
                        "carousel_alt_text": "mnbhlldwugomltcprttxg",
                        "location_title": "geagbdklxsgdl",
                        "location_address": "boovjxidhiunztpyi",
                        "location_latitude": 9.96358123,
                        "location_longitude": 10,
                        "introduction_text": "qybnswliqlggqtsvzeozjxg",
                        "introduction_line_id": "cwjn",
                        "introduction_alt_text": "xyzrefhetclfo",
                        "flex_json": "reprehenderit"
                    }
                ]
            }
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'folder_uuid' => '7813356d-645f-4bcb-8d90-3c40da892ca2',
            'name' => 'テンプレートアクション名',
            'template_actions' => [
                [
                    'actionable' => [
                        'tags' => [
                            [
                                'id' => 'quos',
                            ],
                        ],
                        'messages' => [
                            [
                                'type' => 7,
                                'text_sender_name' => 'nqhqqjmfdgcllrjv',
                                'text_sender_image_url' => 'http://fritsch.com/debitis-ut-exercitationem-natus-consequuntur',
                                'stamp_sender_name' => 'ypt',
                                'stamp_sender_image_url' => 'http://welch.com/corrupti-ipsa-veniam-asperiores-aut',
                                'image_sender_name' => 'gvktybshczkfq',
                                'image_sender_image_url' => 'http://www.aufderhar.info/sed-dolores-dicta-ea-harum.html',
                                'video_sender_name' => 'pgya',
                                'video_sender_image_url' => 'https://weissnat.com/ducimus-fugit-exercitationem-dolorum.html',
                                'audio_sender_name' => 'qgykyuhgkxckc',
                                'audio_sender_image_url' => 'https://www.reinger.com/velit-maxime-non-odit-labore-quas',
                                'question_sender_name' => 'jtowkjazlgcannlmptu',
                                'question_sender_image_url' => 'https://breitenberg.info/odit-non-eum-deleniti-doloribus-placeat-velit-tempore.html',
                                'carousel_sender_name' => 'etficszsx',
                                'carousel_sender_image_url' => 'http://www.oreilly.com/exercitationem-eos-doloremque-sit-et.html',
                                'location_sender_name' => 'yodwsa',
                                'location_sender_image_url' => 'http://www.ferry.com/optio-optio-dolores-dolorem-quam',
                                'introduction_sender_name' => 'srd',
                                'introduction_sender_image_url' => 'https://strosin.net/beatae-nihil-quo-illum.html',
                                'flex_sender_name' => 'vwflo',
                                'flex_sender_image_url' => 'http://waters.biz/est-a-error-quasi-dolores-consequuntur',
                                'text' => 'qhlabxogqzsylcwehuwoqgkl',
                                'package_id' => 0.0074,
                                'sticker_id' => 36503.82,
                                'image_url' => 'http://lynch.com/sed-eum-culpa-animi-optio-ut-ut-numquam',
                                'image_width' => 373374.0,
                                'image_height' => 617095567.0783881,
                                'imagemap_type' => 4,
                                'imagemap_areas' => [
                                    [
                                        'link_action' => 0,
                                        'url' => 'http://www.pouros.net/qui-laudantium-autem-error-aliquid-soluta',
                                    ],
                                ],
                                'image_alt_text' => 'womvvjybfkjkigrmxjoldtiuw',
                                'video_url' => 'http://frami.com/dolorem-at-nihil-quo-possimus-harum',
                                'preview_image_url' => 'http://will.com/id-reiciendis-laboriosam-deserunt-incidunt-ullam',
                                'audio_url' => 'http://kunze.info/optio-magni-a-illo-fugit',
                                'audio_duration' => 1,
                                'question' => 'dwgwziucncrmdjof',
                                'question_alt_text' => 'vak',
                                'message_question_choices' => [
                                    [
                                        'choice' => 'caznsogli',
                                        'selected_action_type' => 2,
                                        'order' => 16,
                                        'url' => 'http://schowalter.net/quaerat-aspernatur-et-quis.html',
                                        'phone_number' => 'Addd-d-d-ddddz',
                                        'line_id' => 'explicabo',
                                        'email' => 'kasandra.damore@example.net',
                                        'message_question_choice_actions' => [
                                            [
                                                'actionable_type' => 'App\\Models\\ActionRichMenu',
                                                'actionable' => [
                                                    'tags' => [
                                                        [
                                                            'id' => 'possimus',
                                                        ],
                                                    ],
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                                'message_carousel_panels' => [
                                    [
                                        'title' => 'we',
                                        'text' => 'qlgbpatejrzt',
                                        'message_carousel_choices' => [
                                            [
                                                'name' => 'jrhvkrtxugtpebywluc',
                                                'carousel_action' => 1,
                                                'url' => 'http://luettgen.net/',
                                                'tel' => 'A---dd-z',
                                                'line_user_id' => 'modi',
                                                'mail' => 'maximus13@example.org',
                                                'message_carousel_choice_actions' => [
                                                    [
                                                        'actionable_type' => 'App\\Models\\ActionScenario',
                                                        'actionable' => [
                                                            'tags' => [
                                                                [
                                                                    'id' => 'ut',
                                                                ],
                                                            ],
                                                        ],
                                                    ],
                                                ],
                                            ],
                                        ],
                                    ],
                                ],
                                'carousel_alt_text' => 'mnbhlldwugomltcprttxg',
                                'location_title' => 'geagbdklxsgdl',
                                'location_address' => 'boovjxidhiunztpyi',
                                'location_latitude' => 9.96358123,
                                'location_longitude' => 10.0,
                                'introduction_text' => 'qybnswliqlggqtsvzeozjxg',
                                'introduction_line_id' => 'cwjn',
                                'introduction_alt_text' => 'xyzrefhetclfo',
                                'flex_json' => 'reprehenderit',
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4'
payload = {
    "folder_uuid": "7813356d-645f-4bcb-8d90-3c40da892ca2",
    "name": "テンプレートアクション名",
    "template_actions": [
        {
            "actionable": {
                "tags": [
                    {
                        "id": "quos"
                    }
                ],
                "messages": [
                    {
                        "type": 7,
                        "text_sender_name": "nqhqqjmfdgcllrjv",
                        "text_sender_image_url": "http:\/\/fritsch.com\/debitis-ut-exercitationem-natus-consequuntur",
                        "stamp_sender_name": "ypt",
                        "stamp_sender_image_url": "http:\/\/welch.com\/corrupti-ipsa-veniam-asperiores-aut",
                        "image_sender_name": "gvktybshczkfq",
                        "image_sender_image_url": "http:\/\/www.aufderhar.info\/sed-dolores-dicta-ea-harum.html",
                        "video_sender_name": "pgya",
                        "video_sender_image_url": "https:\/\/weissnat.com\/ducimus-fugit-exercitationem-dolorum.html",
                        "audio_sender_name": "qgykyuhgkxckc",
                        "audio_sender_image_url": "https:\/\/www.reinger.com\/velit-maxime-non-odit-labore-quas",
                        "question_sender_name": "jtowkjazlgcannlmptu",
                        "question_sender_image_url": "https:\/\/breitenberg.info\/odit-non-eum-deleniti-doloribus-placeat-velit-tempore.html",
                        "carousel_sender_name": "etficszsx",
                        "carousel_sender_image_url": "http:\/\/www.oreilly.com\/exercitationem-eos-doloremque-sit-et.html",
                        "location_sender_name": "yodwsa",
                        "location_sender_image_url": "http:\/\/www.ferry.com\/optio-optio-dolores-dolorem-quam",
                        "introduction_sender_name": "srd",
                        "introduction_sender_image_url": "https:\/\/strosin.net\/beatae-nihil-quo-illum.html",
                        "flex_sender_name": "vwflo",
                        "flex_sender_image_url": "http:\/\/waters.biz\/est-a-error-quasi-dolores-consequuntur",
                        "text": "qhlabxogqzsylcwehuwoqgkl",
                        "package_id": 0.0074,
                        "sticker_id": 36503.82,
                        "image_url": "http:\/\/lynch.com\/sed-eum-culpa-animi-optio-ut-ut-numquam",
                        "image_width": 373374,
                        "image_height": 617095567.0783881,
                        "imagemap_type": 4,
                        "imagemap_areas": [
                            {
                                "link_action": 0,
                                "url": "http:\/\/www.pouros.net\/qui-laudantium-autem-error-aliquid-soluta"
                            }
                        ],
                        "image_alt_text": "womvvjybfkjkigrmxjoldtiuw",
                        "video_url": "http:\/\/frami.com\/dolorem-at-nihil-quo-possimus-harum",
                        "preview_image_url": "http:\/\/will.com\/id-reiciendis-laboriosam-deserunt-incidunt-ullam",
                        "audio_url": "http:\/\/kunze.info\/optio-magni-a-illo-fugit",
                        "audio_duration": 1,
                        "question": "dwgwziucncrmdjof",
                        "question_alt_text": "vak",
                        "message_question_choices": [
                            {
                                "choice": "caznsogli",
                                "selected_action_type": 2,
                                "order": 16,
                                "url": "http:\/\/schowalter.net\/quaerat-aspernatur-et-quis.html",
                                "phone_number": "Addd-d-d-ddddz",
                                "line_id": "explicabo",
                                "email": "kasandra.damore@example.net",
                                "message_question_choice_actions": [
                                    {
                                        "actionable_type": "App\\Models\\ActionRichMenu",
                                        "actionable": {
                                            "tags": [
                                                {
                                                    "id": "possimus"
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        ],
                        "message_carousel_panels": [
                            {
                                "title": "we",
                                "text": "qlgbpatejrzt",
                                "message_carousel_choices": [
                                    {
                                        "name": "jrhvkrtxugtpebywluc",
                                        "carousel_action": 1,
                                        "url": "http:\/\/luettgen.net\/",
                                        "tel": "A---dd-z",
                                        "line_user_id": "modi",
                                        "mail": "maximus13@example.org",
                                        "message_carousel_choice_actions": [
                                            {
                                                "actionable_type": "App\\Models\\ActionScenario",
                                                "actionable": {
                                                    "tags": [
                                                        {
                                                            "id": "ut"
                                                        }
                                                    ]
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        ],
                        "carousel_alt_text": "mnbhlldwugomltcprttxg",
                        "location_title": "geagbdklxsgdl",
                        "location_address": "boovjxidhiunztpyi",
                        "location_latitude": 9.96358123,
                        "location_longitude": 10,
                        "introduction_text": "qybnswliqlggqtsvzeozjxg",
                        "introduction_line_id": "cwjn",
                        "introduction_alt_text": "xyzrefhetclfo",
                        "flex_json": "reprehenderit"
                    }
                ]
            }
        }
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

レスポンス (200):

                                                        
                    {
    "uuid": "90c49b60-087e-41fc-896d-a8ce7e7c1533",
    "name": "テンプレートアクション名",
}
                            

リクエスト      

PUT api/v1/template_actions/{templateAction_uuid} 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

templateAction_uuid   string   

テンプレートアクションUUID 例: 90c49b60-087e-41fc-896d-a8ce7e7c15a4

ボディパラメータ

folder_uuid   string  optional  

フォルダUUID 例: 7813356d-645f-4bcb-8d90-3c40da892ca2

name   string  optional  

テンプレートアクション名 例: テンプレートアクション名

template_actions   string[]  optional  

テンプレートアクション

actionable_type   string   

例: App\Models\ActionFriendCustomField

この中から選択:
  • App\Models\ActionMessage
  • App\Models\ActionTemplateMessage
  • App\Models\ActionTag
  • App\Models\ActionScenario
  • App\Models\ActionReminder
  • App\Models\ActionLabelDisplay
  • App\Models\ActionNotification
  • App\Models\ActionRichMenu
  • App\Models\ActionFriendCustomField
actionable_id   string  optional  
actionable   string   

例: harum

template_message   object  optional  
id   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionTemplateMessage.

send_timing   integer   

例: 2

この中から選択:
  • 1
  • 2
send_delay_minutes   integer   

valueには、1以上の数字を指定してください。. 例: 51

action_type   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionRichMenu. 例: 1

この中から選択:
  • 1
  • 2
tags   object[]  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionTag.

id   string   

例: quos

scenario   object  optional  
id   string  optional  

This field is required when template_actions.*.actionable.action_type is 1.

scenario_timing   object  optional  
id   string  optional  

This field is required when template_actions.*.actionable.action_type is 1.

reminder   object  optional  
id   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionReminder.

goal_datetime   string  optional  

This field is required when template_actions.*.actionable.action_type is 1. valueには有効な日付を指定してください。. 例: 2026-05-15T20:40:06

friend_task_mark   object  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionLabelDisplay.

id   string  optional  
block_hidden   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionLabelDisplay. 例: 1

この中から選択:
  • 1
  • 2
  • 3
  • 4
send_message   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionLabelDisplay. 例: 2

この中から選択:
  • 1
  • 2
  • 3
text   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionNotification. 例: tenetur

rich_menu   object  optional  
id   string  optional  

This field is required when template_actions.*.actionable.action_type is 1.

friend_custom_field_id   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionFriendCustomField.

operation_type   string  optional  

This field is required when template_actions.*.actionable_type is App\Models\ActionFriendCustomField. 例: 1

この中から選択:
  • 1
  • 2
  • 3
  • 4
value   string  optional  
messages   object[]  optional  

valueは1個以上指定してください。.

type   integer   

例: 7

この中から選択:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
text_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/. valueは、20文字以下で指定してください。. 例: nqhqqjmfdgcllrjv

text_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://fritsch.com/debitis-ut-exercitationem-natus-consequuntur

stamp_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: ypt

stamp_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://welch.com/corrupti-ipsa-veniam-asperiores-aut

image_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: gvktybshczkfq

image_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.aufderhar.info/sed-dolores-dicta-ea-harum.html

video_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: pgya

video_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: https://weissnat.com/ducimus-fugit-exercitationem-dolorum.html

audio_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: qgykyuhgkxckc

audio_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: https://www.reinger.com/velit-maxime-non-odit-labore-quas

question_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: jtowkjazlgcannlmptu

question_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: https://breitenberg.info/odit-non-eum-deleniti-doloribus-placeat-velit-tempore.html

carousel_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: etficszsx

carousel_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.oreilly.com/exercitationem-eos-doloremque-sit-et.html

location_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: yodwsa

location_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://www.ferry.com/optio-optio-dolores-dolorem-quam

introduction_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: srd

introduction_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: https://strosin.net/beatae-nihil-quo-illum.html

flex_sender_name   string  optional  

Must match the regex /\A(?!.LINE).\z/i. valueは、20文字以下で指定してください。. 例: vwflo

flex_sender_image_url   string  optional  

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://waters.biz/est-a-error-quasi-dolores-consequuntur

text   string   

valueは、4000文字以下で指定してください。. 例: qhlabxogqzsylcwehuwoqgkl

package_id   number   

例: 0.0074

sticker_id   number   

例: 36503.82

image_url   string   

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://lynch.com/sed-eum-culpa-animi-optio-ut-ut-numquam

image_width   number   

例: 373374

image_height   number   

例: 617095567.07839

imagemap_type   integer   

例: 4

この中から選択:
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
imagemap_areas   object[]  optional  
link_action   integer   

例: 0

この中から選択:
  • 0
  • 1
url   string  optional  

This field is required when template_actions..actionable.messages..imagemap_areas.*.link_action is 1. Must be a valid URL. 例: http://www.pouros.net/qui-laudantium-autem-error-aliquid-soluta

image_alt_text   string  optional  

valueは、400文字以下で指定してください。. 例: womvvjybfkjkigrmxjoldtiuw

video_url   string   

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://frami.com/dolorem-at-nihil-quo-possimus-harum

preview_image_url   string  optional  

This field is required when template_actions..actionable.messages..type is 4. Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://will.com/id-reiciendis-laboriosam-deserunt-incidunt-ullam

audio_url   string   

Must be a valid URL. valueは、2000文字以下で指定してください。. 例: http://kunze.info/optio-magni-a-illo-fugit

audio_duration   integer   

例: 1

question   string   

valueは、160文字以下で指定してください。. 例: dwgwziucncrmdjof

question_alt_text   string  optional  

valueは、400文字以下で指定してください。. 例: vak

message_question_choices   object[]   
choice   string   

valueは、20文字以下で指定してください。. 例: caznsogli

selected_action_type   integer   

例: 2

この中から選択:
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
order   integer   

例: 16

url   string   

Must be a valid URL. 例: http://schowalter.net/quaerat-aspernatur-et-quis.html

phone_number   string   

Must match the regex /\A[\d-]{1,15}\z/. 例: Addd-d-d-ddddz

line_id   string   

例: explicabo

email   string   

valueには、有効なメールアドレスを指定してください。. 例: kasandra.damore@example.net

message_question_choice_actions   object[]   
actionable_type   string   

例: App\Models\ActionRichMenu

この中から選択:
  • App\Models\ActionMessage
  • App\Models\ActionTemplateMessage
  • App\Models\ActionTag
  • App\Models\ActionScenario
  • App\Models\ActionReminder
  • App\Models\ActionLabelDisplay
  • App\Models\ActionNotification
  • App\Models\ActionRichMenu
  • App\Models\ActionFriendCustomField
actionable_id   string  optional  
actionable   string   

例: reiciendis

template_message   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionTemplateMessage.

send_timing   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionTemplateMessage.

send_delay_minutes   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionTemplateMessage.

action_type   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionRichMenu. 例: 1

この中から選択:
  • 1
  • 2
tags   object[]  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionTag.

id   string   

例: possimus

scenario   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable.action_type is 1.

scenario_timing   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable.action_type is 1.

reminder   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionReminder.

goal_datetime   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable.action_type is 1. valueには有効な日付を指定してください。. 例: 2026-05-15T20:40:06

friend_task_mark   object  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionLabelDisplay.

id   string  optional  
block_hidden   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionLabelDisplay. 例: 1

この中から選択:
  • 1
  • 2
  • 3
  • 4
send_message   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionLabelDisplay. 例: 1

この中から選択:
  • 1
  • 2
  • 3
text   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionNotification. 例: ullam

rich_menu   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable.action_type is 1.

friend_custom_field_id   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionFriendCustomField.

operation_type   string  optional  

This field is required when template_actions..actionable.messages..message_question_choices..message_question_choice_actions..actionable_type is App\Models\ActionFriendCustomField. 例: 1

この中から選択:
  • 1
  • 2
  • 3
  • 4
value   string  optional  
message_carousel_panels   object[]   
title   string  optional  

valueは、40文字以下で指定してください。. 例: we

text   string   

valueは、60文字以下で指定してください。. 例: qlgbpatejrzt

media_file_id   string  optional  
image_url   string  optional  
message_carousel_choices   object[]   
name   string   

valueは、20文字以下で指定してください。. 例: jrhvkrtxugtpebywluc

carousel_action   integer   

例: 1

この中から選択:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
url   string   

Must be a valid URL. 例: http://luettgen.net/

tel   string   

Must match the regex /\A[\d-]{1,15}\z/. 例: A---dd-z

line_user_id   string   

例: modi

mail   string   

valueには、有効なメールアドレスを指定してください。. 例: maximus13@example.org

message_carousel_choice_actions   object[]   
actionable_type   string   

例: App\Models\ActionScenario

この中から選択:
  • App\Models\ActionMessage
  • App\Models\ActionTemplateMessage
  • App\Models\ActionTag
  • App\Models\ActionScenario
  • App\Models\ActionReminder
  • App\Models\ActionLabelDisplay
  • App\Models\ActionNotification
  • App\Models\ActionRichMenu
  • App\Models\ActionFriendCustomField
actionable_id   string  optional  
actionable   string   

例: ut

template_message   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionTemplateMessage.

send_timing   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionTemplateMessage.

send_delay_minutes   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionTemplateMessage.

action_type   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionRichMenu. 例: 1

この中から選択:
  • 1
  • 2
tags   object[]  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionTag.

id   string   

例: ut

scenario   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable.action_type is 1.

scenario_timing   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable.action_type is 1.

reminder   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionReminder.

goal_datetime   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable.action_type is 1. valueには有効な日付を指定してください。. 例: 2026-05-15T20:40:06

friend_task_mark   object  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionLabelDisplay.

id   string  optional  
block_hidden   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionLabelDisplay. 例: 2

この中から選択:
  • 1
  • 2
  • 3
  • 4
send_message   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionLabelDisplay. 例: 1

この中から選択:
  • 1
  • 2
  • 3
text   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionNotification. 例: quo

rich_menu   object  optional  
id   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable.action_type is 1.

friend_custom_field_id   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionFriendCustomField.

operation_type   string  optional  

This field is required when template_actions..actionable.messages..message_carousel_panels..message_carousel_choices..message_carousel_choice_actions.*.actionable_type is App\Models\ActionFriendCustomField. 例: 3

この中から選択:
  • 1
  • 2
  • 3
  • 4
value   string  optional  
carousel_alt_text   string  optional  

valueは、400文字以下で指定してください。. 例: mnbhlldwugomltcprttxg

location_title   string   

valueは、100文字以下で指定してください。. 例: geagbdklxsgdl

location_address   string   

valueは、100文字以下で指定してください。. 例: boovjxidhiunztpyi

location_latitude   number   

例: 9.96358123

location_longitude   number   

例: 10

introduction_text   string   

valueは、60文字以下で指定してください。. 例: qybnswliqlggqtsvzeozjxg

introduction_line_id   string   

valueは、20文字以下で指定してください。. 例: cwjn

introduction_alt_text   string   

valueは、400文字以下で指定してください。. 例: xyzrefhetclfo

flex_json   string   

例: reprehenderit

レスポンス

200      

更新されたTemplateActionオブジェクト

テンプレートアクションを削除

テンプレートアクションを削除します。

リクエスト:
curl --request DELETE \
    "https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4'
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

リクエスト      

DELETE api/v1/template_actions/{templateAction_uuid} 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

templateAction_uuid   string   

テンプレートアクションUUID 例: 90c49b60-087e-41fc-896d-a8ce7e7c15a4

テンプレートアクションを実行

テンプレートアクションを指定されたフレンドに対して実行します。

リクエスト:
curl --request POST \
    "https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4/execute" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"friend_ids\": [
        \"e07ba8c6-f563-440e-a800-316c89f18f19\",
        \"9cdf3aca-43f8-48f4-bb6a-6b06079f6421\"
    ],
    \"variable\": {
        \"system\": \"aposuru\",
        \"replace_friends\": [
            {
                \"friend_uuid\": \"9cdf3aca-43f8-48f4-bb6a-6b06079f6421\",
                \"replaces\": [
                    {
                        \"key\": \"price\",
                        \"value\": \"¥100\"
                    }
                ]
            }
        ]
    },
    \"options\": {
        \"0\": \"deserunt\",
        \"reminder_options\": [
            {
                \"action_uuid\": \"ca0a79fe-77a8-471f-bc2f-f639699f746b\",
                \"goal_datetime\": \"2024-05-13 12:00:00\"
            }
        ]
    }
}"
const url = new URL(
    "https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4/execute"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "friend_ids": [
        "e07ba8c6-f563-440e-a800-316c89f18f19",
        "9cdf3aca-43f8-48f4-bb6a-6b06079f6421"
    ],
    "variable": {
        "system": "aposuru",
        "replace_friends": [
            {
                "friend_uuid": "9cdf3aca-43f8-48f4-bb6a-6b06079f6421",
                "replaces": [
                    {
                        "key": "price",
                        "value": "¥100"
                    }
                ]
            }
        ]
    },
    "options": {
        "0": "deserunt",
        "reminder_options": [
            {
                "action_uuid": "ca0a79fe-77a8-471f-bc2f-f639699f746b",
                "goal_datetime": "2024-05-13 12:00:00"
            }
        ]
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4/execute';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
        'json' => [
            'friend_ids' => [
                'e07ba8c6-f563-440e-a800-316c89f18f19',
                '9cdf3aca-43f8-48f4-bb6a-6b06079f6421',
            ],
            'variable' => [
                'system' => 'aposuru',
                'replace_friends' => [
                    [
                        'friend_uuid' => '9cdf3aca-43f8-48f4-bb6a-6b06079f6421',
                        'replaces' => [
                            [
                                'key' => 'price',
                                'value' => '¥100',
                            ],
                        ],
                    ],
                ],
            ],
            'options' => [
                'deserunt',
                'reminder_options' => [
                    [
                        'action_uuid' => 'ca0a79fe-77a8-471f-bc2f-f639699f746b',
                        'goal_datetime' => '2024-05-13 12:00:00',
                    ],
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://app.talklabel.com/api/v1/template_actions/90c49b60-087e-41fc-896d-a8ce7e7c15a4/execute'
payload = {
    "friend_ids": [
        "e07ba8c6-f563-440e-a800-316c89f18f19",
        "9cdf3aca-43f8-48f4-bb6a-6b06079f6421"
    ],
    "variable": {
        "system": "aposuru",
        "replace_friends": [
            {
                "friend_uuid": "9cdf3aca-43f8-48f4-bb6a-6b06079f6421",
                "replaces": [
                    {
                        "key": "price",
                        "value": "¥100"
                    }
                ]
            }
        ]
    },
    "options": {
        "0": "deserunt",
        "reminder_options": [
            {
                "action_uuid": "ca0a79fe-77a8-471f-bc2f-f639699f746b",
                "goal_datetime": "2024-05-13 12:00:00"
            }
        ]
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_AUTH_KEY}',
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

リクエスト      

POST api/v1/template_actions/{templateAction_uuid}/execute 要認証

ヘッダー

Authorization      

例: Bearer {YOUR_AUTH_KEY}

Content-Type      

例: application/json

Accept      

例: application/json

URLパラメータ

templateAction_uuid   string   

テンプレートアクションUUID 例: 90c49b60-087e-41fc-896d-a8ce7e7c15a4

ボディパラメータ

friend_ids   string[]   

友だちUUIDリスト

variable   object  optional  

変数

system   string   

システム名 例: aposuru

replace_friends   object[]  optional  

置換リスト

friend_uuid   string   

友だちUUID 例: 9cdf3aca-43f8-48f4-bb6a-6b06079f6421

replaces   object[]  optional  
key   string   

置換キー 例: price

value   required  optional  

置換後の値 例: ¥100

options   string[]  optional  

オプション

reminder_options   object[]  optional  

指定されたリマインダーのゴール日時を上書きするオプション

action_uuid   string   

アクションUUID 例: ca0a79fe-77a8-471f-bc2f-f639699f746b

goal_datetime   string   

ゴール日時 例: 2024-05-13 12:00:00