Rest API
Last updated
Last updated
Before making a call to the Nami API, you need to generate a signature using your API secret. The signature ensures the integrity and authenticity of your request. Follow the steps below to generate the signature in JavaScript:
Add Timestamp: Generate a timestamp to include in your request parameters.
Prepare the Query String: Convert the parameters object to a query string.
Generate the Signature: Use the CryptoJS library or any other library to generate an HMAC SHA-256 signature using your query string and API secret.
Set the Signature in Environment Variables:
Dive into the specifics of each API endpoint by checking out our complete documentation.
If you receive an error, please check the table below to understand the error code and its meaning