Why am I getting authorization error while testing the APIs?

To access the OAuth2 secured APIs, you must have valid access token generated by calling ‘/authorize’ and ‘/token’ API. Follow the link for more details on creation of access token.