Retrieve the seller’s IM conversations.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
Number of conversations to return per page. Range: 1–50.
Pagination cursor. Omit this parameter for the first request. For subsequent pages, use the next_page_token returned by the previous response.
- If
true, onlyconversation_idinconversationis returned. - If
false, all fields in conversationare returned.true` by default.
Filter the returned IM conversations by status. If omitted, the API returns conversations from all statuses.
Possible values:
ALL: Retrieve all conversations regardless of status.UNREAD: Retrieve conversations with messages the seller has not read. Messages remain unread until explicitly marked as read by calling Mark Conversation Read; replying does not change the read status.UNREPLIED: Retrieve conversations in which the seller is not the last message sender.STARRED: Retrieve conversations the seller starred.ARCHIVED: Retrieve conversations the seller archived.
Request Body
Section titled “Request Body”object
- If
true, onlyconversation_idindata.conversationis returned. - If
false, all fields indata.conversationare returned.trueby default.
Examplegenerated
{ "only_need_conversation_id": true}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
Whether there are more conversations.
Pagination cursor for the next page. When has_more is true, pass this value as page_token in the next request.
The conversation list.
object
Conversation unique ID.
Number of unread messages.
The TikTok user name.
The URL for the TikTok creator’s avatar image file.
Creators’ IM User ID.
Example
{ "code": 0, "data": { "has_more": true, "next_page_token": "12345678", "conversations": [ { "id": "12345678", "unread_count": 2, "username": "test_creator_name", "avatar": "https://p16-sign-useast2a.tiktokcdn.com/tos-useast2a-avt-0068-giso/2bf6a2485ec8bf93483e4a6ed907e6fd~c5_720x720.webp", "creator_im_id": "12345678" } ] }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}