When you're onboarded, Zamp provides you with an API Key, and Secret. Please keep in mind that it's essential to maintain the security of these keys to ensure safety of your funds. Zamp also supports IP Whitelisting of your servers for additional security. To authenticate your requests, you need to add a Zamp Signature to the header of each request.
Below, you'll find a JavaScript code snippet that demonstrates how to create this signature:
const sha_message = CryptoJS.SHA256(`${ZAMP_API_KEY}:${ZAMP_SECRET}`);
const x_zamp_signature = CryptoJS.enc.Base64.stringify(sha_message);We want to emphasize the importance of safeguarding your secret key.
Keep in mind that both the secret key and the API Key will vary across different environments.
If you have any questions or need further assistance, please don't hesitate to reach out. We're here to help!