2020-02-23 07:24:29 +00:00
|
|
|
type: object
|
|
|
|
properties:
|
2020-03-11 10:49:13 +00:00
|
|
|
id:
|
|
|
|
type: number
|
|
|
|
description: ID of the conversation
|
2020-02-23 07:24:29 +00:00
|
|
|
messages:
|
|
|
|
type: array
|
2021-11-17 13:25:15 +00:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/message'
|
2020-04-10 11:12:37 +00:00
|
|
|
account_id:
|
|
|
|
type: number
|
|
|
|
description: Account Id
|
2020-02-23 07:24:29 +00:00
|
|
|
inbox_id:
|
|
|
|
type: number
|
2020-03-11 10:49:13 +00:00
|
|
|
description: ID of the inbox
|
2020-02-23 07:24:29 +00:00
|
|
|
status:
|
|
|
|
type: string
|
2021-07-21 16:32:43 +00:00
|
|
|
enum: ['open', 'resolved', 'pending']
|
2020-03-11 10:49:13 +00:00
|
|
|
description: The status of the conversation
|
2020-02-23 07:24:29 +00:00
|
|
|
timestamp:
|
|
|
|
type: string
|
2020-03-11 10:49:13 +00:00
|
|
|
description: The time at which conversation was created
|
2020-09-10 13:49:15 +00:00
|
|
|
contact_last_seen_at:
|
2020-02-23 07:24:29 +00:00
|
|
|
type: string
|
|
|
|
agent_last_seen_at:
|
2021-11-17 13:25:15 +00:00
|
|
|
type: string
|
2020-02-23 07:24:29 +00:00
|
|
|
unread_count:
|
|
|
|
type: number
|
2020-03-11 10:49:13 +00:00
|
|
|
description: The number of unread messages
|
|
|
|
additional_attributes:
|
|
|
|
type: object
|
|
|
|
description: The object containing additional attributes related to the conversation
|
2022-06-14 05:05:56 +00:00
|
|
|
custom_attributes:
|
|
|
|
type: object
|
|
|
|
description: The object to save custom attributes for conversation, accepts custom attributes key and value
|
|
|
|
example: { attribute_key: attribute_value, priority_conversation_number: 3 }
|