Works on my organization.
RHB@wopr ~ % curl -L --request GET \
--url https://api.meraki.com/api/v1/organizations/XXX/switch/ports/connectivity/history/byDevice \
--header 'Authorization: Bearer XXXX' \
--header 'Accept: application/json'
{"items":[{"serial":"xxxx","ports":[{"id":1,"events":[{"endTs":"2024-06-11T07:58:36.000000Z","startTs":"2024-06-10T07:58:36.000000Z","status":"Optimal speed and connectivity"}]},{"id":2,"events":[{"endTs":"2024-06-11T07:58:36.000000Z","startTs":"2024-06-10T07:58:36.000000Z","status":"Disconnected"}]},{"id":3,"events":[{"endTs":"2024-06-11T07:58:36.000000Z","startTs":"2024-06-10T07:58:36.000000Z","status":"Disconnected"}]},{"id":4,"events":[{"endTs":"2024-06-11T07:58:36.000000Z","startTs":"2024-06-10T07:58:36.000000Z","status":"Disconnected"}]},{"id":5,"events":[{"endTs":"2024-06-11T07:58:36.000000Z","startTs":"2024-06-10T07:58:36.000000Z","status":"Speed below 100 Mbps"}]},{"id":6,"events":[{"endTs":"2024-06-11T07:58:36.000000Z","startTs":"2024-06-10T07:58:36.000000Z","status":"Disconnected"}]},{"id":7,"events":[{"endTs":"2024-06-11T07:58:36.000000Z","startTs":"2024-06-10T07:58:36.000000Z","status":"Optimal speed and connectivity"}]},{"id":8,"events":[{"endTs":"2024-06-11T07:58:36.000000Z","startTs":"2024-06-10T07:58:36.000000Z","status":"Speed below 100 Mbps"}]},{"id":9,"events":[{"endTs":"2024-06-11T07:58:36.000000Z","startTs":"2024-06-10T07:58:36.000000Z","status":"Disconnected"}]},{"id":10,"events":[{"endTs":"2024-06-11T07:58:36.000000Z","startTs":"2024-06-10T07:58:36.000000Z","status":"Disconnected"}]}],"network":{"id":"xxxx","name":"Home Office"}}}% RHB@wopr ~ %
LinkedIn :::
https://blog.rhbirkelund.dk/Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution
🙂All code examples are provided as is. Responsibility for Code execution lies solely your own.