OpenAPI v2 returning Controller ID not exist on Omada Controller v5.15.24.18
Hello TP-Link Team,
I am trying to integrate my Omada Controller with Zabbix using the OpenAPI v2, but I always get the following error when querying sites or devices:
{"msg":"Controller ID not exist.","errorCode":-7131} 
Steps I did:
-  Created an OpenAPI client in Omada Controller (Client Credentials mode). 
-  Successfully obtained an access token via: /openapi/authorize/token?grant_type=client_credentials
-  Verified that token is valid (otherwise I would get -44116).
-  When calling sites or devices endpoints: GET /openapi/v2/sites?omadacId=<OmadaID_from_UI> GET /openapi/v2/sites/{siteId}/devices?omadacId=<OmadaID_from_UI>I always get -7131 Controller ID not exist.
What I tried:
-  Using the OmadaIDshown in the UI → fails.
-  Using the controllerIdseen in/api/info→ same error.
-  Even tried the serverKeyfound in logs → still-7131.
-  Tried passing omadacIdas query param, JSON body, andX-OmadacIdheader → all fail.
My Goal:
Monitor my EAP115 and ER605 devices (status, rxBytes, txBytes) via Zabbix using the Omada OpenAPI.
Question
-  Which value should be passed as omadacIdin the v2 API endpoints on Controller v5.15.24.18?
-  Is there a known issue with OpenAPI -7131on this version?
-  Is there a workaround or patch available? 




