- 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:
- 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.
![MA_2-1696592577255.png MA_2-1696592577255.png](/t5/image/serverpage/image-id/9184i92BBA21650069B6B/image-size/large/is-moderation-mode/true?v=v2&px=999)
The response should be 200 ok and provides tenantId and jwt information as shown below.
![MA_6-1696592620735.png MA_6-1696592620735.png](/t5/image/serverpage/image-id/9186i44036AB8CED94B12/image-size/large/is-moderation-mode/true?v=v2&px=999)
Now Subsequent API calls must include JWT obtained as the Bearer token authorization.
Testing an API call:
- 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.
![p2.PNG p2.PNG](/t5/image/serverpage/image-id/9187iDBE781E76254D341/image-size/large/is-moderation-mode/true?v=v2&px=999)
The response should be 200 ok and we can see the venue information as shown in below screenshot:
![MA_0-1696595706762.png MA_0-1696595706762.png](/t5/image/serverpage/image-id/9189i6555AB8D122F752C/image-size/large/is-moderation-mode/true?v=v2&px=999)
References: https://docs.ruckus.cloud/api/