Wow, thanks everyone! Swapping `data=` for `json=` fixed the 400 error. Didn’t realize the API expected JSON by default.
Follow-up: How do I handle timeouts in python requests post? Sometimes the API is slow, and my script hangs.
Also, big shoutout for the Postman tip—testing there first saved me hours!
Follow-up: How do I handle timeouts in python requests post? Sometimes the API is slow, and my script hangs.
Also, big shoutout for the Postman tip—testing there first saved me hours!
