Cisco DNA Center API Unauthorized
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2018 08:18 AM - edited 03-08-2019 05:28 PM
Hi,
I'm trying to get a token from DNA C API, I'm using the following call:
https://myIP/dna/system/api/v1/auth/token
in the header I have:
Authorization Basic myencodedValue (this is auto-generated by postman)
Content-Type application/json
There answer is always:
{
"message": "Unauthorized"
}
but the same user/password allows me to to connect to the Web UI and the dedicated role is SUPER-ADMIN-ROLE.
I don't know what is wrong here, do I need an extra config in DNA C.
Thanks,
- Labels:
-
Cisco DNA Center
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2018 08:27 AM
Take a look at my reply at:
If you are using the POSTMAN NATIVE APP for OSX or Windows & upgraded to the latest release, API requests to the DNAC may fail with "401 Unauthorized". The issue is under investigation but as suggested use either RESTLET or the POSTMAN CHROME browser app for REST API calls to the DNAC. Issue listed in attached email thread.
Use RESTLET Client and the old & new token URLs will work:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2018 04:44 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2018 09:17 AM
Wonder if you are using 1.2.5 ?
It's a bug for this in 1.2.5 but fixed in 1.2.6
Use the old path of POST /api/system/v1/auth/token still work in 1.2.5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2018 04:45 AM
