question

Developer-7043 avatar image
0 Votes"
Developer-7043 asked Mohinisaini-7957 commented

From where to get Authorization token to access Azure Communication chat API's from Postman for development.

I am trying to implement Chats from Azure Communication Services for my Angular- .NET core web application.

I am in a position where I need to look at the working and response data for the APIs listed in https://docs.microsoft.com/en-us/rest/api/communication/chat/chatthread for my service account. I have tried valid Bearer token values, Primary and Secondary Key from Communication Service -> Tools -> Key in postman as value for Authorization header/ Bearer token, but failing to pass through the 401 Un-Authroize error when I try to use my custom link - https://communication-service-{sample}.azure. com/chat/threads/19%3AQnwDt0mcvlrLGZ_P0C6nI83e0m0H5XunFYiF_tyiySU1%40thread.v2/messages/1621417530371?api-version=2021-03-07.

Any lead on how it can be achieved would be really appreciated.

azure-communication-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Grmacjon-MSFT avatar image
0 Votes"
Grmacjon-MSFT answered Mohinisaini-7957 commented

Hi @Developer-7043

If you wish to call ACS' APIs manually using an access key, then you will need to sign the request. Signing the request is explained, in detail, in this tutorial: Sign and make requests with Postman

Hope that helps. Let us know if you have further questions

-Grace
[


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks, @Grmacjon-MSFT for replying with a solution. I did as guided in the link but still getting 401 UnAuthorized error in Postman.

0 Votes 0 ·