Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trello API for board lists always returns 404

derekantrican April 11, 2025 edited

I'm writing a script using the Trello API and I'm trying to get the lists on a board. I'm following https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-lists-get . However, no matter what I try, I always seem to get a 404 error. I've confirmed that the board exists and that I'm using the correct id, key, & token (they're working for other API endpoints). Here's my (sanitized) URL:

GET https://api.trello.com/1/boards/67f93b73afca40283d3d474c/lists&key=KEY&token=TOKEN

qF0panfodw.png

As far as I can see, I think I'm following the formatting in the API docs correctly

Edit: I'm also seeing the same for getting the labels on a board (/1/boards/[id]/labels) https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-labels-get

Edit: for what it's worth, I've also tried this on multiple browsers, curl, on multiple devices, and on multiple networks with the same result

2 answers

1 accepted

0 votes
Answer accepted
derekantrican April 12, 2025

Ok, I FINALLY figured out what I was missing - I was missing a ? to start the query part of the URL. So instead of /boards/[id]/lists?key=.... I was using /boards/[id]/lists&key=.... Very easy to miss and hard to see the difference.

 

I wish this error had given me a 400 (bad request) or some sort of other more helpful error, but I doubt that suggestion will get to anyone in Trello/Atlassian

0 votes
Rasmus Wulff Jensen
Community Champion
April 11, 2025

Just tested, and it works totally fine for me (using my own board-id), so the format of you GET URL is correct.

2 things to try:

  1. Try the URL with your board-id and key/token in a browser instead of a script to rule out the script being wrong
  2. Double-check that "67f93b73afca40283d3d474c" is indeed a board-id and not something else (a list-id or card-id). The easiest way is to get this powerup: https://trello.com/power-ups/646cc3622176aebf713bb7f8 and grab the ID on the board

11 21_43_50.png

derekantrican April 11, 2025

Yeah, I also tried this in the browser with the same result. I did also confirm the id is the board id by exporting the board to json and looking at the info there. I quickly tested with the powerup you linked and it shows the same id:

kzOE2IKEQP.png

derekantrican April 11, 2025

I just tested the url in the browser against another one of my board's ids (same key & token) and it also failed. So it's not specific to this board

derekantrican April 11, 2025

I also just went to https://trello.com/app-key and double-checked my key and generated a new token from the link on that page (of course, other API calls with the earlier key & token were working just fine before - just these board-specific ones were having issues) and I still hit the same issue.

Rasmus Wulff Jensen
Community Champion
April 11, 2025

Thats strange. What about get on all boards:

https://api.trello.com/1/boards 

Can that list the boards and is the specific board there?

 

Another secondary test you can try: Go to https://trellotools.azurewebsites.net/Reports and try to run the List Overview report (it use this specific api endpoint

derekantrican April 11, 2025

Yeah, trying to get all boards fails (both in the browser & in my script). However, in my script I'm creating a board (the same endpoint, but with a POST & additional url params) and that works fine.

May also be worth noting that "my script" is running in Google Apps Script so it's not using my network but Google's.

The List Overview report seems to work. So I guess it's just me then :(

derekantrican April 11, 2025 edited

I realized my script only calls GET for this one endpoint, so I decided to try other trello GET endpoints. Calling this one to get a specific card seems to keep giving me 400 errors (even though I just grabbed the id from the card): https://api.trello.com/1/cards/5ed6a6b94763b060ad31c682&key=KEY&token=TOKEN

TA10NzZjin.png

 

Rasmus Wulff Jensen
Community Champion
April 11, 2025

It for sure must be something with your environment, as if it was not whole Trello would be down.

Only things I can think of trying is:

  1. Try to analyse the network tab in your browser and see if the endpoint call is somehow manipulated (proxy, vpn or some security software)
  2. Try to manually enter the entire get URL of getting all boards in a browser (no copy/paste) to rule out any odd/invisible encoded chars in the raw request
  3. If you know C# Programming try this package https://www.nuget.org/packages/TrelloDotNet to do the calls
  4. Ask Trello Support (if you are a paid member)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events