A 307 status code is temporary redirect. From my understanding, this usually occurs when requesting http (non-encrypted) but the target API requires https (encrypted) traffic. In other cases it could be caused by a missing slash at the end of the URL.
As for the 401, that is an authentication or authorization related error, validate that you are using the correct credentials and authentication type for the API.
The 307 response indicates that the server tells the client to redo the request, but to the location specified in the Location header.
On the new URL the 401 response indicates that the request did not include the required credentials.