DA4OWYwZmYzNyJdLCJ0ZW5hbnRJZCI6IjViNmNmZGZjNDMwOTkwMDA4OWYwZ-
mYzMCIsImV4cCI6MTU2NjU0Mzk3OCwidXNlcm5hbWUiOiJkZXZuZXR1c2VyIn0.
Qv6vU6d1tqFGx9GETj6SlDa8Ts6uJNk9624onLSNSnU"}
Next, you can obtain an authorization token by using
Postman. Make sure you select POST as the verb for the
authorization API call and the endpoint
https://sandboxdnac2.cisco.com/dna/system/api/v1/au
th/token. This is a POST call because you are creating
new data in the system—in this case, a new authorization
token. Under the Authorization tab, select Basic Auth as
the type of authorization, and in the Username and
Password fields, make sure you have the correct
credentials (devnetuser and Cisco123!). Since you have
selected basic auth as the authorization type, Postman
does the base-64 encoding for you automatically. All you
need to do is click Send, and the authorization API call is
sent to the specified URL. If the call is successfully
completed, the status code should be 200 OK, and the
body of the response should contain the JSON-formatted
token key and the corresponding value. Figure 8-6 shows
the Postman client interface with the information needed
to successfully authenticate to the always-on Cisco
DevNet DNA Center Sandbox.
Figure 8-6 Authenticating to Cisco DNA Center over
the REST API