Trello API - Get Organization's Boards with ID

Hugo picture Hugo · Feb 28, 2012 · Viewed 9.9k times · Source

I have been working with the Trello API (pretty neat, btw), but I can't simply found why I can't get the list of boards of an organization. The documentation says that I have to make a call in the form of:

GET https://api.trello.com/1/organizations/myorganization/boards?key=<my_app_key>

But I keep getting an empty array as response. I am member of the organization that I want the boards from, but still, I don't see any boards.

If I try doing this but through the members (I can get my membership's boards), I get only a board that I created.

Thanks in advance for you comments!

Regards,

Answer

Daniel LeCheminant picture Daniel LeCheminant · Feb 28, 2012

Unless all of the boards are public, you will need to provide both an application key and a token authorizing you to see the boards in the organization.

The application key is used only to let Trello know which application is making the request; it doesn’t tell Trello who the request is being made on behalf of. For example, if you’re using your own application key, you still need to generate a token to be able to access any of your private boards.

The "Getting Started" guide includes a section on Getting a Token from a User