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
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
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
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.