@LucasMendes : You gets an HTTP status code of 500 with the message "Internal Server Error" as a response for API calls. ... It means that the server encountered an unexpected condition that prevented it from fulfilling the request. This error is usually returned by the server when no other error code is suitable.
https://datatracker.ietf.org/doc/html/rfc7231#section-6.6
Check this tread if it helps, I would say its not client issue, Open a Support ticket with Meraki
https://community.meraki.com/t5/Developers-APIs/HTTP-500-and-502-Error-Page-not-found-while-using-AP...
Regards/Inder
Cisco IT Blogs awarded in 2020 & 2021
www.thenetworkdna.com