API info for 5.5.x
Has the API changed since 5.0.x? I'm using this info from mbentley and the API documentation from https://community.tp-link.com/en/business/forum/topic/253944?page=3 but I cant get any results from calls to device info. I can log in and get the token etc. I can also successfully query the alerts using this get request
curl -sk -X GET -b "/tmp/omada-cookies.txt" -H "Content-Type: application/json" -H "Csrf-Token: ${TOKEN}" "${OMADA_URL}/${CONTROLLER_ID}/api/v2/sites/Default/dashboard/alerts?token=${TOKEN}" | jq .
When I follow the documentation I see
Get the List of the Devices in One Site
Basic Information
Path: /{omadacId}/api/v2/sites/{siteId}/devices
Method: GET
curl -sk -X GET -b "/tmp/omada-cookies.txt" -H "Content-Type: application/json" -H "Csrf-Token: ${TOKEN}" "${OMADA_URL}/${CONTROLLER_ID}/api/v2/sites/Default/devices?token=${TOKEN}" | jq .
Gives me this error
{
"errorCode": -1005,
"msg": "Operation forbidden."
}