I am in no way experienced in the Meraki API.
However, I've found this.
You can check if vlans are enabled by using this endpoint;
If that returns true, then go ahead using your getvlans()-call
If false, you can maybe you can use
and then return for vlan 1 or 0? I'm not sure if this would work...
Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution 🙂
All code is provided as is. Responsibility for Code execution is solely your own.