Webhookコールバックイベント
会話作成
ユーザーが API を呼び出して新しい会話を正常に作成すると、API チャネルに設定された Webhook アドレスが、会話作成のコールバックイベントを受信します。
{
"account": {
"id": 17629000001207,
"name": "1112"
},
"additional_attributes": {},
"can_reply": true,
"channel": "Channel::Api",
"contact_inbox": {
"id": 42213404,
"contact_id": 42218348,
"inbox_id": 523,
"source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588",
"created_at": "2026-01-21T03:26:49.012Z",
"updated_at": "2026-01-21T03:26:49.012Z",
"hmac_verified": false,
"pubsub_token": "4Urn7N5A974k6C2H7Xeva8Ni"
},
"id": 89,
"inbox_id": 523,
"messages": [],
"labels": [],
"meta": {
"sender": {
"additional_attributes": {},
"custom_attributes": {},
"email": "alice@acme.inc",
"id": 42218348,
"identifier": null,
"name": "Test",
"phone_number": "+123456789",
"thumbnail": "",
"blocked": false,
"type": "contact"
},
"assignee": null,
"team": null,
"hmac_verified": false,
"channel": "Channel::Api"
},
"status": "open",
"custom_attributes": {},
"snoozed_until": null,
"unread_count": 0,
"first_reply_created_at": null,
"priority": null,
"waiting_since": 1768967324,
"conversation_category": "chat",
"chat_mode": "private_chat",
"ticket_info": null,
"agent_last_seen_at": 0,
"contact_last_seen_at": 0,
"last_activity_at": 1768967324,
"timestamp": 1768967324,
"created_at": 1768967324,
"updated_at": 1768967324.268219,
"event": "conversation_created"
}
{
"account": {
"id": 17629000001207,
"name": "1112"
},
"additional_attributes": {},
"can_reply": true,
"channel": "Channel::Api",
"contact_inbox": {
"id": 42213404,
"contact_id": 42218348,
"inbox_id": 523,
"source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588",
"created_at": "2026-01-21T03:26:49.012Z",
"updated_at": "2026-01-21T03:26:49.012Z",
"hmac_verified": false,
"pubsub_token": "4Urn7N5A974k6C2H7Xeva8Ni"
},
"id": 89,
"inbox_id": 523,
"messages": [],
"labels": [],
"meta": {
"sender": {
"additional_attributes": {},
"custom_attributes": {},
"email": "alice@acme.inc",
"id": 42218348,
"identifier": null,
"name": "Test",
"phone_number": "+123456789",
"thumbnail": "",
"blocked": false,
"type": "contact"
},
"assignee": null,
"team": null,
"hmac_verified": false,
"channel": "Channel::Api"
},
"status": "open",
"custom_attributes": {},
"snoozed_until": null,
"unread_count": 0,
"first_reply_created_at": null,
"priority": null,
"waiting_since": 1768967324,
"conversation_category": "chat",
"chat_mode": "private_chat",
"ticket_info": null,
"agent_last_seen_at": 0,
"contact_last_seen_at": 0,
"last_activity_at": 1768967324,
"timestamp": 1768967324,
"created_at": 1768967324,
"updated_at": 1768967324.268219,
"event": "conversation_created"
}
このコードブロックはフローティングウィンドウ内に表示されます
会話作成イベントのパラメータ
| Field | Type | Required | Description |
|---|---|---|---|
| account | Object | No | アカウントのプロジェクト情報 |
| id | Number | No | プロジェクト ID |
| name | String | No | プロジェクト名 |
| additional_attributes | Object | No | 追加属性 |
| can_reply | Boolean | No | 返信可能かどうか |
| channel | String | No | api、email などのチャネルタイプ |
| contact_inbox | Object | No | 連絡先情報 |
| id | Number | No | contact_inbox テーブルの ID。contact と channel の関連を記録します |
| contact_id | Number | No | 連絡先 ID |
| inbox_id | Number | No | チャネル ID |
| source_id | String | No | 会話のソース ID。Telegram の user_id など |
| created_at | String | No | 作成時刻 |
| updated_at | String | No | 更新時刻 |
| hmac_verified | Boolean | No | HMAC 検証ステータス |
| pubsub_token | String | No | Publish-subscribe トークン |
| id | Number | No | 会話 ID |
| inbox_id | Number | No | チャネル ID |
| messages | Array | No | メッセージ一覧 |
| labels | Array | No | ラベル一覧 |
| meta | Object | No | メタ情報 |
| sender | Object | No | 送信者情報 |
| additional_attributes | Object | No | 送信者の追加属性 |
| custom_attributes | Object | No | 送信者のカスタム属性 |
| String | No | 送信者のメールアドレス | |
| id | Number | No | liveDesk における送信者の内部 ID |
| identifier | String | No | 送信者識別子 |
| name | String | No | 送信者名 |
| phone_number | String | No | 送信者の電話番号 |
| thumbnail | String | No | 送信者のアバター |
| blocked | Boolean | No | 送信者がブロックされているかどうか |
| type | String | No | 送信者タイプ |
| assignee | Object | No | 割り当てられたカスタマーサポート担当者情報 |
| team | Object | No | 割り当てられたカスタマーサポートチーム情報 |
| hmac_verified | Boolean | No | HMAC 検証ステータス |
| channel | String | No | チャネルタイプ |
| status | String | No | open、closed などの会話ステータス |
| custom_attributes | Object | No | カスタム属性 |
| snoozed_until | String | No | 指定時刻までスヌーズ |
| unread_count | Number | No | 未読メッセージ数 |
| first_reply_created_at | String | No | 最初の返信作成時刻 |
| priority | String | No | 優先度 |
| waiting_since | Number | No | 待機開始時刻 |
| conversation_category | String | No | 会話カテゴリ |
| chat_mode | String | No | チャットモード |
| ticket_info | Object | No | チケット情報 |
| agent_last_seen_at | Number | No | エージェントの最終確認時刻 |
| contact_last_seen_at | Number | No | 連絡先の最終確認時刻 |
| last_activity_at | Number | No | 最終アクティビティ時刻 |
| timestamp | Number | No | タイムスタンプ |
| created_at | Number | No | 作成時刻 |
| updated_at | Number | No | 更新時刻 |
| event | String | No | イベントタイプ |
会話更新
このイベントは、会話内のいずれかの属性が更新されたときにトリガーされます。
{
"event": "conversation_updated",
"changed_attributes": [
{
"updated_at": {
"previous_value": "2026-01-21T04:04:56.548Z",
"current_value": "2026-01-21T04:04:56.601Z"
}
},
{
"first_reply_created_at": {
"previous_value": null,
"current_value": "2026-01-21T04:04:56.544Z"
}
},
{
"waiting_since": {
"previous_value": "2026-01-21T03:48:44.268Z",
"current_value": null
}
}
]
// <...Conversation Attributes> 会話属性の内容
}
{
"event": "conversation_updated",
"changed_attributes": [
{
"updated_at": {
"previous_value": "2026-01-21T04:04:56.548Z",
"current_value": "2026-01-21T04:04:56.601Z"
}
},
{
"first_reply_created_at": {
"previous_value": null,
"current_value": "2026-01-21T04:04:56.544Z"
}
},
{
"waiting_since": {
"previous_value": "2026-01-21T03:48:44.268Z",
"current_value": null
}
}
]
// <...Conversation Attributes> 会話属性の内容
}
このコードブロックはフローティングウィンドウ内に表示されます
会話更新イベントのパラメータ
| Field | Type | Required | Description |
|---|---|---|---|
| event | String | No | イベントタイプ |
| changed_attributes | Array | No | 変更された属性の一覧 |
| field_name | Object | No | 変更されたフィールド名 |
| previous_value | String | No | 変更前の値 |
| current_value | String | No | 変更後の値 |
会話ステータス変更
このイベントは、会話のステータスが変更されたときにトリガーされます。
{
"event": "conversation_status_changed"
// <...Conversation Attributes> 会話属性の内容
}
{
"event": "conversation_status_changed"
// <...Conversation Attributes> 会話属性の内容
}
このコードブロックはフローティングウィンドウ内に表示されます
メッセージ作成
このイベントは、ユーザーまたはカスタマーサポート担当者がメッセージを送信したときにトリガーされます。
{
"account": {
"id": 17629000001207,
"name": "1112"
},
"additional_attributes": {},
"content_attributes": {},
"content_type": "text",
"content": "Hello, what can I help you with?",
"conversation": {
"account": {
"id": 17629000001207,
"name": "1112"
},
"additional_attributes": {},
"can_reply": true,
"channel": "Channel::Api",
"contact_inbox": {
"id": 42213404,
"contact_id": 42218348,
"inbox_id": 523,
"source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588",
"created_at": "2026-01-21T03:26:49.012Z",
"updated_at": "2026-01-21T03:26:49.012Z",
"hmac_verified": false,
"pubsub_token": "4Urn7N5A974k6C2H7Xeva8Ni"
},
"id": 89,
"inbox_id": 523,
"messages": [
{
"id": 2187685,
"content": "Hello, what can I help you with?",
"account_id": 17629000001207,
"inbox_id": 523,
"conversation_id": 89,
"message_type": 1,
"created_at": 1768968296,
"updated_at": "2026-01-21T04:04:56.544Z",
"private": false,
"status": "sent",
"source_id": null,
"content_type": "text",
"content_attributes": {},
"sender_type": "User",
"sender_id": 41,
"external_source_ids": {},
"additional_attributes": {},
"processed_message_content": "Hello, what can I help you with?",
"sentiment": {},
"sorting_id": null,
"original_message_id": null,
"conversation_topic_id": null,
"topic_id": null,
"conversation": {
"assignee_id": null,
"unread_count": 0,
"last_activity_at": 1768968296,
"contact_inbox": {
"source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588"
}
},
"sender": {
"id": 41,
"name": "support",
"available_name": "support",
"avatar_url": "",
"type": "user",
"availability_status": null,
"thumbnail": ""
}
}
],
"labels": [],
"meta": {
"sender": {
"additional_attributes": {},
"custom_attributes": {},
"email": "alice@acme.inc",
"id": 42218348,
"identifier": null,
"name": "Test",
"phone_number": "+123456789",
"thumbnail": "",
"blocked": false,
"type": "contact"
},
"assignee": null,
"team": null,
"hmac_verified": false,
"channel": "Channel::Api"
},
"status": "open",
"custom_attributes": {},
"snoozed_until": null,
"unread_count": 0,
"first_reply_created_at": null,
"priority": null,
"waiting_since": 1768967324,
"conversation_category": "chat",
"chat_mode": "private_chat",
"ticket_info": null,
"agent_last_seen_at": 0,
"contact_last_seen_at": 0,
"last_activity_at": 1768968296,
"timestamp": 1768968296,
"created_at": 1768967324,
"updated_at": 1768968296.5483441
},
"created_at": "2026-01-21T04:04:56.544Z",
"id": 2187685,
"inbox": {
"id": 523,
"name": "Test01"
},
"message_type": "outgoing",
"conversation_topic_id": null,
"private": false,
"sender": {
"id": 41,
"name": "support",
"email": "support@jiguang.cn",
"type": "user",
"availability": "online"
},
"source_id": null,
"user_id": 42213404,
"contact_id": 42218348,
"participants": null,
"event": "message_created"
}
{
"account": {
"id": 17629000001207,
"name": "1112"
},
"additional_attributes": {},
"content_attributes": {},
"content_type": "text",
"content": "Hello, what can I help you with?",
"conversation": {
"account": {
"id": 17629000001207,
"name": "1112"
},
"additional_attributes": {},
"can_reply": true,
"channel": "Channel::Api",
"contact_inbox": {
"id": 42213404,
"contact_id": 42218348,
"inbox_id": 523,
"source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588",
"created_at": "2026-01-21T03:26:49.012Z",
"updated_at": "2026-01-21T03:26:49.012Z",
"hmac_verified": false,
"pubsub_token": "4Urn7N5A974k6C2H7Xeva8Ni"
},
"id": 89,
"inbox_id": 523,
"messages": [
{
"id": 2187685,
"content": "Hello, what can I help you with?",
"account_id": 17629000001207,
"inbox_id": 523,
"conversation_id": 89,
"message_type": 1,
"created_at": 1768968296,
"updated_at": "2026-01-21T04:04:56.544Z",
"private": false,
"status": "sent",
"source_id": null,
"content_type": "text",
"content_attributes": {},
"sender_type": "User",
"sender_id": 41,
"external_source_ids": {},
"additional_attributes": {},
"processed_message_content": "Hello, what can I help you with?",
"sentiment": {},
"sorting_id": null,
"original_message_id": null,
"conversation_topic_id": null,
"topic_id": null,
"conversation": {
"assignee_id": null,
"unread_count": 0,
"last_activity_at": 1768968296,
"contact_inbox": {
"source_id": "1d484823-da29-4086-a7ba-d65ad0ebb588"
}
},
"sender": {
"id": 41,
"name": "support",
"available_name": "support",
"avatar_url": "",
"type": "user",
"availability_status": null,
"thumbnail": ""
}
}
],
"labels": [],
"meta": {
"sender": {
"additional_attributes": {},
"custom_attributes": {},
"email": "alice@acme.inc",
"id": 42218348,
"identifier": null,
"name": "Test",
"phone_number": "+123456789",
"thumbnail": "",
"blocked": false,
"type": "contact"
},
"assignee": null,
"team": null,
"hmac_verified": false,
"channel": "Channel::Api"
},
"status": "open",
"custom_attributes": {},
"snoozed_until": null,
"unread_count": 0,
"first_reply_created_at": null,
"priority": null,
"waiting_since": 1768967324,
"conversation_category": "chat",
"chat_mode": "private_chat",
"ticket_info": null,
"agent_last_seen_at": 0,
"contact_last_seen_at": 0,
"last_activity_at": 1768968296,
"timestamp": 1768968296,
"created_at": 1768967324,
"updated_at": 1768968296.5483441
},
"created_at": "2026-01-21T04:04:56.544Z",
"id": 2187685,
"inbox": {
"id": 523,
"name": "Test01"
},
"message_type": "outgoing",
"conversation_topic_id": null,
"private": false,
"sender": {
"id": 41,
"name": "support",
"email": "support@jiguang.cn",
"type": "user",
"availability": "online"
},
"source_id": null,
"user_id": 42213404,
"contact_id": 42218348,
"participants": null,
"event": "message_created"
}
このコードブロックはフローティングウィンドウ内に表示されます
メッセージ作成イベントのパラメータ
| Field | Type | Required | Description |
|---|---|---|---|
| account | Object | No | アカウント情報 |
| id | Number | No | プロジェクト ID |
| name | String | No | プロジェクト名 |
| additional_attributes | Object | No | 追加属性 |
| content_attributes | Object | No | コンテンツ属性 |
| content_type | String | No | コンテンツタイプ |
| content | String | No | メッセージ内容 |
| conversation | Object | No | 会話情報 |
| created_at | String | No | 作成時刻 |
| id | Number | No | メッセージ ID |
| inbox | Object | No | チャネル情報 |
| id | Number | No | チャネル ID |
| name | String | No | チャネル名 |
| message_type | String | No | メッセージタイプ |
| conversation_topic_id | String | No | 会話トピック ID |
| private | Boolean | No | 非公開かどうか |
| sender | Object | No | 送信者情報 |
| id | Number | No | 送信者 ID |
| name | String | No | 送信者名 |
| String | No | 送信者のメールアドレス | |
| type | String | No | 送信者タイプ |
| availability | String | No | 送信者の可用性ステータス |
| source_id | String | No | ソース ID |
| participants | Object | No | 参加者情報 |
| event | String | No | イベントタイプ |
メッセージ更新
このイベントは、会話内のメッセージ内容が更新されたときにトリガーされます。
{
"event": "message_updated"
// <...Message Attributes> メッセージ属性の内容
}
{
"event": "message_updated"
// <...Message Attributes> メッセージ属性の内容
}
このコードブロックはフローティングウィンドウ内に表示されます










