The BCS OI API is REST-based and authentication is done via a JSON Web TokenJWT, which you must add in the Authentication header for every request. To generate such a token, the application sends a request to the token endpoint. Registering an application with the CX Cloud API Gateway Portal generates all the details needed to successfully complete the authentication sequence.
JSON Web Token Generation
To obtain this JWT, the application must first make a request to the CX Cloud API GW token endpoint at https://api-cx.cisco.com/torii-auth/v1/token, providing the Client ID and Client Secret in the body.
Every API request will begin with the following Base URI where the region has to be populated with the value as provided during the Application registration.
http
Copyhttps://api-cx.cisco.com/{{region}}/bcs/v2/
Consuming the BCS Operational Insights API
When the JWT is generated, you can add the JWT in the Authentication header and consume the API.