Been there! The `json=` vs `data=` thing trips everyone up. If you’re sending JSON, `json=` automatically sets the `Content-Type` to `application/json`, so you might not even need the headers.
For debugging, I like to log the whole request with `print(response.request.body)` to see what’s actually being sent.
For debugging, I like to log the whole request with `print(response.request.body)` to see what’s actually being sent.
