How to generate an HMAC SHA256 signature on make

Hi !
I’m new to Make and I need your help to unblock an obstacle for my project. THANKS !

I want to make an http request to a service (Binance) which provided me with an API key and a secret key. However, I get a 401 error when I use them raw in headers. From my research to better understand why, I understood that, in order to authenticate the request, it was necessary to generate an HMAC SHA256 signature from the secret key and the parameters of the same request. This signature will then be entered in the parameters of the same request.

In other words, you first need a pre-request. What I managed to do on Postman. How can I do this in my Make scenario?

I also notify that the Binance services that I am looking for are not available with the module offered by Make. Otherwise, I would have used it without problem.

Thank you for your help !

1 Like

Hi! Welcome to the community!

You’ll need to use a function to generate the encoded signature. You can read general help on using functions here, and specific help on the sha256() function here.

Also, you can request improvements to existing Apps in the Idea Exchange (if you lose that link, you can find it at the foot of the Make website).

3 Likes

THANKS DavidGurr_Make
Your answer helped me a lot. THANKS

2 Likes

Hey there @TONON_Degnon_Boris :wave:

So glad that @DavidGurr_Make’s answer helped you so much. :pray:

FYI: Could you mark his suggestion as a solution? This way we keep our community organized and neat for other users. Thank you :smiling_face:

1 Like