Conversation
Conversation
{
"id": "<string>",
"customer_id": "<string>",
"owner_type": "<string>",
"owner_id": "<string>",
"account_id": "<string>",
"name": "<string>",
"detail": "<string>",
"type": "<string>",
"dialog_id": "<string>",
"self": {
...
},
"peer": {
...
},
"tm_create": "<string>",
"tm_update": "<string>",
"tm_delete": "<string>"
}
id(UUID): The conversation’s unique identifier. Returned when creating viaPOST /conversationsor listing viaGET /conversations.customer_id(UUID): The customer’s ID. Obtained from theidfield ofGET /customers.owner_type(enum string): The type of the owner of this conversation (e.g.,agent).owner_id(UUID): The owner’s unique identifier.account_id(UUID): The messaging account ID associated with this conversation.name(String): A human-readable name for the conversation (e.g., “Customer Support #1234”).detail(String): Additional description or context for the conversation.type(enum string): The channel type of this conversation. See Type.dialog_id(String): An identifier associated with the channel dialog (e.g., a phone number or Line chatroom ID).self(Object): The local party’s address in this conversation. See Address.peer(Object): The remote party’s address in this conversation. See Address.tm_create(string, ISO 8601): Timestamp when the conversation was created.tm_update(string, ISO 8601): Timestamp of the last update.tm_delete(string, ISO 8601): Timestamp of deletion (soft delete).
Note
AI Implementation Hint
Timestamps set to 9999-01-01 00:00:00.000000 indicate the event has not yet occurred. For example, tm_delete with this value means the conversation has not been deleted.
Example
{
"id": "bdc9d9f5-706c-4e2d-9be7-7dc1e5fd45a0",
"customer_id": "5e4a0680-804e-11ec-8477-2fea5968d85b",
"owner_type": "agent",
"owner_id": "3a4b5c6d-7e8f-9012-3456-789abcdef012",
"account_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "conversation",
"detail": "conversation detail",
"type": "message",
"dialog_id": "+673802",
"self": {
"type": "tel",
"target": "+14703298699",
"target_name": "",
"name": "",
"detail": ""
},
"peer": {
"type": "tel",
"target": "+673802",
"target_name": "",
"name": "",
"detail": ""
},
"tm_create": "2022-06-23 05:05:40.950834",
"tm_update": "2022-06-23 05:05:40.950842",
"tm_delete": "9999-01-01 00:00:00.000000"
}
Type
Conversation’s type.
Type |
Description |
|---|---|
message |
Conversation initiated via SMS/MMS messaging channel. |
line |
Conversation initiated via Line messaging platform. |