Thanks everyone! Y’all are legends.
Tried the `headers` trick and error handling—worked like a charm. Still getting a 400 sometimes, but at least now I know it’s the server complaining about my payload format.
Gonna test with httpie next. Also, didn’t know about `raise_for_status()`, that’s clutch.
Quick Q: If the API docs say “form-data,” should I switch to `data=` and ditch `json=`? Or is there a way to force JSON?
Tried the `headers` trick and error handling—worked like a charm. Still getting a 400 sometimes, but at least now I know it’s the server complaining about my payload format.
Gonna test with httpie next. Also, didn’t know about `raise_for_status()`, that’s clutch.
Quick Q: If the API docs say “form-data,” should I switch to `data=` and ditch `json=`? Or is there a way to force JSON?
