@Andrei Toderean Dascalu Thanks for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this. Based on the above information, I understand that you are trying to send an email using REST API from postman and you are facing the issues. Correct me if my understanding wrong.
To reproduce this behavior, I have followed the same documentation steps and using post man I am able to send the email using email Send Rest API without any issues as shown below.
mainly that you should set a header called "x-ms-date" whereas the Postmain tutorial sets a header called "Date"
pm.request.headers.upsert({key:'Date', value: dateStr});
Regarding this query, you need to have hmac-sha256-signature
as Authorization header inorder to work with ACS using Rest API's. In which x-ms-date is one of the request parameters (which needs date) + along with Key in signature formation.
In the Pre-request script sample, they have declared it as Date and passing it as same while creating the signature as shown below.
Similarly, in this other example mentioned here they have declared it as data and while constructing the signature they have passed it x-ms-date.
In the above both examples, we are passing the request header names as different but for the Authorization signature you need to have date.
Hope this helps, let me know if you have any further questions on this.
Please accept as Yes if the answer is helpful so that it can help others in the community.