Authentication from a REST API Client
Cisco recommends that you use different accounts for interfacing with the API and the User Interface. Credentials cannot be used for both interfaces simultaneously, and will be logged out without warning if used for both.
The first time you connect to the REST API you may receive an error that the connection is not secure due to an invalid certificate. Add an exception in your browser to use the certificate and accept the connection.
With Token Based Authentication you obtain a token from the CDO tenant. You use this token to access an HTTP service for a limited time period without the need for the username and password with every request. In other words, to eliminate the need for authenticating with your username and password with each request, you replace user credentials with a uniquely generated access token.