Skip to main content
POST

Overview

Search for a single message by message ID, suitable for scenarios where you need to retrieve specific message details.

Request Body

Required Parameters

message_id
integer
required
Message ID

Response Fields

message_id
integer
required
Server-generated message ID
message_seq
integer
required
Message sequence number
client_msg_no
string
required
Client message number
from_uid
string
required
Sender user ID
channel_id
string
required
Channel ID
channel_type
integer
required
Channel type
  • 1 - Personal channel
  • 2 - Group channel
timestamp
integer
required
Message timestamp (Unix timestamp)
payload
string
required
Base64 encoded message content

Status Codes

Use Cases

Message Detail Retrieval

Get Specific Message Details:

Message Verification

Verify Message Existence and Integrity:

Message Reference Resolution

Resolve Message References:

Message Audit and Logging

Audit Message Access:

Message Cache with Single Lookup

Efficient Single Message Caching:

Best Practices

  1. Error Handling: Always handle 404 responses when message might not exist
  2. Caching: Cache frequently accessed messages to reduce API calls
  3. Validation: Validate message ID format before making requests
  4. Security: Implement proper access controls for message retrieval
  5. Audit Trail: Log message access for security and compliance
  6. Performance: Use batch search for multiple messages instead of individual calls
  7. Content Decoding: Remember to decode base64 payload content for display