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

Developer 1 Reputation point
2021-05-19T10:19:21.687+00:00

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://video2.skills-academy.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
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
848 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,886 Reputation points
    2021-05-19T21:17:52.267+00:00

    Hi @Developer

    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
    [


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.