• service@dingx.pro
  • Telegram: @dingxpro
  • Channel: @DingXOfficial
  • 展示端
  • 管理端
  • Address: No. 720, Yongfu Rd., Xitun Dist., Taichung City 407, Taiwan

DingXun IM System API Integration Overview

DingXun IM provides standard HTTPS REST APIs and a WebSocket real-time channel for contracted merchants and partners, so that instant messaging, groups, wallet, Business Circle and related capabilities can be integrated into your own systems. This document is a capability overview: the paths listed are illustrative only and do not include production domains, full parameters, or signature algorithms.

1. Overview

Available modules:

  • Accounts, friends, messages, conversations and groups
  • One-to-one audio and video call signaling
  • Wallet deposits, transfers, red packets and transactions
  • Business Circle, membership, check-in and invitations
  • Server-side event callbacks (Webhooks)

Key characteristics:

  • Protocol: HTTPS + JSON; real-time channel: WebSocket (WSS)
  • Style: RESTful, versioned paths (/v1)
  • Callers: Server-to-server (recommended); user-scoped APIs use Token authentication
  • Security: AppKey / AppSecret signatures, timestamp-based replay protection, IP allowlist, and rate limiting

Never embed the AppSecret in a client, mobile app, or front-end page. Server APIs must be called from the merchant's own business server.

2. Base URL

All REST requests are relative to the illustrative root below. {your-domain} is a placeholder for a dedicated or assigned access domain. The production domain is provided after contract signing.

https://api.{your-domain}/v1
wss://api.{your-domain}/v1/realtime

3. Authentication

The platform uses a dual authentication model.

Server-to-server

Each application is issued an AppKey and an AppSecret (store the secret on your server only). Requests carry the AppKey, a timestamp, a nonce and a signature. The signature is computed from the AppSecret and request elements; the exact algorithm is documented in the official reference. Timestamps prevent replay; requests outside the validity window are rejected.

User requests

A Token is issued after a successful sign-in and is required for user-scoped APIs such as messaging, friends and groups. Tokens expire and must be refreshed.

Other safeguards

  • Optional IP allowlist for server API callers.
  • Rate limits apply per application and endpoint; exceeding the limit returns 429.
  • All traffic is encrypted over HTTPS / WSS.

4. Request & Response

Request

  • Methods: GET, POST, PUT, DELETE
  • Request headers must include Content-Type: application/json, plus authentication-related fields (AppKey, Token, signature, and so on; field names follow the official documentation)
  • The request body is JSON; GET requests use query parameters
  • Encoding: UTF-8

Sample headers (field names are illustrative, not the final specification):

Content-Type: application/json
X-App-Key: {AppKey}
X-Timestamp: {unix_timestamp}
X-Nonce: {nonce}
X-Signature: {signature}
Authorization: Bearer {Token}

Response envelope

APIs return a consistent JSON envelope.

{
  "code": 0,
  "message": "OK",
  "data": {}
}
Field Type Description
code int Business code; 0 means success.
message string Human-readable message.
data object / array Payload; may be empty on failure.

Common Status Codes

code HTTP Description
0 200 Success
400 400 Bad request / invalid parameters
401 401 Unauthorized — invalid or expired Token or signature
403 403 Forbidden
404 404 Not found
429 429 Rate limited
500 500 Internal server error

Additional business error codes (for example insufficient balance or a duplicated request) are listed in the full documentation provided after contract signing. Rate limits are applied per AppKey and endpoint; quotas can be adjusted based on expected traffic.

5. API Endpoints

The paths below are placeholders that illustrate the available capabilities. They are not production URLs. Full paths, parameters and permission rules are provided after contract signing.

