Center platform might change in future versions of the
software, it is always best to start exploring the API
documentation for any Cisco product at
https://developer.cisco.com/docs/dna-center/api/1-3-0-
x/.
In Cisco DNA Center version 1.3, the REST API is not
enabled by default. Therefore, you need to log in to DNA
Center with a super-admin role account, navigate to
Platform > Manage > Bundles, and enable the DNA
Center REST API bundle. The status of the bundle
should be active, as shown in Figure 8-5.
Figure 8-5 Cisco DNA Center Platform Interface
For this section, you can use the always-on DevNet
Sandbox for Cisco DNA Center at
https://sandboxdnac2.cisco.com. The username for this
sandbox is devnetuser, and the password is Cisco123!.
You need to get authorized to the API and get the token
that you will use for all subsequent API calls. The Cisco
DNA Center platform API authorization is based on basic
auth. Basic auth, as you learned in Chapter 7, is an
authorization type that requires a username and
password to access an API endpoint. In the case of Cisco
DNA Center, the username and password mentioned
previously are base-64 encoded and then transmitted to
the API service in the Authorization header. The are
many online services that can do both encoding and
decoding of base-64 data for you, or as a fun challenge
you can look up how to do it manually. The username