Just an FYI in case you come across the same thing.
I have found a bug that occurs when you try and send a file with the text of “Java” on the end of the file name.
If I send this filename I get the error you see below
https://legal.blah.com/blah/api/19/files/content?parentfolderid=44930&filename=Java.pdf
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
</body>
</html>
If send this, then it works just fine
https://legal.blah.com/blah/api/19/files/content?parentfolderid=44930&filename=Java2.pdf