Server API returns 401 signature error

Troubleshooting steps

First, check your signature algorithm. Refer to our Server SDK for different language versions.
Next, verify the parameters used to calculate the data signature (Signature). Parameter error is a common cause of this issue.

How to calculate the data signature (Signature)

Concatenate the following three strings in order (App Secret + Nonce + Timestamp) and perform an SHA1 hash calculation.

  • App Secret: Log in to the RC Developer Console to retrieve the App Secret corresponding to the App Key of your app.
  • Nonce: Random number
  • Timestamp: Timestamp

A common mistake is using the App Key instead of the App Secret mentioned above during the SHA1 calculation.