tencent cloud

Chat

제품 소개
제품 개요
Basic Concepts
응용 시나리오
기능 소개
계정 시스템
사용자 정보 및 관계망
메시지 관리
그룹 시스템
Official Account
Audio/Video Call
사용 제한
구매 가이드
과금 개요
요금 안내
Purchase Instructions
Renewal Guide
연체 안내
Refund Policy
다운로드 센터
SDK & Demo 소스 코드
업데이트 로그
시나리오 솔루션
Live Streaming Setup Guide
AI Chatbot
대규모 엔터테인먼트 협업 커뮤니티
Discord 구현 가이드
IM을 게임에 통합하는 방법
WhatsApp Channel-style Official Account Integration Solution
Send Red Packet
Firewall Restrictions
클라이언트 APIs
SDK API(Web)
Android
iOS & macOS
Swift
Flutter
Electron
Unity
React Native
C APIs
C++
서버 APIs
Secure authentication with UserSig
RESTful APIs
Webhooks
콘솔 가이드
New Console Introduction
애플리케이션 생성 및 업그레이드
기본 설정
기능 설정
계정 관리
그룹 관리
Official Channel Management
콜백 설정
모니터링 대시보드
Viewing Guide for Resource Packages
Real-Time Monitor
개발 보조 툴
액세스 관리
Advanced Features
FAQ
uni-app FAQs
구매
SDK 관련 질문
계정 인증
사용자 정보 및 관계망
메시지
그룹
라이브 방송 그룹
닉네임 및 프로필 사진
협약 및 인증
Service Level Agreement
컴플라이언스 인증
IM 정책
개인 정보 보호 정책
데이터 개인 정보 보호 및 보안 계약
에러 코드
문의하기
문서Chat서버 APIsRESTful APIsMessage Related Read ReceiptSending Read Receipts for One-to-One Messages

Sending Read Receipts for One-to-One Messages

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-02-24 16:48:21

API Usage Instructions

App administrators can use this API to send message read receipts for C2C messages.
When User A sends a C2C message to User B, User B (the recipient) sends a message read receipt. In the request, set the Operator_Account field to User B's UserID, the Peer_Account field to User A's UserID, and in the C2CMsgInfo array, set From_Account to User A's UserID and To_Account to User B's UserID.

Request URL Example

https://xxxxxx/v4/openim/c2c_msg_read_receipt?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json

Query Parameters

The table below lists only the parameters relevant to this API call and their descriptions. For more details on other parameters, see the REST API Overview.
Parameter
Description
xxxxxx
Region-specific domain for the SDKAppID:
China: console.tim.qq.com
Singapore: adminapisgp.im.qcloud.com
Seoul: adminapikr.im.qcloud.com
Tokyo: adminapijpn.im.qcloud.com
Frankfurt: adminapiger.im.qcloud.com
Silicon Valley: adminapiusa.im.qcloud.com
Jakarta: adminapiidn.im.qcloud.com
v4/openim/c2c_msg_read_receipt
API endpoint
sdkappid
SDKAppID assigned by the Chat console when creating the application
identifier
Must be an App administrator account. For more details, see App Administrator
usersig
Signature generated by the App administrator account. For details, see Generate UserSig
random
Enter a random 32-bit unsigned integer, range: 0 - 4294967295
contenttype
Request format; fixed value: json

Request Example

{
"Operator_Account": "user1",
"Peer_Account": "user2",
"C2CMsgInfo": [
{
"From_Account": "user2",
"To_Account": "user1",
"MsgKey": "1467329515_5675354_1708676941"
}
]
}

Request Fields

Field
Type
Required
Description
Operator_Account
String
Required
UserID of the user sending the message read receipt.
Peer_Account
String
Required
UserID of the other participant in the conversation.
C2CMsgInfo
Array
Required
List of messages for which the message read receipt is being sent.
From_Account
String
Required
UserID of the message sender. Must match Peer_Account.
To_Account
String
Required
UserID of the message recipient. Must match Operator_Account.
MsgKey
String
Required
Unique identifier for the message.

Response Example

{
"ActionStatus": "OK",
"ErrorInfo": "",
"ErrorCode": 0
}

Response Fields

Field
Type
Description
ErrorCode
Integer
Error code:
0 indicates success.
Non-zero indicates failure.
ErrorInfo
String
Error message.
ActionStatus
String
Status of the request processing.

Error Codes

Unless a network error occurs (such as a 502 error), the HTTP response code for this API is always 200. Actual error codes and messages are provided in the response body via ErrorCode and ErrorInfo.
For common error codes (60000 to 79999), refer to the Error Codes documentation.
The following table lists private error codes specific to this API:
Error Code
Description
20001
Invalid request packet.
20002
UserSig or A2 is invalid.
20003
Sender or recipient UserID is invalid or does not exist. Please check if the UserID has been imported into Chat.
20004
Network exception, please retry.
20005
Internal server error, please retry.
20006
Triggered before sending C2C messages. The App backend returned a prohibition to deliver the message.
90001
JSON parsing failed. Please check if the request packet conforms to JSON specifications.
90002
MsgBody in the JSON request does not conform to the message format description, or MsgBody is not of Array type. Please refer to the definition of TIMMsgElement Object.
90003
To_Account field is missing or not of String type in the JSON request body.
90005
MsgRandom field is missing or not of Integer type in the JSON request body.
90007
MsgBody type in the JSON request body is not Array. Please change it to Array type.
90009
Request requires App administrator privileges.
90010
JSON request does not conform to the message format description. Please refer to the definition of TIMMsgElement Object.
90012
To_Account is not registered or does not exist. Please confirm whether To_Account has been imported into Chat or if there is a spelling error.
90026
Offline message storage time error (maximum is 7 days).
90031
SyncOtherMachine field in the JSON request body is not of Integer type.
90044
MsgLifeTime field in the JSON request body is not of Integer type.
91000
Internal service error, please retry.
90992
Internal service error, please retry. If all requests return this error code and your App is configured with a third-party webhook, please check whether your App server is correctly returning the webhook result to the Chat backend server.
93000
JSON data packet is too long. The message body should not exceed 12k.
90048
The requested user account does not exist.

API Debugging Tool

Use the REST API Online Debugging Tool to test this API.

Reference

Query C2C messages (v4/openim/admin_getroammsg)

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백