Authentication
Using your clientKey and clientSecret you can request for a token by calling the dedicated method (note: replace asterisks with your clientKey and clinetSecret)
curl
1
/curl -X POST \
2
https://explore.cloud4wi.com/v1/sts/login/services \
3
-H 'Cache-Control: no-cache' \
4
-H 'Content-Type: application/json' \
5
-H 'accept: application/json' \
6
-d '{
7
"clietKey":"ck-********-****-****-****-************",
8
"clientSecret":"********************************"
9
}'/curl -X POST \
Copied!
If the client key and secret are correct, then the API will return a JWT token.
1
{"token":[[JWT_TOKEN]]"}
Copied!
curl
1
curl -X GET \
2
'https://explore.cloud4wi.com/v2/customers/organizations/[[CID]]?sortBy=created_absolute&sortReverse=false' \
3
-H 'Authorization: Bearer [[JWT_TOKEN]]' \
4
-H 'Cache-Control: no-cache' \
5
-H 'accept: application/json'
Copied!
The JWT token expires after one day; to get a new one, restart and call again /v1/sts/login/services.

AuthN/AuthZ Flow

Endpoints

Use your client key and client secret to retrieve a valid authentication token
post
https://explore.cloud4wi.com/
/v1/sts/login/services
Get authetnication Token
You can manually revoke a token using the following end-point:
post
https://explore.cloud4wi.com/
/v1/sts/logout
Revoke authetnication Token