‎How to Authenticate NodeJs Application for Advance Messaging service

Info Omniwish 20 Reputation points
2024-07-23T08:04:51.54+00:00

Hello,

While calling the advance messaging communication service api for sending WhatsApp messages

/messages/notifications:send?api-version=

getting error Request failed with status code 401 (unauthorized) from my NodeJS application.

For reference I am following below document

https://video2.skills-academy.com/en-us/azure/communication-services/quickstarts/advanced-messaging/whatsapp/get-started?tabs=visual-studio%2Cconnection-string&pivots=programming-language-javascript

For Authentication

https://video2.skills-academy.com/en-us/azure/communication-services/quickstarts/identity/service-principal?pivots=programming-language-javascript

Error code with Message

status: 401,

statusText: 'Unauthorized',

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
847 questions
0 comments No comments
{count} votes

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.