In order to sign a policy, you will need to create a policy, above, and find your secret in the security section of the developer portal. Then, use HMAC-SHA256 to sign the policy.
We are trying to access https://www.filestackapi.com/api/file/KW9EJhYtS6y48Whm2S6D which is secured.
The policy that we want to apply:
Our secret, from the developer portal:
Calculate the HMAC-SHA256 and Base64 Encoded Policy
There are common libraries for calculating HMAC-SHA256 in a variety of languages. It is advisable to use a well tested and vetted library as opposed to writing your own. If you would prefer to use a simple hash like MD5 or SHA1, or other varients of HMAC instead, let us know and we can look into setting that up for you.
The signature is a hex encoded string with lowercase letters.
Someone from our team will get back to you shortly.