Thanks everyone! Turns out the API was expecting POST but I was sending GET (facepalm).
Also, the trailing slash was the issue—removed it and boom, works now.
Gonna test with Postman next time before coding blindly. Appreciate the help! 🙌
Also, the trailing slash was the issue—removed it and boom, works now.
Gonna test with Postman next time before coding blindly. Appreciate the help! 🙌
