BINANCE SAPI · C2C

Mark Messages As Read By User API

Acknowledge all unread peer-to-peer (C2C) chat messages and clear global notification badges across all active trade conversations for the authenticated account.

ENDPOINT
POST /sapi/v1/c2c/chat/markUserMessagesAsRead
Authentication USER_DATA / SIGNED
API Group C2C / Chat
Method POST
Response JSON

Overview

Unlike order-specific read acknowledgment, this endpoint acts globally across the user's entire C2C (P2P) trading portfolio. Calling this endpoint instantly marks every incoming chat message across all concurrent and historical orders as read.

Merchant helpdesks, bulk customer service dashboards, and automated trading consoles use this endpoint to execute "Mark All as Read" actions and clear global unread message counters in one single request.

01

Request Parameters

Header parameters accepted by the endpoint.

Header Type Required Description
clientType STRING Required Client Device Type initiating the request (e.g., WEB, APP, WEB_MOBILE).
x-gray-env STRING Optional Environment flag identifier used for internal gray/stage testing.
x-trace-id STRING Optional Custom client trace ID for request lifecycle tracking and debugging.
x-user-id STRING Optional Target user identifier for context validation.
i
Global Scope Acknowledgment

This request takes no body payload. It automatically identifies the authenticated user context and resets unread indicators across all active order chat threads simultaneously.

02

Request Example

Example POST request using cURL to clear all unread messages globally.

cURL BASH
curl -X POST \
'https://api.binance.com/sapi/v1/c2c/chat/markUserMessagesAsRead' \
-H 'clientType: WEB'
03

Response

Example response returned on successful global update.

RESPONSE 200 OK
{
    "code": "000000",
    "message": "success",
    "data": null,
    "success": true
}

Response Fields

Field Type Description
code STRING Standard Binance status code ("000000" indicates success).
message STRING Response execution feedback or status message.
data NULL / VOID Void return payload on successful acknowledgment.
success BOOLEAN Indicates overall request execution result.
04

How It Works

Workflow for global chat message read state synchronization.

01 Trigger Event User clicks "Mark All as Read" or launches management app.
02 Send POST Request Call /sapi/v1/c2c/chat/markUserMessagesAsRead with headers.
03 Global Reset Server marks all pending chat messages as read.
04 Update UI Badges Global notification bells and badge counters reset to 0.

Common Use Cases

"Mark All as Read" Action

Power the global batch action button in merchant chat sidebars to dismiss stale notifications across multiple orders at once.

Session Initialization

Clear obsolete unread indicators when operators sign in to start a new shift on high-volume P2P trading desks.

Automated Queue Management

Prevent notification badge spam on automated accounts processing hundreds of high-frequency micro-orders daily.



💬
Telegram WhatsApp