API authentication takes place by requesting a bearer token from the WMDA Azure AD. This is performed by performing an API call to the Microsoft AD. There are client libraries available for many different platforms. You can find those here:
https://docs.microsoft.com/en-us/azure/active-directory/develop/reference-v2-libraries
A CURL command would be:
curl --location --request POST 'https://login.microsoftonline.com/76cbbfce-9ac3-4ee4-b6b4-8a53922a2172/oauth2/token' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'grant_type=client_credentials' \ --data-urlencode 'client_id=<YOURCLIENTID>' \ --data-urlencode 'client_secret=<YOURCLIENTSECRET>' \ --data-urlencode 'resource=<RESOURCE_ID_FOR_APPLICATION_YOU_WANT_TO_ACCESS>' |
This bearer token can then be used to authenticate future requests to the WMDA API.