Unable to get anything via REST API - The access token has expired

Unable to get anything via REST API - The access token has expired

Unable to get anything via REST API - The access token has expired
Unable to get anything via REST API - The access token has expired
3 hours ago
Tags: #API
Hardware Version:
Firmware Version: 6.2.0.12

hi all,

 

trying now to play with the Controller REST API - and I can't get any information due to "expired" token:

 

  1. I log in via https://controller/openapi/authorize/token?grant_type=client_credentials
    Result: 0, "Open API Get Access Token successfully", returned are the token and refresh token
  2. trying to get list of sites via https://controller/openapi/v1/$sOmadacId/sites?page=1&pageSize=10"
    Result: -44112, "The access token has expired. Please re-initiate the refreshToken process to obtain the access token."
  3. trying to refresh the token via https://controller/openapi/authorize/token?&grant_type=refresh_token"
    Result: 0, "Open API Get Access Token successfully", returned token and refresh token are the same as presious ones (at initial login)
  4. trying to get list of sites again via https://controller/openapi/v1/$sOmadacId/sites?page=1&pageSize=10"
    Result again: -44112, "The access token has expired. Please re-initiate the refreshToken process to obtain the access token."

 

what do I wrongly? what have I missed?

 

/BR ZoloNN ----------------------------------------------------------------------- Omada 2x ER605(UN) v2.0 + SG2008P(UN) V3.20 + SG2218 V1.20 + 2x SG2008 V4.20 + 3x EAP615-Wall(EU) V1.0 CET (GMT+1)
  0      
  0      
#1
Options