This question is probably best suited to our developer forum where there are a lot of API experts as well as some members of the Trello team who can help you with API-related questions. Here is where you can find the forum: https://community.developer.atlassian.com/c/trello.
I'd recommend posting your question there along with a copy of the errors/headers that you're receiving back.
Hello Community! My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events