How to make an API call to Ruckus One
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2023 05:52 AM - edited 03-02-2024 12:51 AM
- Ruckus One uses JSON Web Tokens (JWT) to secure all endpoints.
- POST method is used to obtain a jwt.
- The API response to POST call includes tenantId and token.
- Token is valid for 60 minutes.
POSTMAN:
- Postman is the tool used in this example to make an API call.
- API host URL will vary depending on Cloud/Ruckus One Region.
- Asia: https://api.asia.ruckus.cloud
- Europe: https://api.eu.ruckus.cloud
- North America: https://api.ruckus.cloud
- Select the method as POST.
- Enter the API host url for your region.
- In the Body field- select raw and enter the payload.
- Select format as JSON.
- Click on Send button.
The response should be 200 ok and provides tenantId and jwt information as shown below.
Now Subsequent API calls must include JWT obtained as the Bearer token authorization.
Testing an API call:
- We are trying to retrieve venue details using an API call in below example.
- The required API can be found here: https://docs.ruckus.cloud/api/
- Enter the url as “https://api.eu.ruckus.cloud/api/tenant/{tenantId}/venue”
- Under Body select none.
- Change method to GET.
- Select Authorization type as Bearer token and Paste the JWT token obtained in previous API Call.
The response should be 200 ok and we can see the venue information as shown in below screenshot:
References: https://docs.ruckus.cloud/api/
Labels:
- Labels:
-
API
-
Cloud
-
RUCKUS Self-Help
0 REPLIES 0

