{"info":{"_postman_id":"872b606e-1e35-4366-ac17-c879c6d20f39","name":"BPCC Mobile/Web Messaging API v1 (JA)","description":"<html><head></head><body><p>Bright Pattern Contact Center Mobile/Web Messaging API v1 は、開発者がチャットや音声によるやり取りをモバイルデバイスやサードパーティ製アプリケーションと連携できるようにする RESTful API です。このAPIは、Bright Pattern Contact Centerを基盤とするコンタクトセンターとの高度なチャット、音声、ビデオ通信を行う、顧客向けのモバイルおよびWebアプリケーションなど、リッチ・コンタクト・エクスペリエンスを提供するアプリケーションの開発に使用いただけます。</p>\n<h1 id=\"5a6lgh6kqt6icf\">対象読者</h1>\n<p>このドキュメントは、Bright Pattern Contact Center を基盤とするコンタクトセンター向けのカスタムアプリケーションを開発する IT 担当者および開発者を対象としています。このドキュメントの読者は、Web およびモバイルアプリケーション開発に関する専門知識に加え、コンタクトセンターの運用およびその運用に関わるリソースについて確かな理解を持っていることが想定されています。</p>\n<h1 id=\"44k144oz44ox44or44ki44ox44oq44kx44o844k344on44oz\">サンプルアプリケーション</h1>\n<p>Bright Patternでは、顧客向けの機能豊富な連絡先アプリケーションのサンプルソースコードを提供しています。このソースコードは、社内でのアプリケーション開発の参考として使用したり、組織の顧客向けモバイルアプリケーションやWebアプリケーションに直接組み込んだりすることができます。</p>\n<p>Webチャットアプリケーションについては、コンタクトセンター管理者アプリケーションの <a href=\"https://help.brightpattern.com/latest:Contact-center-administrator-guide/ScenarioEntries/MessagingChat/ja\">メッセージング/チャットシナリオエントリー</a> ページにある「<strong>クライアントアプリケーション</strong>」ボタンをクリックすることで、ソースコードをダウンロードできます。</p>\n<p>モバイルアプリケーションについては、<a href=\"https://bugfocus.zendesk.com/home\">Bright Pattern カスタマーサクセス管理</a> にサービスリクエストを送信することでソースコードを取得できます。</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"対象読者","slug":"5a6lgh6kqt6icf"},{"content":"サンプルアプリケーション","slug":"44k144oz44ox44or44ki44ox44oq44kx44o844k344on44oz"}],"owner":"58450950","collectionId":"872b606e-1e35-4366-ac17-c879c6d20f39","publishedId":"2sBYB4LmuQ","public":true,"customColor":{"highlight":"FF6C37","right-sidebar":"303030","top-bar":"FFFFFF"},"publishDate":"2026-09-29T10:20:27.000Z"},"item":[{"name":"概要","item":[],"id":"fa2df1e1-5438-4a5a-b0de-ac64021b8fe5","description":"<h1 id=\"リクエスト例\">リクエスト例</h1>\n<p>以下は、APIリクエストの例です：</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>URL: https://yourcontactcenter.brightpattern.com/clientweb/api/v1/chats?tenantUrl=yourcontactcenter.brightpattern.com\n\nMethod: POST\n\nAuthorization: MOBILE-API-140-327-PLAIN appId=\"test\", clientId=\"123\"\n\nContent-Type: application/json; charset=UTF-8\n\nUser-Agent: MobileClient\n\n{\n    \"phone_number\":\"3001\",\n    \"parameters\": {\n        \"first_name\":\"John\",\n        \"last_name\":\"Lee\"\n        }\n}\n</code></pre><h1 id=\"クライアント認証エレメント\">クライアント認証エレメント</h1>\n<p>以下のエレメントはクライアント認証に使用され、すべてのクライアントリクエストで指定する必要があります：</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Element</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>tenantUrl</td>\n<td>コンタクトセンターを識別します。これは、ログイン後に「Contact Center Administrator」アプリケーションの右上隅に表示される、コンタクトセンターのドメイン名に対応しています。</td>\n</tr>\n<tr>\n<td>appId</td>\n<td>アプリケーションを特定のシナリオに関連付けるために使用される、メッセージ送信/チャットシナリオエントリーの一意の識別子です。</td>\n</tr>\n<tr>\n<td>clientId</td>\n<td>クライアントアプリケーションの一意の識別子です。モバイルアプリケーションの特定のインスタンス（つまり、特定のモバイルデバイス）の通信セッションを識別するために使用されます。これはモバイルアプリケーションによって生成される必要があり、各クライアントアプリケーションとデバイスの組み合わせごとに一意である必要があります。clientId が WebChat に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</td>\n</tr>\n<tr>\n<td>User-Agent</td>\n<td>クライアントインターフェースのタイプを指定します。Webアプリケーションの場合、ブラウザの種類によって決定されます。モバイルアプリケーションの場合、このパラメータは常に「MobileClient」に設定する必要があります。</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"追加情報\">追加情報</h1>\n<p>元の仕様（RFC 2616）に準拠した意味を持つ標準的なHTTP応答コードについては、本文書では扱いません。そのような応答の仕様については、セクション10（<a href=\"http://www.ietf.org/rfc/rfc2616.txt\">http://www.ietf.org/rfc/rfc2616.txt</a>）を参照してください。本文書では、元の仕様（RFC 2616）との説明が異なる（例えば、定義がより狭義である、または意味が異なる）レスポンスコードのみを規定しています。</p>\n<p>なお、クライアントアプリケーションは、一度に1つのアクティブな通信セッションしか持つことができません。</p>\n<h1 id=\"エラー本文\">エラー本文</h1>\n<p>レスポンスステータスコードがエラーを示している場合、サーバーはエラーに関する詳細情報を提供するために、JSON形式のレスポンス本文を返します：\n{\"error_code\": \"エラーコード\", \"error_message\":\"エラーメッセージ\"}</p>\n<h2 id=\"認証エラー\">認証エラー</h2>\n<p>以下に、認証を必須とするすべてのリクエストに共通する、認証関連のエラーコードおよびエラーメッセージの可能な値のリストを示します。</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>error_code</th>\n<th>error_message</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1000</td>\n<td>tenantUrlが存在しないか、無効です</td>\n</tr>\n<tr>\n<td>2000</td>\n<td>Authorizationヘッダーがありません</td>\n</tr>\n<tr>\n<td>2001</td>\n<td>認証パラメータのフォーマットが不正です</td>\n</tr>\n<tr>\n<td>2002</td>\n<td>認証スキームが不正です</td>\n</tr>\n<tr>\n<td>2003</td>\n<td>認証パラメータ「appId」が欠落しています</td>\n</tr>\n<tr>\n<td>2004</td>\n<td>認証パラメータ「clientId」が欠落しています</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"その他のエラー\">その他のエラー</h2>\n<p>以下に、その他のエラーコードおよびエラーメッセージの可能な値のリストを示します。</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>error_code</th>\n<th>error_message</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>3000</td>\n<td>アプリケーションの一意のidが存在しないか、無効です</td>\n</tr>\n<tr>\n<td>5000</td>\n<td>タイムアウト - チャットサーバーの応答に時間がかかりすぎます</td>\n</tr>\n<tr>\n<td>5001</td>\n<td>チャット接続を受け入れるサーバーが利用できません</td>\n</tr>\n<tr>\n<td>5003</td>\n<td>JSONリクエスト本文のデコード中にエラーが発生しました：{JSON例外メッセージ}</td>\n</tr>\n<tr>\n<td>5004</td>\n<td>チャットサーバーとの接続が切断されました</td>\n</tr>\n<tr>\n<td>5005</td>\n<td>チャットセッションが見つかりません</td>\n</tr>\n<tr>\n<td>5006</td>\n<td>モバイル起動ポイント（アプリケーション）が見つかりません</td>\n</tr>\n<tr>\n<td>5500</td>\n<td>[内部サーバーエラーメッセージ]</td>\n</tr>\n<tr>\n<td>5501</td>\n<td>アップロードサイズの上限を超過しました</td>\n</tr>\n<tr>\n<td>5502</td>\n<td>ファイルが見つかりません</td>\n</tr>\n<tr>\n<td>5509</td>\n<td>同一セッションに対する同時ポーリングリクエストが多すぎます</td>\n</tr>\n<tr>\n<td>5511</td>\n<td>イベントがありません</td>\n</tr>\n<tr>\n<td>5558</td>\n<td>[ファイル操作エラーメッセージ]</td>\n</tr>\n<tr>\n<td>5955</td>\n<td>指定されていないサーバーエラー</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"54ba443f-cbf5-4147-9dab-ae82a573d594","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"64fa67e9-1954-40cd-a59d-166cf088b319","type":"text/javascript","exec":[""]}}],"_postman_id":"fa2df1e1-5438-4a5a-b0de-ac64021b8fe5"},{"name":"メソッド","item":[{"name":"Check Availability","id":"c77c76db-d0fa-4281-93f2-ef4c3196a143","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\"","description":"<p>appId は、メッセージ送信/チャットシナリオエントリーを一意に識別する識別子であり、アプリケーションを特定のシナリオに関連付けるために使用されます。   clientId は、クライアントアプリケーションの一意の識別子です。これは、モバイルアプリケーションの特定のインスタンス（つまり、特定のモバイルデバイス）の通信セッションを識別するために使用されます。これはモバイルアプリケーションによって生成される必要があり、クライアントアプリケーションとデバイスの組み合わせごとに一意である必要があります。 clientId が「WebChat」に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</p>\n","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://<tenant_url>/clientweb/api/v1/availability?tenantUrl=<tenantUrl>","description":"<p>このメソッドは、関連付けられた<a href=\"https://help.brightpattern.com/latest:Contact-center-administrator-guide/ScenarioEntries/MessagingChat/ja\">メッセージ送信/チャットシナリオエントリー</a>に設定された営業時間の可用性ステータスを返します。オプションで、<a href=\"https://help.brightpattern.com/latest:Faq/Metrics/ja#How_is_EWT_Calculated.3F\">予測待機時間（EWT）</a>（秒単位）が返される場合がありますが、サーバーにEWT値を推定するのに十分なデータがない場合は、この情報が欠落する可能性があります。なお、このAPIでは、実際にログインしているエージェントがいるかどうかは確認されません。</p>\n<h1 id=\"ステータスの意味\">ステータスの意味</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>ステータス名</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>available</td>\n<td>要求されたサービスが利用可能です。</td>\n</tr>\n<tr>\n<td>notAvailable</td>\n<td>要求されたサービスを提供するオフィスは現在閉まっています。</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"戻り値\">戻り値</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>成功：シナリオエントリーの現在のステータス／EWT（オプション）を返します</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"エラー\">エラー</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>アクセス拒否</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["clientweb","api","v1","availability"],"host":["<tenant_url>"],"query":[{"description":{"content":"<p>コンタクトセンターを識別します。これは、ログイン後に「コンタクトセンター管理者」アプリケーションの右上隅に表示される、コンタクトセンターのドメイン名に対応しています。さらに、この変数を使用することで、サービスプロバイダーは特定のテナントを指定することができます（つまり、リクエストがテナントのドメインに送信されていない場合など）。</p>\n","type":"text/plain"},"key":"tenantUrl","value":"<tenantUrl>"}],"variable":[]}},"response":[{"id":"0bfbd162-421d-465a-8827-a3d18b5a6244","name":"Check Availability Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://yourcompany.brightpattern.com/clientweb/api/v1/availability?tenantUrl=yourcompany.brightpattern.com","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["clientweb","api","v1","availability"],"query":[{"key":"tenantUrl","value":"yourcompany.brightpattern.com"}]}},"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"chat\":\"<available|notAvailable>\",\r\n    \"ewt\": \"<estimated wait time in seconds for a chat in state queued>\"\r\n}"}],"_postman_id":"c77c76db-d0fa-4281-93f2-ef4c3196a143"},{"name":"Expected Parameters","id":"0a5ababb-0bd5-40cf-9d6d-0153fc82ca20","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\"","description":"<p>appId は、メッセージ送信/チャットシナリオエントリーの一意の識別子であり、アプリケーションを特定のシナリオに関連付けるために使用されます。 clientId は、クライアントアプリケーションの一意の識別子です。これは、モバイルアプリケーションの特定のインスタンス（つまり、特定のモバイルデバイス）の通信セッションを識別するために使用されます。 これはモバイルアプリケーションによって生成される必要があり、クライアントアプリケーションとデバイスの各組み合わせごとに一意である必要があります。clientId が「WebChat」に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</p>\n","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://<tenant_url>/clientweb/api/v1/parameters?tenantUrl=<tenantUrl>","description":"<p>このメソッドは、期待されるパラメータの配列を返します。これらのパラメータはオプションです。例えば、リクエストされたチャットセッションを処理するのに最も適したエージェントを検索したり、エージェント向けにユーザー情報を表示したりするために使用できます。これらのパラメータは、最初に <a href=\"https://help.brightpattern.com/latest:Contact-center-administrator-guide/ScenarioEntries/MessagingChat/ja\">メッセージ送信/チャットシナリオエントリー</a> を通じて指定され、このシナリオエントリーを介してこのモバイルアプリケーションがコンタクトセンターと通信します。</p>\n<p>現在、以下のパラメータタイプがサポートされています：</p>\n<ul>\n<li>PHONE</li>\n<li>TEXT</li>\n<li>EMAIL</li>\n<li>FIRST_NAME</li>\n<li>LAST_NAME</li>\n<li>ACCOUNT</li>\n<li>COMPANY</li>\n</ul>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>クライアントアプリケーションから送信される可能性のあるパラメータの名前と型を含む application/json</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["clientweb","api","v1","parameters"],"host":["<tenant_url>"],"query":[{"description":{"content":"<p>コンタクトセンターを識別します。これは、ログイン後に「コンタクトセンター管理者」アプリケーションの右上隅に表示される、コンタクトセンターのドメイン名に対応しています。さらに、この変数を使用することで、サービスプロバイダーは特定のテナントを指定することができます（つまり、リクエストがテナントのドメインに送信されていない場合などです）。</p>\n","type":"text/plain"},"key":"tenantUrl","value":"<tenantUrl>"}],"variable":[]}},"response":[{"id":"31608ff8-e4e0-4984-a46e-d6b2559a9525","name":"Expected Parameters Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://yourcompany.brightpattern.com/clientweb/api/v1/parameters?tenantUrl=yourcompany.brightpattern.com","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["clientweb","api","v1","parameters"],"query":[{"key":"tenantUrl","value":"yourcompany.brightpattern.com"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"parameters\":[\r\n        {\r\n            \"<name>\":\"<type>\"\r\n        },\r\n        \"...\"\r\n    ]\r\n}"}],"_postman_id":"0a5ababb-0bd5-40cf-9d6d-0153fc82ca20"},{"name":"Request Chat","id":"bdde89c4-592f-4240-8d71-03e105ab538d","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"POST","header":[{"description":"<p>appId is the unique identifier of the Messaging/Chat scenario entry that will be used to associate your application with a specific scenario. \nclientId is the unique identifier of the client application. It is used to identify communication sessions of a particular instance of the mobile application (i.e., of a specific mobile device). It must be generated by the mobile application and should be unique for each client application/device combination. If clientId is set to \"WebChat\", HTTP cookies will be used for client identification.</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""},{"key":"Content","value":"application/json","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phone_number\":\"<phone number for callback, if necessary>\",\r\n    \"from\":\"<propagated into scenario variable $(item.from)>\",\r\n    \"parameters\":{\r\n        \"parameter_1\":\"value_1\",\r\n        \"...\",\r\n        \"parameter_n\":\"value_n\"\r\n    }\r\n}"},"url":"https://<tenant_url>/clientweb/api/v1/chats?tenantUrl=<tenantUrl>","description":"<p>このメソッドはチャットセッションを開始します。このメソッドでは、 <a href=\"https://help.brightpattern.com/latest:Api/ja\">期待されるパラメータのすべてまたは一部</a>の値を指定し、モバイル端末の電話番号が含まれる場合もあります。 <a href=\"https://help.brightpattern.com/latest:Contact-center-administrator-guide/ScenarioEntries/MessagingChat/ja\">シナリオエントリーの設定</a>によっては、チャットリクエストがエージェントに配信されるとすぐに、指定された番号へのコールバックが自動的に開始される場合があります。</p>\n<p><strong>メモ</strong>:</p>\n<ul>\n<li>この特定のクライアントに関連付けられた既存のチャットセッションが現在存在する場合、「Request Chat」メソッドは、そのチャットセッションのidおよびパラメータを返すことがあります。例えば、クライアントアプリがチャットセッションを作成した後、そのセッションが閉じたりクラッシュしたりしましたが、サーバー上でセッションがタイムアウトする前に再起動された場合などが挙げられます。 </li>\n<li>_「is_new_chat」_レスポンス属性は、チャットが新規セッションか既存セッションかを指定します。クライアントアプリケーションはこれらを異なる方法で処理します（例：既存セッションの場合、アプリはセッション履歴を要求し、以前のコンテンツを表示することがあります）。</li>\n<li>関連するモバイル／Webシナリオエントリーが自動コールバック用に設定されていない場合でも、エージェントは、自らの判断で、あるいはモバイルユーザーからのチャットメッセージで依頼があった際に、この番号を使用してモバイルユーザーに手動で電話をかけることができます。</li>\n<li>_「from」_パラメータは、デバイスの所有者の名前または電話番号のいずれかを指定するために使用できます。これは、シナリオ変数 <em>$(item.from)</em> に格納されます。</li>\n<li><em>parameters</em> 属性で返されるパラメータは、シナリオ変数 <a href=\"https://help.brightpattern.com/latest:Scenario-builder-reference-guide/Reference/VariablesandExpressions/Variables/ja#.24.28item.externalChatData.29\">$(item.externalChatData)</a> に伝播されます。</li>\n<li>オプションとして、 <a href=\"https://help.brightpattern.com/latest:Faq/Metrics/ja#How_is_EWT_Calculated.3F\">予測待機時間（EWT）</a> （秒単位）が返される場合がありますが、サーバーに EWT 値を推定するのに十分なデータがない場合は、この値が欠落する可能性があります。これは、厳格な JSON シリアライゼーションを採用しているクライアントにとって重要な場合があります（つまり、この属性が欠落していると、クライアントアプリが JSON のデシリアライズに失敗する可能性があります）。</li>\n</ul>\n<h1 id=\"戻り値\">戻り値</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>チャットセッションのプロパティ（コンテンツタイプ：application/json）</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"エラー\">エラー</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>不正なリクエスト</td>\n</tr>\n<tr>\n<td>403</td>\n<td>アクセス拒否</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"パラメータ\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Location</th>\n<th>Key</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>header</code></td>\n<td><code>Authorization</code></td>\n<td>appId は、メッセージ送信/チャットシナリオエントリーの一意の識別子であり、アプリケーションを特定のシナリオに関連付けるために使用されます。 clientId は、クライアントアプリケーションの一意の識別子です。これは、モバイルアプリケーションの特定のインスタンス（つまり、特定のモバイルデバイス）の通信セッションを識別するために使用されます。 これはモバイルアプリケーションによって生成される必要があり、クライアントアプリケーションとデバイスの組み合わせごとに一意である必要があります。clientId が「WebChat」に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</td>\n</tr>\n<tr>\n<td><code>header</code></td>\n<td><code>Content</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>header</code></td>\n<td><code>User-Agent</code></td>\n<td></td>\n</tr>\n<tr>\n<td><code>query</code></td>\n<td><code>tenantUrl</code></td>\n<td>コンタクトセンターの識別子を識別します。これは、ログイン後に「コンタクトセンター管理者」アプリケーションの右上隅に表示される、コンタクトセンターのドメイン名に対応しています。また、この変数を使用することで、サービスプロバイダーは特定のテナントを指定することができます（つまり、リクエストがテナントのドメインに送信されていない場合などです）。</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["clientweb","api","v1","chats"],"host":["<tenant_url>"],"query":[{"description":{"content":"<p>Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login. Additionally, this variable allows service providers to specify a particular tenant (i.e., if the request is not sent to the tenant's domain).</p>\n","type":"text/plain"},"key":"tenantUrl","value":"<tenantUrl>"}],"variable":[]}},"response":[{"id":"4581c626-9e34-48e9-9d2b-e2787e753eda","name":"Request Chat Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"phone_number\": \"<phone number for callback, if necessary>\",\r\n    \"from\": \"<propagated into scenario variable $(item.from)>\",\r\n    \"parameters\": {\r\n        \"parameter_1\": \"value_1\",\r\n        \"...\",\r\n        \"parameter_n\": \"value_n\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://yourcompany.brightpattern.com/clientweb/api/v1/chats?tenantUrl=yourcompany","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["clientweb","api","v1","chats"],"query":[{"key":"tenantUrl","value":"yourcompany","description":"Identifies your contact center. It corresponds to the domain name of your contact center that you see in the upper right corner of the Contact Center Administrator application after login."}]}},"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"chat_id\":\"<chat ID>\",\r\n    \"state\":\"<queued|connected|ivr|establishing>\",\r\n    \"ewt\":\"<estimated wait time for a chat in state queued>\",\r\n    \"is_new_chat\":\"true|false\",\r\n    \"phone_number\":\"phone number that will be used for callback\"\r\n}"}],"_postman_id":"bdde89c4-592f-4240-8d71-03e105ab538d"},{"name":"Get Active Chat","id":"cf3b45f4-905d-4e32-af8a-e965daa9a597","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"description":"<p>appId は、メッセージ送信/チャットシナリオエントリーの一意の識別子であり、アプリケーションを特定のシナリオに関連付けるために使用されます。 clientId は、クライアントアプリケーションの一意の識別子です。これは、モバイルアプリケーションの特定のインスタンス（つまり、特定のモバイルデバイス）の通信セッションを識別するために使用されます。 これはモバイルアプリケーションによって生成される必要があり、クライアントアプリケーションとデバイスの組み合わせごとに一意である必要があります。clientId が「WebChat」に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://<tenant_url>/clientweb/api/v1/chats/active?tenantUrl=<tenantUrl>","description":"<p>このメソッドは、アクティブなチャットセッションのプロパティを返します。オプションで、<a href=\"https://help.brightpattern.com/latest:Faq/Metrics/ja#How_is_EWT_Calculated.3F\">EWT (予測待機時間)</a>（秒単位）が返される場合がありますが、サーバーに EWT 値を推定するのに十分なデータがない場合は、この値が欠落している可能性があります。</p>\n<h1 id=\"戻り値\">戻り値</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>チャットセッションのプロパティ（コンテンツタイプ：application/json）</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"エラー\">エラー</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>アクセス拒否</td>\n</tr>\n<tr>\n<td>404</td>\n<td>見つかりません</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["clientweb","api","v1","chats","active"],"host":["<tenant_url>"],"query":[{"description":{"content":"<p>コンタクトセンターを識別します。これは、ログイン後に「Contact Center Administrator」アプリケーションの右上隅に表示される、コンタクトセンターのドメイン名に対応しています。さらに、この変数を使用することで、サービスプロバイダーは特定のテナントを指定することができます（つまり、リクエストがテナントのドメインに送信されていない場合などです）。</p>\n","type":"text/plain"},"key":"tenantUrl","value":"<tenantUrl>"}],"variable":[]}},"response":[{"id":"a585db1a-706f-4234-9c62-ee43c68e38bb","name":"Get Active Chat Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://yourcompany.brightpattern.com/clientweb/api/v1/chats/active?tenantUrl=yourcompany.brightpattern.com","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["clientweb","api","v1","chats","active"],"query":[{"key":"tenantUrl","value":"yourcompany.brightpattern.com"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"chat_id\": \"<chat ID>\",\n    \"state\": \"<queued|connected|ivr|establishing>\",\n    \"ewt\": \"<estimated wait time for a chat in state queued>\",\n    \"phone_number\": \"<phone number that will be used for callback>\"\n}"}],"_postman_id":"cf3b45f4-905d-4e32-af8a-e965daa9a597"},{"name":"Send Events","id":"7d1e0878-92e8-4965-bdad-3d444a499e98","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\"","description":"<p>appId は、メッセージ送信/チャットシナリオエントリーの一意の識別子であり、アプリケーションを特定のシナリオに関連付けるために使用されます。 clientId は、クライアントアプリケーションの一意の識別子です。これは、モバイルアプリケーションの特定のインスタンス（つまり、特定のモバイルデバイス）の通信セッションを識別するために使用されます。 これはモバイルアプリケーションによって生成される必要があり、クライアントアプリケーションとデバイスの組み合わせごとに一意である必要があります。clientId が「WebChat」に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</p>\n","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"body":{"mode":"raw","raw":"{\r\n “events”: [<array of chat events>\r\n    ]\r\n}"},"url":"https://<tenant_url>/clientweb/api/v1/chats/:chatId/events?tenantUrl=<tenantUrl>","description":"<p>このメソッドは、クライアントからサーバー側へイベントを送信します。</p>\n<h1 id=\"戻り値\">戻り値</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>サーバー側からの新規チャットイベントの配列（コンテンツタイプ：application/json）</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"エラー\">エラー</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>アクセス拒否</td>\n</tr>\n<tr>\n<td>404</td>\n<td>見つかりません</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["clientweb","api","v1","chats",":chatId","events"],"host":["<tenant_url>"],"query":[{"description":{"content":"<p>コンタクトセンターを識別します。これは、ログイン後に「コンタクトセンター管理者」アプリケーションの右上隅に表示される、コンタクトセンターのドメイン名に対応しています。さらに、この変数を使用することで、サービスプロバイダーは特定のテナントを指定することができます（つまり、リクエストがテナントのドメインに送信されていない場合など）。</p>\n","type":"text/plain"},"key":"tenantUrl","value":"<tenantUrl>"}],"variable":[{"description":{"content":"<p>現在のチャットセッションIDです。この変数の値は、「Request Chat」メソッドの呼び出しが成功した際、その本文に返されます。</p>\n","type":"text/plain"},"type":"any","value":"","key":"chatId"}]}},"response":[{"id":"0b60b413-e8a7-4206-bc8e-45f6a76d07f2","name":"Send Events Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""},{"key":"User-Agent","type":"text","value":"MobileClient"}],"body":{"mode":"raw","raw":"{\r\n    \"events\":[\r\n        \"<array of chat events>\"\r\n    ]\r\n}"},"url":{"raw":"https://yourcompany.brightpattern.com/clientweb/api/v1/chats/:chatId/events?tenantUrl=yourcompany.brightpattern.com","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["clientweb","api","v1","chats",":chatId","events"],"query":[{"key":"tenantUrl","value":"yourcompany.brightpattern.com"}],"variable":[{"key":"chatId","value":"f5f68c35-ffec-4dcb-8f7f-755b6395a6dc"}]}},"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"events\":[\r\n        \"<array of new chat events from server>\"\r\n    ]\r\n}"}],"_postman_id":"7d1e0878-92e8-4965-bdad-3d444a499e98"},{"name":"Get Chat History","id":"47755800-0de6-40f5-a2de-9cb7262b15ce","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\"","description":"<p>appId は、メッセージ送信/チャットシナリオエントリーを一意に識別する識別子であり、アプリケーションを特定のシナリオに関連付けるために使用されます。 clientId は、クライアント・アプリケーションを一意に識別する識別子です。これは、モバイル・アプリケーションの特定のインスタンス（つまり、特定のモバイル端末）の通信セッションを識別するために使用されます。 これはモバイルアプリケーションによって生成される必要があり、クライアントアプリケーションとデバイスの組み合わせごとに一意である必要があります。clientId が「WebChat」に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</p>\n","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://<tenant_url>/clientweb/api/v1/chats/:chatId/history?tenantUrl=<tenantUrl>","description":"<p>このメソッドは、現在のセッションにおけるすべての<a href=\"https://help.brightpattern.com/latest:Api/ja\">クライアントイベント</a>およびすべての<a href=\"https://help.brightpattern.com/latest:Api/ja\">サーバーイベント</a>を返します。複数のイベントオブジェクトが返されることがあり、各イベントの<em>timestamp</em>属性を使用することで、正しいメッセージの順序を復元できます。</p>\n<h1 id=\"戻り値\">戻り値</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>チャットイベントの配列（コンテンツタイプ：application/json）</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"エラー\">エラー</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>アクセス禁止</td>\n</tr>\n<tr>\n<td>404</td>\n<td>見つかりません</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["clientweb","api","v1","chats",":chatId","history"],"host":["<tenant_url>"],"query":[{"description":{"content":"<p>コンタクトセンターを識別します。これは、ログイン後に「Contact Center Administrator」アプリケーションの右上隅に表示される、コンタクトセンターのドメイン名に対応しています。さらに、この変数を使用することで、サービスプロバイダーは特定のテナントを指定することができます（つまり、リクエストがテナントのドメインに送信されていない場合などです）。</p>\n","type":"text/plain"},"key":"tenantUrl","value":"<tenantUrl>"}],"variable":[{"description":{"content":"<p>現在のチャットセッションIDです。この変数の値は、「Request Chat」メソッドの呼び出しが成功した際、そのレスポンス本文として返されます。</p>\n","type":"text/plain"},"type":"any","value":"","key":"chatId"}]}},"response":[{"id":"05dd9d49-4306-4c02-86b1-8c0d0162e724","name":"Get Chat History Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://yourcompany.brightpattern.com/clientweb/api/v1/chats/:chatId/history?tenantUrl=yourcompany.brightpattern.com","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["clientweb","api","v1","chats",":chatId","history"],"query":[{"key":"tenantUrl","value":"yourcompany.brightpattern.com"}],"variable":[{"key":"chatId","value":"f5f68c35-ffec-4dcb-8f7f-755b6395a6dc"}]}},"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"events\":[\r\n        \"<array of chat events>\"\r\n    ]\r\n}"}],"_postman_id":"47755800-0de6-40f5-a2de-9cb7262b15ce"},{"name":"Get New Chat Events","id":"210dcd8a-4403-43fe-9c8e-19cb76b5f7cb","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"description":"<p>appId は、メッセージ送信/チャットシナリオエントリーの一意の識別子であり、アプリケーションを特定のシナリオに関連付けるために使用されます。clientId は、クライアントアプリケーションの一意の識別子です。これは、モバイルアプリケーションの特定のインスタンス（つまり、特定のモバイルデバイス）の通信セッションを識別するために使用されます。これはモバイルアプリケーションによって生成される必要があり、クライアントアプリケーションとデバイスの組み合わせごとに一意である必要があります。clientId が「WebChat」に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://<tenant_url>/clientweb/api/v1/chats/:chatId/events?tenantUrl=<tenantUrl>","description":"<p>このメソッドは、現在のセッションにおける新規のチャットイベントを返します。新規のイベントがない場合、サーバーはタイムアウト期間中（つまり、約5～15秒間）、リクエストをアクティブな状態に保つことができます。前のリクエストがアクティブな状態のまま、クライアントが新規イベントを取得するために別のリクエストを送信した場合、サーバーはエラー400（Bad Request）を返します。</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>チャットイベントの配列（コンテンツタイプ：application/json）</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>不正なリクエスト</td>\n</tr>\n<tr>\n<td>403</td>\n<td>アクセス拒否</td>\n</tr>\n<tr>\n<td>404</td>\n<td>見つかりません</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["clientweb","api","v1","chats",":chatId","events"],"host":["<tenant_url>"],"query":[{"description":{"content":"<p>コンタクトセンターを識別します。これは、ログイン後に「Contact Center Administrator」アプリケーションの右上隅に表示される、コンタクトセンターのドメイン名に相当します。また、この変数を使用することで、サービスプロバイダーは特定のテナントを指定することができます（つまり、リクエストがテナントのドメインに送信されていない場合など）。</p>\n","type":"text/plain"},"key":"tenantUrl","value":"<tenantUrl>"}],"variable":[{"description":{"content":"<p>現在のチャットセッションIDです。この変数の値は、「Request Chat」メソッドの呼び出しが成功した際、その本文として返されます。</p>\n","type":"text/plain"},"type":"any","value":"","key":"chatId"}]}},"response":[{"id":"8d6b2cc4-ec2a-49b2-848e-443e1b2611ef","name":"Get New Chat Events Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://yourcompany.brightpattern.com/clientweb/api/v1/chats/:chatId/events?tenantUrl=yourcompany.brightpattern.com","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["clientweb","api","v1","chats",":chatId","events"],"query":[{"key":"tenantUrl","value":"yourcompany.brightpattern.com"}],"variable":[{"key":"chatId","value":"f5f68c35-ffec-4dcb-8f7f-755b6395a6dc"}]}},"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"events\":[\r\n        \"<array of chat events>\"\r\n    ]\r\n}"}],"_postman_id":"210dcd8a-4403-43fe-9c8e-19cb76b5f7cb"},{"name":"Upload File","id":"73c24280-b63a-4e52-9674-cc5b5475e04e","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"POST","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\"","description":"<p>appId は、メッセージ送信/チャットシナリオエントリーの一意の識別子であり、アプリケーションを特定のシナリオに関連付けるために使用されます。 clientId は、クライアントアプリケーションの一意の識別子です。これは、モバイルアプリケーションの特定のインスタンス（つまり、特定のモバイルデバイス）の通信セッションを識別するために使用されます。 これはモバイルアプリケーションによって生成される必要があり、クライアントアプリケーションとデバイスの組み合わせごとに一意である必要があります。clientId が「WebChat」に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</p>\n","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","description":"<p>The file or text to be uploaded</p>\n","type":"file","src":"/C:/Users/Lenovo/Desktop/important_file.txt"}]},"url":"https://<tenant_url>/clientweb/api/v1/files?tenantUrl=<tenantUrl>","description":"<p>このメソッドは、ファイルをサーバーにアップロードします。ファイルの最大サイズは25 MBです。サーバーには最大1000個のファイルが保存されます。新しく受信したファイルは、最も古いファイルと置き換えられます。このメソッドは、例えば、クライアントのモバイルアプリケーションからコンタクトセンターのエージェントへ画像を送信する場合などに使用できます。</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td><code>chat_session_file</code> メッセージで使用するファイルID（コンテンツタイプ：application/json）</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>アクセス拒否</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["clientweb","api","v1","files"],"host":["<tenant_url>"],"query":[{"description":{"content":"<p>コンタクトセンターを識別します。これは、ログイン後に「コンタクトセンター管理者」アプリケーションの右上隅に表示される、コンタクトセンターのドメイン名に対応しています。さらに、この変数を使用することで、サービスプロバイダーは特定のテナントを指定することができます（つまり、リクエストがテナントのドメインに送信されていない場合などです）。</p>\n","type":"text/plain"},"key":"tenantUrl","value":"<tenantUrl>"}],"variable":[]}},"response":[{"id":"b1dde2c3-e491-4557-9557-eb16f3a57a25","name":"Upload File Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"},{"key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"File","type":"file","src":"/C:/Users/Lenovo/Desktop/important_file.txt"}]},"url":{"raw":"https://yourcompany.brightpattern.com/clientweb/api/v1/files?tenantUrl=yourcompany.brightpattern.com","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["clientweb","api","v1","files"],"query":[{"key":"tenantUrl","value":"yourcompany.brightpattern.com"}]}},"_postman_previewlanguage":"Text","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"file_id\":\"file ID\"\r\n}"}],"_postman_id":"73c24280-b63a-4e52-9674-cc5b5475e04e"},{"name":"Get File","id":"e379d5d8-2da2-444f-9185-397a76964118","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>appId は、メッセージ送信/チャットシナリオエントリーの一意の識別子であり、アプリケーションを特定のシナリオに関連付けるために使用されます。clientId は、クライアントアプリケーションの一意の識別子です。これは、モバイルアプリケーションの特定のインスタンス（つまり、特定のモバイルデバイス）の通信セッションを識別するために使用されます。これはモバイルアプリケーションによって生成される必要があり、クライアントアプリケーションとデバイスの組み合わせごとに一意である必要があります。clientId が「WebChat」に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""}],"url":"https://<tenant_url>/clientweb/api/v1/chats/:chatId/files/:fileId","description":"<p>このメソッドは、受け取ったファイルIDを使用して、サーバーからファイルをダウンロードします。サーバーイベント「<strong>Chat Session File</strong>」をご参照ください。</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>File content type</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not found</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["clientweb","api","v1","chats",":chatId","files",":fileId"],"host":["<tenant_url>"],"query":[{"disabled":true,"key":"","value":""},{"disabled":true,"key":"","value":""}],"variable":[{"description":{"content":"<p>現在のチャットセッションIDです。この変数の値は、「Request Chat」メソッドの呼び出しが成功した際、そのレスポンス本文として返されます。</p>\n","type":"text/plain"},"type":"any","value":"","key":"chatId"},{"description":{"content":"<p>ダウンロードするファイルのファイルID</p>\n","type":"text/plain"},"type":"any","value":"","key":"fileId"}]}},"response":[{"id":"6af8780c-48d1-4e6d-847d-1a4864b8d837","name":"Get File Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\""}],"url":{"raw":"https://yourcompany.brightpattern.com/clientweb/api/v1/chats/:chatId/files/:fileId","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["clientweb","api","v1","chats",":chatId","files",":fileId"],"query":[{"key":"","value":"","disabled":true},{"key":"","value":"","disabled":true}],"variable":[{"key":"chatId","value":"f5f68c35-ffec-4dcb-8f7f-755b6395a6dc"},{"key":"fileId","value":"e1f234c35-ffec-4dcb-8f7f-755b6395a6dc"}]}},"_postman_previewlanguage":"text","header":null,"cookie":[],"responseTime":null,"body":"File content type"}],"_postman_id":"e379d5d8-2da2-444f-9185-397a76964118"},{"name":"Get Agent Profile Photo","id":"faa85891-95a0-4f13-8ebb-9200a6fe22cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>appId は、メッセージ送信/チャットシナリオエントリーを一意に識別する識別子であり、アプリケーションを特定のシナリオに関連付けるために使用されます。 clientId は、クライアントアプリケーションを一意に識別する識別子です。これは、モバイルアプリケーションの特定のインスタンス（つまり、特定のモバイルデバイス）の通信セッションを識別するために使用されます。 これはモバイルアプリケーションによって生成される必要があり、クライアントアプリケーションとデバイスの組み合わせごとに一意である必要があります。clientId が「WebChat」に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</p>\n","key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\""}],"url":"https://<tenant_url>/clientweb/api/v1/chats/:chatId/profilephotos/:partyId","description":"<p>このメソッドは、指定されたエージェントのプロフィール写真をダウンロードします。</p>\n<h1 id=\"リクエスト本文\">リクエスト本文</h1>\n<p>リクエスト本文には、現在のチャットセッションに参加しているエージェントのパーティーIDを指定します。</p>\n<p>注： パーティーIDは、チャットイベント（https://{host:port}/clientweb/api/v1/chats/{chatId}/events?tenantUrl={tenantUrl}) でポーリングされます）とともに提供されます。たとえば、<em>chat_session_party_joined</em> のイベントメッセージに <em>party_ID</em> が含まれています。</p>\n<h1 id=\"戻り値\">戻り値</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>ファイルのコンテンツタイプ</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"エラー\">エラー</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>アクセス拒否</td>\n</tr>\n<tr>\n<td>404</td>\n<td>見つかりません</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["clientweb","api","v1","chats",":chatId","profilephotos",":partyId"],"host":["<tenant_url>"],"query":[],"variable":[{"description":{"content":"<p>現在のチャットID</p>\n","type":"text/plain"},"type":"any","value":"","key":"chatId"},{"description":{"content":"<p>現在のチャットセッションのエージェントのパーティーID</p>\n","type":"text/plain"},"type":"any","value":"","key":"partyId"}]}},"response":[{"id":"3d491b92-78bc-4e95-8faa-4f231f2bebe2","name":"Get Agent Profile Photo Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\""}],"url":{"raw":"https://yourcompany.brightpattern.com/clientweb/api/v1/chats/:chatId/profilephotos/:partyId","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["clientweb","api","v1","chats",":chatId","profilephotos",":partyId"],"variable":[{"key":"chatId","value":"f5f68c35-ffec-4dcb-8f7f-755b6395a6dc"},{"key":"partyId","value":"e5f23c35-ffec-4dcb-8f7f-755b6395a6dd"}]}},"_postman_previewlanguage":"text","header":null,"cookie":[],"responseTime":null,"body":"File content type"}],"_postman_id":"faa85891-95a0-4f13-8ebb-9200a6fe22cd"},{"name":"Get ICE servers","id":"84dbf3d5-3570-4b39-9709-668441e2c106","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\"","description":"<p>appId は、メッセージ送信/チャットシナリオエントリーの一意の識別子であり、アプリケーションを特定のシナリオに関連付けるために使用されます。 clientId は、クライアントアプリケーションの一意の識別子です。これは、モバイルアプリケーションの特定のインスタンス（つまり、特定のモバイルデバイス）の通信セッションを識別するために使用されます。 これはモバイルアプリケーションによって生成される必要があり、クライアントアプリケーションとデバイスの組み合わせごとに一意である必要があります。clientId が「WebChat」に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</p>\n","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://<tenant_url>/clientweb/api/v1/iceservers?tenantUrl=<tenantUrl>","description":"<p>このメソッドは、チャットに音声・映像セッションを追加できるように、ブラウザに提供する設定済みのICEサーバーのリストを返します。</p>\n<h1 id=\"戻り値\">戻り値</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>成功：ICE サーバーの情報を含む JSON レスポンス</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"エラー\">エラー</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>コード</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>アクセス拒否</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["clientweb","api","v1","iceservers"],"host":["<tenant_url>"],"query":[{"description":{"content":"<p>コンタクトセンターを識別します。これは、ログイン後に「Contact Center Administrator」アプリケーションの右上隅に表示される、コンタクトセンターのドメイン名に対応しています。さらに、この変数を使用することで、サービスプロバイダーは特定のテナントを指定することができます（つまり、リクエストがテナントのドメインに送信されていない場合などです）。</p>\n","type":"text/plain"},"key":"tenantUrl","value":"<tenantUrl>"}],"variable":[]}},"response":[{"id":"1521e798-c989-4ed7-a58d-5ce7d8dde4c1","name":"Get ICE servers","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://<tenant_url>/clientweb/api/v1/iceservers?tenantUrl=yourcompany.brightpattern.com","protocol":"https","host":["<tenant_url>"],"path":["clientweb","api","v1","iceservers"],"query":[{"key":"tenantUrl","value":"yourcompany.brightpattern.com"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"servers\":[{\r\n    \"url\": \"<url>\",\r\n    \"username\": \"<(optional) username>\",\r\n    \"credential\": \"<(optional) password>\"\r\n  }]\r\n}\r\n"}],"_postman_id":"84dbf3d5-3570-4b39-9709-668441e2c106"},{"name":"Get Chat Widget Configuration","id":"ad62a311-43ab-4f45-93d4-9e918053c4b4","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"<app_id>\", clientId=\"WebChat\"","description":"<p>appId は、メッセージ送信/チャットシナリオエントリーの一意の識別子であり、アプリケーションを特定のシナリオに関連付けるために使用されます。 clientId は、クライアントアプリケーションの一意の識別子です。これは、モバイルアプリケーションの特定のインスタンス（つまり、特定のモバイルデバイス）の通信セッションを識別するために使用されます。これはモバイルアプリケーションによって生成される必要があり、クライアントアプリケーションとデバイスの組み合わせごとに一意である必要があります。clientId が「WebChat」に設定されている場合、クライアントの識別には HTTP クッキーが使用されます。</p>\n","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":"https://<tenant_url>/clientweb/api/v1/configuration?tenantUrl=<tenantUrl>","description":"<p>このメソッドは、起動ポイントのチャットウィジェットの設定を返します。</p>\n<h1 id=\"returns\">Returns</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>成功：ICE サーバーの情報を含む JSON レスポンス</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"errors\">Errors</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>403</td>\n<td>アクセス拒否</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["clientweb","api","v1","configuration"],"host":["<tenant_url>"],"query":[{"description":{"content":"<p>コンタクトセンターを識別します。これは、ログイン後に「コンタクトセンター管理者」アプリケーションの右上隅に表示される、コンタクトセンターのドメイン名に対応しています。さらに、この変数を使用することで、サービスプロバイダーは特定のテナントを指定することができます（つまり、リクエストが当該テナントのドメインに送信されていない場合などです）。</p>\n","type":"text/plain"},"key":"tenantUrl","value":"<tenantUrl>"}],"variable":[]}},"response":[{"id":"e486d71a-d278-446c-b4c0-5b8330949f0c","name":"Get Chat Widget Configuration","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"MOBILE-API-140-327-PLAIN appId=\"1a2c26b0-b065-4f27-8696-cbac8f03bb57\", clientId=\"WebChat\"","type":"text"},{"key":"User-Agent","value":"MobileClient","type":"text"}],"url":{"raw":"https://yourcompany.brightpattern.com/clientweb/api/v1/configuration?tenantUrl=yourcompany.brightpattern.com","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["clientweb","api","v1","configuration"],"query":[{"key":"tenantUrl","value":"yourcompany.brightpattern.com"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"widgets\":[\r\n     {\r\n       \"name\": \"<widget name>\",\r\n       \"urls\":[\"<url>\", …],\r\n       \"definition\": {\r\n         \"contact_tab\":{\r\n           \"enabled\": true|false,\r\n           \"location\": \"top_left|top_middle|top_right\r\n                       |right_top|right_middle|right_bottom\r\n                       |bottom_left| bottom_middle|bottom_right\r\n                       |left_top|left_middle|left_bottom\",\r\n           \"color\": \"<color>\",\r\n           \"bg_color\": \"color\",\r\n           \"font\": {\r\n             \"family\": \"<font family>\",\r\n             \"size\": \"<font size>\",\r\n             \"style\": \"<font style>\",\r\n             \"weight\": \"<font weight>\"   \r\n           },\r\n           \"agents_available_msg\": \"<msg>\",\r\n           \"agents_not_available_msg\": \"<msg>\",\r\n           \"out_of_hours_msg\": \"<msg>\",\r\n           \"show_ewt_out_of_hours\": true|false  \r\n         }\r\n       },\r\n\t    \"styles\":{\r\n\t\t    \"style1\":{\r\n                \"contentMargin\" : {\r\n                    \"margin\": \"\"\r\n                },\r\n                \"titleFont\" : {\r\n                    \"font-family\": \"\",\r\n                    \"font-style\": \"\",\r\n                    \"font-size\": \"\",\r\n                    \"font-weight\": \"\"\t\r\n                },\r\n                \"contactTabFont\" : {\r\n                    \"font-family\": \"\",\r\n                    \"font-style\": \"\",\r\n                    \"font-size\": \"\",\r\n                    \"font-weight\": \"\"\t\r\n                },\r\n                \"systemMessage\" : {\r\n                    \"background-color\": \"\"\r\n                },\r\n                \"agentMessage\" : {\r\n                    \"background-color\": \"\"\r\n                },\r\n                \"widgetBorder\" : {\r\n                    \"border\": \"1px solid etc...\",\r\n                    \"border-radius\": \"\"\r\n                },\r\n                \"contactTabBorder\": {\r\n                    \"border\": \"1px solid etc...\",\r\n                    \"border-radius\": \"\"\r\n                },\r\n                \"widgetBackground\" {\r\n                    \"background\": \"url(img.png) #fff repeat-y\"        \r\n                },\r\n                \"baseFont\": {\r\n                    \"font-family\": \"\",\r\n                    \"font-style\": \"\",\r\n                    \"font-size\": \"\",\r\n                    \"font-weight\": \"\",\r\n                    \"color\": \"\"\r\n                },    \r\n                \"dialogShadow\": {\r\n                    \"box-shadow\":\"\"\r\n                }    \r\n            }\r\n        } \r\n     }\r\n  ]\r\n}\r\n"}],"_postman_id":"ad62a311-43ab-4f45-93d4-9e918053c4b4"}],"id":"7429b7a2-a67c-4e34-b34f-d32db74cad39","_postman_id":"7429b7a2-a67c-4e34-b34f-d32db74cad39","description":""},{"name":"イベント","item":[{"name":"クライアント向けイベント","item":[],"id":"1524e910-7e50-46e0-bb0d-9b2331e39b09","description":"<h1 id=\"chat_session_message\">chat_session_message</h1>\n<p>chat_session_message には、新規のチャットメッセージが含まれています。</p>\n<h2 id=\"パラメータ\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>パラメータ</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>メッセージの一意の識別子で、以下のフォーマット（chatId:messageNumber）で指定されます</td>\n</tr>\n<tr>\n<td>msg</td>\n<td>メッセージのコンテンツ</td>\n</tr>\n<tr>\n<td>channel</td>\n<td>チャットチャネル（例：Web、Twitter、WhatsAppなど）</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"フォーマット\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_message\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"msg\": \"&lt;chat message&gt;\",\n    \"channel\": \"chat channel&gt;\n}\n</code></pre>\n<h1 id=\"chat_session_typing\">chat_session_typing</h1>\n<p>chat_session_typing は、クライアントアプリケーションのユーザーが文字入力を開始したときに送信されます。</p>\n<h2 id=\"フォーマット-1\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_typing\"\n}\n</code></pre>\n<h1 id=\"chat_session_not_typing\">chat_session_not_typing</h1>\n<p>chat_session_not_typing は、クライアントアプリケーションのユーザーが文字入力を停止したときに送信されます。</p>\n<h2 id=\"フォーマット-2\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_not_typing\"\n}\n</code></pre>\n<h1 id=\"chat_session_form_data\">chat_session_form_data</h1>\n<p>chat_session_form_data には、イベント chat_session_form_show 経由でサーバーから要求されたデータが含まれます。</p>\n<h2 id=\"フォーマット-3\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_form_data\",\n    \"form_request_id\": \"&lt;form request ID from the corresponding server event&gt;\",\n    \"form_name\": \"&lt;form name&gt;\",\n    \"data\": {\n        \"param1\": \"value1\",\n        …\n        }\n}\n</code></pre>\n<h1 id=\"chat_session_secure_form_data\">chat_session_secure_form_data</h1>\n<p>chat_session_secure_form_data には、イベント chat_session_secure_form_show 経由でサーバーから要求されたデータが含まれています。</p>\n<h2 id=\"フォーマット-4\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_secure_form_data\",\n    \"form_request_id\": \"&lt;form request ID from the corresponding server event&gt;\",\n    \"form_name\": \"&lt;form name&gt;\",\n    \"data\": {\n        \"param1\": \"value1\",\n        …\n        }\n}\n</code></pre>\n<h1 id=\"chat_session_secure_form_cancel\">chat_session_secure_form_cancel</h1>\n<p>chat_session_secure_form_cancel は、セキュアフォームをキャンセルするためのものです。</p>\n<h2 id=\"フォーマット-5\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_secure_form_cancel\",\n    \"form_request_id\": \"&lt;form request ID from the corresponding server event&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_end\">chat_session_end</h1>\n<p>chat_session_end は、チャットセッションを終了します。</p>\n<h2 id=\"フォーマット-6\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_end\"\n}\n</code></pre>\n<h1 id=\"chat_session_disconnect\">chat_session_disconnect</h1>\n<p>chat_session_disconnect は、現在のチャット会話を終了させますが、セッション自体は開いたままにします（つまり、シナリオによってコントロールされた状態を維持します）。このメッセージは、サーバーから追加の情報（例：アンケートフォーム）が返されることが予想される場合に、chat_session_end の代わりに使用できます。</p>\n<h2 id=\"フォーマット-7\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_disconnect\"\n}\n</code></pre>\n<h1 id=\"chat_session_signaling\">chat_session_signaling</h1>\n<p>chat_session_signaling は、クライアントからサーバーへの WebRTC シグナリングメッセージを格納するためのコンテナメッセージです。これらのメッセージは、チャットセッションの履歴には保存されません。</p>\n<h2 id=\"パラメータ-1\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>パラメータ</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>メッセージの一意の識別子で、以下のフォーマット（chatId:messageNumber）で指定されます</td>\n</tr>\n<tr>\n<td>chatId</td>\n<td>クライアントからのチャット要求に対してサーバーが返す、チャットセッションの一意の識別子</td>\n</tr>\n<tr>\n<td>messageNumber</td>\n<td>チャットでのやり取りにおける、当該メッセージの順序番号</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"フォーマット-8\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_signaling\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"destination_party_id\": \"&lt;agent party id&gt;\",\n    \"data\": \"&lt;signaling message&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_file\">chat_session_file</h1>\n<p>chat_session_file は、クライアントがサーバーにファイルをアップロードしたことを通知します。</p>\n<h2 id=\"パラメータ-2\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>パラメータ</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>メッセージの一意の識別子で、以下のフォーマット（chatId:messageNumber）で指定されます</td>\n</tr>\n<tr>\n<td>chatId</td>\n<td>クライアントからのチャット要求に対してサーバーが返す、チャットセッションの一意の識別子</td>\n</tr>\n<tr>\n<td>messageNumber</td>\n<td>チャットでのやり取りにおける、当該メッセージの順序番号</td>\n</tr>\n<tr>\n<td>fileId</td>\n<td>アップロードされたファイルを識別します</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"フォーマット-9\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_file\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"file_type\": \"&lt;image|attachment&gt;\",\n    \"file_id\": \"&lt;file id&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_location\">chat_session_location</h1>\n<p>chat_session_location には、新規の地理的位置メッセージが含まれています。</p>\n<h2 id=\"パラメータ-3\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>パラメータ</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>メッセージの一意の識別子で、以下のフォーマット（chatId:messageNumber）で指定されます</td>\n</tr>\n<tr>\n<td>url</td>\n<td>マップの URL（オプション）</td>\n</tr>\n<tr>\n<td>latitude</td>\n<td>位置情報の緯度</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>位置情報の経度</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"フォーマット-10\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_location\",\n    \"msg_id\": \"&lt;message id&gt;\"\n    \"url\": \"&lt;map URL (optional)&gt;\",\n    \"latitude\": \"&lt;latitude&gt;\",\n    \"longitude\": \"&lt;longitude&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_navigation\">chat_session_navigation</h1>\n<p>chat_session_navigation は、そのウェブページの場所（ページ名または URL）とともにクライアントから送信されます</p>\n<h2 id=\"パラメータ-4\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>パラメータ</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>メッセージの一意の識別子で、以下のフォーマット（chatId:messageNumber）で指定されます</td>\n</tr>\n<tr>\n<td>title</td>\n<td>ページのタイトル</td>\n</tr>\n<tr>\n<td>page</td>\n<td>ページ名またはページの URL</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"フォーマット-11\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_navigation\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"title\": \"&lt;page title&gt;\",\n    \"page\": \"&lt;page name or page url&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_cobrowsing_rejected\">chat_session_cobrowsing_rejected</h1>\n<p>chat_session_cobrowsing_rejected は、ユーザーがブラウザ共有セッションを拒否したことをサーバーに通知するためのものです。</p>\n<h2 id=\"フォーマット-12\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_cobrowsing_rejected\"\n}\n</code></pre>\n<h1 id=\"chat_session_cobrowsing_started\">chat_session_cobrowsing_started</h1>\n<p>chat_session_cobrowsing_started は、ユーザーがブラウザ共有セッションを承認し、開始したことをサーバーに通知するためのものです。</p>\n<h2 id=\"フォーマット-13\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_cobrowsing_started\",\n    \"provider_type\": \"&lt;Name of chat co-browsing provider&gt;\",\n    \"cobrowsing_url\": \"&lt;URL of the co-browsing session&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_cobrowsing_ended\">chat_session_cobrowsing_ended</h1>\n<p>chat_session_cobrowsing_ended は、ユーザーがブラウザ共有セッションを終了したことをサーバーに通知するためのものです。</p>\n<h2 id=\"フォーマット-14\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_cobrowsing_ended\"\n}\n</code></pre>\n","event":[{"listen":"prerequest","script":{"id":"44eb5b92-414f-4611-b497-b7de9a42bc4b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"98e7eb5d-0e88-4442-b62d-a38195458b67","type":"text/javascript","exec":[""]}}],"_postman_id":"1524e910-7e50-46e0-bb0d-9b2331e39b09"},{"name":"サーバーイベント","item":[],"id":"b998d41d-acb8-483c-a5b0-528dd851fb94","description":"<h1 id=\"chat_session_status\">chat_session_status</h1>\n<p>chat_session_status は、チャットセッションの現在の状態を更新します。状態が「失敗」の場合、クライアントアプリケーションは、そのチャットセッションがもはや存在しないとみなすものとします。</p>\n<h2 id=\"フォーマット\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_status\",\n    \"state\": \"queued|connecting|connected|failed|completed\",\n    \"ewt\": \"&lt;estimated waiting time for queued status&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_ended\">chat_session_ended</h1>\n<p>chat_session_ended は、チャットセッションが正常に終了したことを示します（例：エージェントによってチャットセッションが閉じられた場合など）。クライアントアプリケーションは、そのチャットセッションがもはや存在しないとみなすものとします。</p>\n<h2 id=\"フォーマット-1\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_ended\"\n}\n</code></pre>\n<h1 id=\"chat_session_party_joined\">chat_session_party_joined</h1>\n<p>chat_session_party_joined は、新規の参加者（新規のエージェント）がチャットセッションに参加したことを示します。 </p>\n<h2 id=\"パラメータ\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>パラメータ</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>party_id</td>\n<td>サーバー側におけるチャット参加者の一意の識別子です。このチャットセッションを処理する参加者（エージェント）ごとに、個別の識別子が生成されます。</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"フォーマット-2\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_party_joined\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"first_name\": \"&lt;party first name&gt;\",\n    \"last_name\": \"&lt;party last name&gt;\",\n    \"display_name\": \"&lt;party display name&gt;\",\n    \"type\": \"&lt;scenario|external|internal&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in milliseconds&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_party_left\">chat_session_party_left</h1>\n<p>chat_session_party_left は、既存の参加者のうち1人（エージェント）がチャットセッションを退出したことを示します。</p>\n<h2 id=\"パラメータ-1\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>パラメータ</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>party_id</td>\n<td>サーバー側におけるチャットセッションの一意の識別子です。このチャットセッションを処理する各参加者（エージェント）ごとに、個別の識別子が生成されます。</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"フォーマット-3\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_party_left\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in milliseconds&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_message\">chat_session_message</h1>\n<p>chat_session_messageには、新規のチャットメッセージが含まれます。</p>\n<h2 id=\"パラメータ-2\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>パラメータ</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>このメッセージを送信した当事者の一意の識別子</td>\n</tr>\n<tr>\n<td>party_id</td>\n<td>サーバー側のチャットセッションを一意に識別する識別子です。このチャットセッションを処理する各当事者（エージェント）ごとに、個別の識別子が生成されます。なお、当事者 ID は常にチャット ID と一致します（つまり、イベントがチャットセッション履歴の一部として受信された場合）。</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"フォーマット-4\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_message\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"msg\": \"&lt;chat message&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in milliseconds&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_typing\">chat_session_typing</h1>\n<p>chat_session_typingは、エージェントが入力を開始した際に送信されます。</p>\n<h2 id=\"パラメータ-3\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>パラメータ</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>party_id</td>\n<td>サーバー側におけるチャット参加者の一意の識別子です。このチャットセッションを処理する各参加者（エージェント）ごとに、個別の識別子が生成されます。</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"フォーマット-5\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_typing\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_not_typing\">chat_session_not_typing</h1>\n<p>chat_session_not_typingは、エージェントが入力を停止した際に送信されます。</p>\n<h2 id=\"パラメータ-4\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>パラメータ</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>party_id</td>\n<td>サーバー側におけるチャット参加者の一意の識別子です。このチャットセッションを処理する参加者（エージェント）ごとに、個別の識別子が生成されます。</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"フォーマット-6\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_not_typing\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_form_show\">chat_session_form_show</h1>\n<p>chat_session_form_showは、クライアントアプリケーションからのユーザー入力を、あらかじめ定義されたフォーム経由で入力するようリクエストするために送信されます。通常、クライアントアプリケーションは、指定されたフォームをユーザーに表示し、入力されたデータをイベント<em>chat_session_form_data</em>経由で送信し戻すことになっています。</p>\n<h2 id=\"フォーマット-7\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_form_show\",\n    \"form_request_id\": \"&lt;request ID that will be used by the client application to associate the response&gt;\",\n    \"form_name\": \"&lt;predefined form name known to the client application&gt;\",\n    \"form_timeout\": \"form timeout\",\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_secure_form_show\">chat_session_secure_form_show</h1>\n<p>chat_session_secure_form_show は、クライアントアプリケーションに対し、ユーザーに安全な事前定義済みのフォームを表示し、入力されたデータをイベント chat_session_secure_form_data 経由で送信するよう通知するために送信されます。</p>\n<h2 id=\"フォーマット-8\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_secure_form_show\",\n    \"form_request_id\": \"&lt;request ID that will be used by the client application in chat_session_secure_form_data&gt;\",\n    \"form_id\": \"&lt;Form ID&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_timeout_warning\">chat_session_timeout_warning</h1>\n<p>chat_session_timeout_warning は、クライアントアプリケーションのユーザーに対して指定されたテキストを表示するよう要求するために送信されます。通常、これは非アクティブ時の警告メッセージを表示するために使用されます。</p>\n<h2 id=\"フォーマット-9\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_timeout_warning\",\n    \"msg\": \"&lt;warning text&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in milliseconds&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_inactivity_timeout\">chat_session_inactivity_timeout</h1>\n<p>chat_session_inactivity_timeout は、ユーザーの非アクティブ状態によるチャットセッションの終了を示し、ユーザーに表示されるテキストを提供します。クライアントアプリケーションは、チャットセッションがもはや存在しないものとみなすものとします。</p>\n<h2 id=\"フォーマット-10\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_inactvity_timeout\",\n    \"msg\": \"&lt;inactivity timeout text&gt;\",\n    \"timestamp\": \"&lt;UTC timestamp in milliseconds&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_signaling\">chat_session_signaling</h1>\n<p>chat_session_signalingは、サーバーからクライアントへのWebRTCシグナリングメッセージを格納するコンテナメッセージです。これらのメッセージは、チャットセッション履歴には保存されません。</p>\n<h2 id=\"フォーマット-11\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_signaling\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"data\": \"&lt;signaling message&gt;\"\n    \n}\n</code></pre>\n<h1 id=\"chat_session_file\">chat_session_file</h1>\n<p>chat_session_fileは、クライアントにファイルが送信されていることを通知します。クライアントは、file_idパラメータを使用してファイルをダウンロードできます。</p>\n<h2 id=\"パラメータ-5\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>パラメータ</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>party_id</td>\n<td>サーバー側におけるチャットセッションの一意の識別子です。このチャットセッションを処理する各参加者（エージェント）ごとに、個別の識別子が生成されます。</td>\n</tr>\n<tr>\n<td>msg_id</td>\n<td>対応するメッセージの一意の識別子</td>\n</tr>\n<tr>\n<td>partyId</td>\n<td>メッセージを送信した参加者の一意の識別子</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"フォーマット-12\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_file\",\n    \"party_id\": \"&lt;party id&gt;\",\n    \"msg_id\": \"&lt;message id&gt;\",\n    \"file_id\": \"&lt;file id&gt;\",\n    \"file_type\": \"&lt;image|attachment&gt;\",\n    \"timestamp\": \"&lt;event time in Unix format&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_location\">chat_session_location</h1>\n<p>chat_session_location には、新規の位置情報メッセージが含まれます。</p>\n<h2 id=\"パラメータ-6\">パラメータ</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>パラメータ</th>\n<th>説明</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>msg_id</td>\n<td>メッセージの一意の識別子</td>\n</tr>\n<tr>\n<td>url</td>\n<td>地図の URL（オプション）</td>\n</tr>\n<tr>\n<td>latitude</td>\n<td>位置情報の緯度</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>位置情報の経度</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"フォーマット-13\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_location\",\n    \"msg_id\": \"&lt;message id&gt;\"\n    \"url\": \"&lt;map url (optional)&gt;”,\n    \"latitude\": “&lt;latitude&gt;”,\n    \"longitude\": “&lt;longitude&gt;”,\n    \"timestamp\": \"&lt;UTC timestamp in seconds&gt;\"\n}\n</code></pre>\n<h1 id=\"chat_session_cobrowsing_requested\">chat_session_cobrowsing_requested</h1>\n<p>chat_session_cobrowsing_requested は、ブラウザ共有セッションをリクエストするためにクライアント アプリケーションに送信されます。</p>\n<h2 id=\"フォーマット-14\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"chat_session_cobrowsing_requested\",\n    \"msg_id\": \"&lt;message id&gt;\"\n}\n</code></pre>\n","event":[{"listen":"prerequest","script":{"id":"2974849a-cce0-4dd7-9bec-1da5616c41db","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3677a3fe-3ef4-40b2-afb8-ae65bcedc087","type":"text/javascript","exec":[""]}}],"_postman_id":"b998d41d-acb8-483c-a5b0-528dd851fb94"},{"name":"シグナリングメッセージの種類","item":[],"id":"63a6058e-bfb4-4df9-ac5d-c1cff2abf956","description":"<h1 id=\"request-call\">Request Call</h1>\n<p>このメッセージは、WebRTCコールをリクエストするためにクライアントから送信されます。</p>\n<h2 id=\"フォーマット\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"REQUEST_CALL”,\n    \"offerVideo\": \"true|false\"\n}\n</code></pre>\n<h1 id=\"call-rejected\">Call Rejected</h1>\n<p>このメッセージは、要求されたコールが拒否されたことを示すために、サーバーから送信されます。</p>\n<h2 id=\"フォーマット-1\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"CALL_REJECTED\",\n    \"reason_code\": \"&lt;reject reason code&gt;\",\n    \"reason\": \"TBD\"\n}\n</code></pre>\n<h1 id=\"offer-call\">Offer Call</h1>\n<p>このメッセージは、WebRTCセッションを開始するためにサーバーから送信されます。</p>\n<h2 id=\"フォーマット-2\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"OFFER_CALL\",\n    \"offerVideo\": \"true|false\",\n    \"sdp\": \"&lt;session description string\"\n}\n</code></pre>\n<h1 id=\"answer-call\">Answer Call</h1>\n<p>このメッセージは、サーバーによって開始されたWebRTCセッションを確認するために、クライアントから送信されます。</p>\n<h2 id=\"フォーマット-3\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"ANSWER_CALL\",\n    \"sdp\": \"&lt;session description string&gt;\"\n}\n</code></pre>\n<h1 id=\"ice-candidate\">ICE Candidate</h1>\n<p>このメッセージは、ICE候補の説明とともに、クライアントまたはサーバーから送信されます。</p>\n<h2 id=\"フォーマット-4\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"ICE_CANDIDATE\",\n    \"sdpMid\": \"&lt;candidate id&gt;\",\n    \"sdpMLineIndex\": \"&lt;candidate index&gt;\",\n    \"candidate\": \"&lt;candidate description&gt;\"\n}\n</code></pre>\n<h1 id=\"end-call\">End Call</h1>\n<p>このメッセージは、現在のWebRTCセッションを終了するために、クライアントまたはサーバーから送信されます。</p>\n<h2 id=\"フォーマット-5\">フォーマット</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"END_CALL\"\n}\n</code></pre>\n","event":[{"listen":"prerequest","script":{"id":"82c3db22-1b7b-4ce0-be80-bd9340d948dc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0f3bd21d-fcbc-4844-bdb2-2d25d3447bd1","type":"text/javascript","exec":[""]}}],"_postman_id":"63a6058e-bfb4-4df9-ac5d-c1cff2abf956"}],"id":"467d84d2-1753-4c7c-aa67-deafbe76266d","_postman_id":"467d84d2-1753-4c7c-aa67-deafbe76266d","description":""}],"event":[{"listen":"prerequest","script":{"id":"efe5782d-9e1f-49b7-baf1-db5a1b90af80","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"53914c5e-dcf1-401b-8b70-82c65e94a6d2","type":"text/javascript","exec":[""]}}]}