<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CSR API and POSTMAN in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/csr-api-and-postman/m-p/3537093#M9355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you set Authorization-&amp;gt;Type = No Auth  for the second request with the token?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Aug 2017 02:43:37 GMT</pubDate>
    <dc:creator>aradford</dc:creator>
    <dc:date>2017-08-25T02:43:37Z</dc:date>
    <item>
      <title>CSR API and POSTMAN</title>
      <link>https://community.cisco.com/t5/network-platform-api/csr-api-and-postman/m-p/3537092#M9354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm experimenting with the CSR and postman. I'm able to get a authentication token when running the following call on postman and when doing a curl command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -v -X POST &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://10.20.10.128:55443/api/v1/auth/token-services" rel="nofollow" target="_blank"&gt;https://10.20.10.128:55443/api/v1/auth/token-services&lt;/A&gt;&lt;SPAN&gt; -H "Accept:application/json" -u "cisco:cisco" -d ""&amp;nbsp; --insecure &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I'm trying to use that token to make basic GET calls, but for some reason POSTMAN keeps adding the basic token from the first POST API call and using the token that I received from the first API call. I'm getting the following error on POSTMAN and when trying to CURL the GET call. Here is the GET command I'm trying to CURL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -v -H "Accept:application/json" -H "X-Auth-Token:JMbdKRG+gv6kQt6FAwPbhJya8a7Fi6+eEhRrBUvt/to=" -H "content-type: application/json"&amp;nbsp; -X&amp;nbsp; GET &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://10.20.10.128:55443/api/v1/license/udi" rel="nofollow" target="_blank"&gt;https://10.20.10.128:55443/api/v1/license/udi&lt;/A&gt;&lt;SPAN&gt; --insecure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;title&amp;gt;401 Unauthorized&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h1&amp;gt;Unauthorized&amp;lt;/h1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;The server could not verify that you are authorized to access the URL requested.&amp;nbsp; You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;In case you are allowed to request the document, please check your user-id and password and try again.&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm definitely doing something wrong here and it's because the X-Auth token isn't in the header. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI I'm using the basic authentication with my first API call, the second call is where things are hairy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 19:08:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/csr-api-and-postman/m-p/3537092#M9354</guid>
      <dc:creator>fmartinez</dc:creator>
      <dc:date>2017-08-24T19:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: CSR API and POSTMAN</title>
      <link>https://community.cisco.com/t5/network-platform-api/csr-api-and-postman/m-p/3537093#M9355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you set Authorization-&amp;gt;Type = No Auth  for the second request with the token?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2017 02:43:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/csr-api-and-postman/m-p/3537093#M9355</guid>
      <dc:creator>aradford</dc:creator>
      <dc:date>2017-08-25T02:43:37Z</dc:date>
    </item>
  </channel>
</rss>

