New Trello Program 401 Error

Hi. I am write code to add/remove cards from my Trello board. Currently I am writing a test program by following along with the API, but on my first GET request I am getting a 401 error. I made sure that my API key was correct and my token was correct, but I keep getting a 401 error on my request. I am using the sample url ‘https://api.trello.com/1/members/me/boards?key={yourKey}&token={yourToken}’ where I am replacing yourKey and yourToken with mine. Does anyone have any advice?

Hello @SamMulvey

The mostly likely cause for getting a 401 with such a basic request would be that you left the placeholder left and right brackets { } in the request path, wrapped around your Key and Token, thereby invalidating them.

Refer to this identical question over on the Community forum.