Module Method Endpoint Description
Account POST /v1/users/register Register a new user
Account POST /v1/users/login Sign in
Account POST /v1/users/guest Enter as a guest
Account POST /v1/users/logout Sign out
Account GET /v1/users/profile Get the user profile
Account PUT /v1/users/profile Update the user profile
Account GET /v1/users/qrcode Get the user QR code
Account GET /v1/users/search Search for users
Friends GET /v1/friends List friends
Friends POST /v1/friends/requests Send a friend request
Friends GET /v1/friends/requests List incoming and outgoing requests
Friends PUT /v1/friends/requests/{id} Accept or decline a request
Friends DELETE /v1/friends/{id} Remove a friend
Friends PUT /v1/friends/{id} Set a remark and tags
Friends GET /v1/friends/blocks List blocked users
Friends POST /v1/friends/blocks Block a user
Friends DELETE /v1/friends/blocks/{id} Unblock a user
Messages POST /v1/messages/send Send a message (text, image, voice, file, etc.)
Messages GET /v1/messages Retrieve message history
Messages POST /v1/messages/recall Recall a message
Messages POST /v1/messages/forward Forward or broadcast messages
Messages GET /v1/messages/search Search chat history
Messages POST /v1/messages/read Mark messages as read
Conversations GET /v1/conversations List conversations
Conversations PUT /v1/conversations/{id}/pin Pin a conversation
Conversations PUT /v1/conversations/{id}/mute Mute a conversation
Conversations DELETE /v1/conversations/{id} Delete a conversation
Groups POST /v1/groups Create a group
Groups GET /v1/groups/{id} Get the group profile
Groups PUT /v1/groups/{id} Update the group profile
Groups GET /v1/groups/{id}/qrcode Get the group QR code
Groups POST /v1/groups/{id}/join Request to join or join a group
Groups POST /v1/groups/{id}/leave Leave a group
Groups GET /v1/groups/{id}/members List group members
Groups POST /v1/groups/{id}/members Invite members
Groups DELETE /v1/groups/{id}/members/{uid} Remove a member
Groups PUT /v1/groups/{id}/roles Manage roles and permissions
Groups PUT /v1/groups/{id}/settings Update group rules and media settings
Groups POST /v1/groups/{id}/mute Mute a member
Groups PUT /v1/groups/{id}/owner Transfer group ownership
Groups DELETE /v1/groups/{id} Disband a group
Groups GET /v1/groups/{id}/announcements List or read announcements
A/V POST /v1/calls Start a one-to-one audio or video call
A/V PUT /v1/calls/{id} Answer, decline or hang up
A/V GET /v1/calls/{id} Get call status
Wallet GET /v1/wallet/balance Get the wallet balance
Wallet POST /v1/wallet/deposits Create a deposit order
Wallet GET /v1/wallet/deposits List deposit orders
Wallet POST /v1/wallet/transfers Transfer funds to a friend
Wallet POST /v1/wallet/red-packets Send a red packet
Wallet POST /v1/wallet/red-packets/{id}/claim Claim a red packet
Wallet GET /v1/wallet/transactions List transactions
Wallet POST /v1/wallet/withdrawals Request a withdrawal
Wallet POST /v1/wallet/bank-cards Bind a bank card
Wallet PUT /v1/wallet/payment-password Set or change the payment password
Wallet GET /v1/wallet/pay-code Payment or collection code
Circle GET /v1/circle/apps List Business Circle apps
Circle GET /v1/circle/apps/{id} Get app details
Circle POST /v1/circle/apps/{id}/favorite Favorite an app
Circle POST /v1/circle/agents Apply to become a Business Circle agent
Circle GET /v1/circle/agents/me Get my agent profile
Membership GET /v1/membership/plans List membership plans
Membership POST /v1/membership/subscriptions Subscribe to or renew a plan
Membership GET /v1/membership/status Get membership status
Membership POST /v1/rewards/check-in Daily check-in
Membership GET /v1/rewards/invites List invitations
Membership GET /v1/rewards/invite-code Get the invite code and QR code
Others GET /v1/exchange-rates Get exchange rates
Others POST /v1/reports Submit a report
Others GET /v1/reports List report status
Others POST /v1/support/sessions Start a support session

Real-time message delivery, typing indicators and call signaling are carried over the WebSocket channel and do not require REST polling.

6. Webhooks

Merchants may register a callback URL to receive signed HTTPS POST + JSON event notifications, with limited retries on failure.

Event Description
user.registered A user has registered
user.login A user has signed in
friend.request A friend request was sent
message.sent A message was sent
message.recalled A message was recalled
group.created A group was created
group.member_joined A member joined a group
call.started A call has started
wallet.deposit A deposit has been credited
wallet.transfer A transfer has completed
report.created A new report was submitted

Illustrative payload (fields are examples):

{
  "event": "message.sent",
  "timestamp": 1732170000,
  "data": {}
}

Callback URL configuration, retry policy and signature verification are provided in the official documentation.

7. Client SDKs

Client SDKs for Web, iOS, Android and H5 are available on request. Versions and integration details are confirmed after contract signing.

8. How to Get the Full Reference

Full API reference, parameters, signing algorithm and sandbox access are provided after contract signing.

To start integration, please contact the DingXun business team.

Hỗ trợ trực tuyến