If you are trying to call your custom Web API instead of the Graph API, then when requesting the /token
endpoint you should change the value of scope to api://APP_ID
, which will return the Web API access token.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.