<?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 How to make an API call to Ruckus One in RUCKUS Self-Help</title>
    <link>https://community.ruckuswireless.com/t5/RUCKUS-Self-Help/How-to-make-an-API-call-to-Ruckus-One/m-p/69358#M243</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Ruckus One uses JSON Web Tokens (JWT) to secure all endpoints.&lt;/LI&gt;&lt;LI&gt;POST method is used to obtain a jwt.&lt;/LI&gt;&lt;LI&gt;The API response to POST call includes tenantId and token.&lt;/LI&gt;&lt;LI&gt;Token is valid for 60 minutes.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;POSTMAN:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Postman is the tool used in this example to make an API call.&lt;/LI&gt;&lt;LI&gt;API host URL will vary depending on Cloud/Ruckus One Region.&lt;/LI&gt;&lt;LI&gt;Asia: &lt;A href="https://api.asia.ruckus.cloud" target="_blank" rel="noopener"&gt;https://api.asia.ruckus.cloud&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Europe: &lt;A href="https://api.eu.ruckus.cloud" target="_blank" rel="noopener"&gt;https://api.eu.ruckus.cloud&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;North America: &lt;A href="https://api.ruckus.cloud" target="_blank" rel="noopener"&gt;https://api.ruckus.cloud&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select the method as POST.&lt;/LI&gt;&lt;LI&gt;Enter the API host url for your region.&lt;/LI&gt;&lt;LI&gt;In the &lt;STRONG&gt;Body&lt;/STRONG&gt; field- select &lt;STRONG&gt;raw&lt;/STRONG&gt; and enter the payload.&lt;/LI&gt;&lt;LI&gt;Select format as JSON.&lt;/LI&gt;&lt;LI&gt;Click on Send button.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MA_2-1696592577255.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/9184i92BBA21650069B6B/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="MA_2-1696592577255.png" alt="MA_2-1696592577255.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The response should be 200 ok and provides &lt;STRONG&gt;tenantId&lt;/STRONG&gt; and &lt;STRONG&gt;jwt&lt;/STRONG&gt; information as shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MA_6-1696592620735.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/9186i44036AB8CED94B12/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="MA_6-1696592620735.png" alt="MA_6-1696592620735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now Subsequent API calls must include JWT obtained as the Bearer token authorization.&lt;/P&gt;&lt;H2&gt;Testing an API call:&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;We are trying to retrieve venue details using an API call in below example.&lt;/LI&gt;&lt;LI&gt;The required API can be found here: &lt;A href="https://docs.ruckus.cloud/api/" target="_blank" rel="noopener"&gt;https://docs.ruckus.cloud/api/&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;OL&gt;&lt;LI&gt;Enter the url as “&lt;EM&gt;&lt;A href="https://api.eu.ruckus.cloud/api/tenant/{tenantId}/venue”" target="_blank" rel="noopener"&gt;https://api.eu.ruckus.cloud/api/tenant/{tenantId}/venue”&lt;/A&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Under &lt;STRONG&gt;Body&lt;/STRONG&gt; select &lt;STRONG&gt;none&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Change method to &lt;STRONG&gt;GET&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Select &lt;STRONG&gt;Authorization&lt;/STRONG&gt; type as &lt;STRONG&gt;Bearer token &lt;/STRONG&gt;and Paste the JWT token obtained in previous API Call.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/9187iDBE781E76254D341/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="p2.PNG" alt="p2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response should be 200 ok and we can see the venue information as shown in below screenshot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MA_0-1696595706762.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/9189i6555AB8D122F752C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="MA_0-1696595706762.png" alt="MA_0-1696595706762.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;References: &lt;A href="https://docs.ruckus.cloud/api/" target="_blank" rel="noopener"&gt;https://docs.ruckus.cloud/api/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Mar 2024 08:51:01 GMT</pubDate>
    <dc:creator>MA</dc:creator>
    <dc:date>2024-03-02T08:51:01Z</dc:date>
    <item>
      <title>How to make an API call to Ruckus One</title>
      <link>https://community.ruckuswireless.com/t5/RUCKUS-Self-Help/How-to-make-an-API-call-to-Ruckus-One/m-p/69358#M243</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Ruckus One uses JSON Web Tokens (JWT) to secure all endpoints.&lt;/LI&gt;&lt;LI&gt;POST method is used to obtain a jwt.&lt;/LI&gt;&lt;LI&gt;The API response to POST call includes tenantId and token.&lt;/LI&gt;&lt;LI&gt;Token is valid for 60 minutes.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;POSTMAN:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Postman is the tool used in this example to make an API call.&lt;/LI&gt;&lt;LI&gt;API host URL will vary depending on Cloud/Ruckus One Region.&lt;/LI&gt;&lt;LI&gt;Asia: &lt;A href="https://api.asia.ruckus.cloud" target="_blank" rel="noopener"&gt;https://api.asia.ruckus.cloud&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Europe: &lt;A href="https://api.eu.ruckus.cloud" target="_blank" rel="noopener"&gt;https://api.eu.ruckus.cloud&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;North America: &lt;A href="https://api.ruckus.cloud" target="_blank" rel="noopener"&gt;https://api.ruckus.cloud&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select the method as POST.&lt;/LI&gt;&lt;LI&gt;Enter the API host url for your region.&lt;/LI&gt;&lt;LI&gt;In the &lt;STRONG&gt;Body&lt;/STRONG&gt; field- select &lt;STRONG&gt;raw&lt;/STRONG&gt; and enter the payload.&lt;/LI&gt;&lt;LI&gt;Select format as JSON.&lt;/LI&gt;&lt;LI&gt;Click on Send button.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MA_2-1696592577255.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/9184i92BBA21650069B6B/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="MA_2-1696592577255.png" alt="MA_2-1696592577255.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The response should be 200 ok and provides &lt;STRONG&gt;tenantId&lt;/STRONG&gt; and &lt;STRONG&gt;jwt&lt;/STRONG&gt; information as shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MA_6-1696592620735.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/9186i44036AB8CED94B12/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="MA_6-1696592620735.png" alt="MA_6-1696592620735.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now Subsequent API calls must include JWT obtained as the Bearer token authorization.&lt;/P&gt;&lt;H2&gt;Testing an API call:&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;We are trying to retrieve venue details using an API call in below example.&lt;/LI&gt;&lt;LI&gt;The required API can be found here: &lt;A href="https://docs.ruckus.cloud/api/" target="_blank" rel="noopener"&gt;https://docs.ruckus.cloud/api/&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;OL&gt;&lt;LI&gt;Enter the url as “&lt;EM&gt;&lt;A href="https://api.eu.ruckus.cloud/api/tenant/{tenantId}/venue”" target="_blank" rel="noopener"&gt;https://api.eu.ruckus.cloud/api/tenant/{tenantId}/venue”&lt;/A&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Under &lt;STRONG&gt;Body&lt;/STRONG&gt; select &lt;STRONG&gt;none&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Change method to &lt;STRONG&gt;GET&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Select &lt;STRONG&gt;Authorization&lt;/STRONG&gt; type as &lt;STRONG&gt;Bearer token &lt;/STRONG&gt;and Paste the JWT token obtained in previous API Call.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/9187iDBE781E76254D341/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="p2.PNG" alt="p2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response should be 200 ok and we can see the venue information as shown in below screenshot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MA_0-1696595706762.png" style="width: 999px;"&gt;&lt;img src="https://community.ruckuswireless.com/t5/image/serverpage/image-id/9189i6555AB8D122F752C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="MA_0-1696595706762.png" alt="MA_0-1696595706762.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;References: &lt;A href="https://docs.ruckus.cloud/api/" target="_blank" rel="noopener"&gt;https://docs.ruckus.cloud/api/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 08:51:01 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/RUCKUS-Self-Help/How-to-make-an-API-call-to-Ruckus-One/m-p/69358#M243</guid>
      <dc:creator>MA</dc:creator>
      <dc:date>2024-03-02T08:51:01Z</dc:date>
    </item>
  </channel>
</rss>

