Skip to main content

Use the JuggleIM REST API from your application backend to manage users, groups, conversations, and messages. The following sections describe request formats, authentication, and individual endpoints.

Requests are authenticated using 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})