Need help with a custom script.

Hello, I’m new to ERPNext and working on using a script to pull Json data from an API to auto fill address data when a zip code is entered. My script is done and I’d like to test it but I’m experiencing the following error.

Method Not Allowed

You are not permitted to access this resource. Login to access

Any insight would be great.

Check if your endpoint is public.
allow_guest=True lets anyone (even not logged in) to access it.
Make sure you’re calling the right URL.