'How to call enterprise SAP Conversational AI(Chatbot) API with OAuth (Postman)

we are trying to call SAP Conversational AI(Chatbot) API with OAuth using postman but we are getting an error as Unauthorized

Pre-requisites

  1. Client ID.
  2. Client Secret.
  3. Access Token URL
  4. Developer Bot Token

We have used the above-mentioned details in Authorization details to get the access Token as below. Authorization Header Parameter

Once Access Token is generated, we have used it in the Headers section as below Header Parameters

When we send a GET call to usage metrics URL using this mentioned Header parameters and Authorizations we are getting a response as "Unauthorized". Requesting you to please help here. Thanks in advance.

We have tried to achieve this by referring below blogs:

  1. https://blogs.sap.com/2021/06/13/you-now-must-call-chatbot-apis-with-oauth-heres-how/
  2. https://developers.sap.com/tutorials/conversational-ai-api-oauth-postman.html


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source