Skip to main content

The IM RESTful APIs provide IM capabilities for developers. Client and server APIs offer corresponding capabilities, allowing you to implement user management, group management, and more. See the RESTful API reference below for details.

For communication security, the APIs authenticate requests with shared custom headers.

Format

https://$api/$version/$command
ParameterNameDescription
$apiAPI domainAvailable after deploying the service in a private cloud.
$versionVersionAPI version.
$commandCommandSpecific API endpoint.
HeaderRequiredDescriptionNotes
appkeyYesUnique application identifier.
nonceYesAn 8-digit random number.
timestampYesTimestamp in milliseconds.
signatureYesSHA-1 signature. Calculate it strictly according to the signature rules.

Signature Calculation

To calculate a signature, obtain the appsecret for the corresponding appkey when you create the application.

// The order must be exactly appsecret -> nonce -> timestamp
signature = SHA1({appsecret}{nonce}{timestamp})