We were recently getting the below error while trying to call Dynamics 365 Web API through Postman.
It turned out that we were using the incorrect Token.
To generate the correct token,
For OAuth 2.0 token endpoint (v1) Version 1
- We need to specify resource with Dynamics 365 URL.
For OAuth 2.0 token endpoint (v2) Version 2
- We need to specify scope with
Dynamics 365 URL followed by .default instead of a resource.
The correct token results in the successful call to the Web API
Hope it helps..