Use this API to retrieve information about a conversation by ID.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Conversation ID
Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
Set to true to request cur_session_id. The field is returned when current open session information is available; it can also be returned when need_session_info is true.
Set to true to request cur_session and cur_session_id. These fields are returned when current open session information is available.
Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
Conversation info.
object
Conversation ID
Number of participants in the conversation.
- If there has been no customer service agent in the conversation, the value is
2: the shop and the buyer; - Otherwise, the value is
3: the shop, the buyer, and the customer service agent.
Conversation participants.
object
Participant’s ID, in IM system. This ID is used in IM system and can not be used to query orders. To query orders, use user_id instead.
Participant’s role. Possible enumerations:
BUYERSHOPCUSTOMER_SERVICE
Participant’s nickname.
Participant’s avatar URL.
Participant’s ID.
Platform the buyer is from.
This field is returned only when the participant role is BUYER and the shop region is Indonesia. Possible values:
TIKTOK_SHOPTOKOPEDIAYou cannot send platform-specific content to a buyer from another platform. For example, when sending a product card to a Tokopedia buyer, ensure that the product is listed on Tokopedia.
Unix timestamp when the conversation was created. In seconds.
Number of messages unread by the customer service agent.
ID of the current open session. This field is returned when need_session_id or need_session_info is true and current open session information is available.
Information about the current open session. This field is returned when need_session_info is true and current open session information is available.
object
Current session id.
Current phase of the session. Possible enumerations:
AUTO_REPLY— The session is being handled by automatic replies or chatbot responses.QUEUED— The session is waiting to be assigned to an agent.ASSIGNED— The session has been assigned to an agent.
Example
{ "code": 0, "data": { "conversation": { "id": "7494560109732334261", "participant_count": 3, "participants": [ { "im_user_id": "7494560109732334261", "role": "BUYER", "nickname": "Albert", "avatar": "https://p16-oec-ttp.tiktokcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/566c497faaaf4491a84d3ce55d9cb095~tplv-omjb5zjo8w-origin-image.image?", "user_id": "7494560109732334262", "platform": "TIKTOK_SHOP" } ], "create_time": 1691411573, "unread_count": 0, "cur_session_id": "7494472109882334261", "cur_session": { "id": "7494472109882334261", "phase": "ASSIGNED" } } }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}