Skip to main content
Answered

Cant access the recent boards using api

  • October 23, 2024
  • 6 replies
  • 34 views

Forum|alt.badge.img+1

I created a board using the api (https://api.miro.com/v2/boards). I can see the boards in my list of dashboards (https://miro.com/app/dashboard/). However, when I try to access the dashboards using the API (https://api.miro.com/v2/boards), the recent-most board seems to be missing. Even in the api reference playground (https://developers.miro.com/reference/get-boards), when I try to make the get request, it only returns 2 boards, while have 3 (as visible in https://miro.com/app/dashboard/) This has been happening for quite some time now. Please help!

Best answer by William Bishop

Hey @Rahul Poddar,

If you’re on a free plan, you can get the team_id from the UI in your browser URL. First, navigate to your team profile/settings. Then, note the ID that is in this part of the URL—this is the team ID:

 

If you add the team_id query param with this value for your team, this should return all boards. Can you let me know if this works for you?

Thanks!

View original
Was it helpful?

6 replies

Horea Porutiu
Mironeer
Forum|alt.badge.img+1

Hi @Rahul Poddar 

Note that you only get results instantaneously when you filter by the team_idproject_id

Are you using those filters by any chance? If not, how long are you waiting between creating the board and calling the API? 


Forum|alt.badge.img+1
  • Author
  • Beginner
  • 3 replies
  • October 23, 2024

At least an hour @Horea Porutiu. In the past as well, I have had to wait for a whole day to be able to access all my boards through the API, which otherwise were visible instantaneously in my dashboards url


Forum|alt.badge.img+1
  • Author
  • Beginner
  • 3 replies
  • October 23, 2024

BTW, can you point me to the resource to get these ids (team_id and project_id)? I cant seem to find myself. I am on my free account.


William Bishop
Mironeer
Forum|alt.badge.img+4

Hey @Rahul Poddar,

If you’re on a free plan, you can get the team_id from the UI in your browser URL. First, navigate to your team profile/settings. Then, note the ID that is in this part of the URL—this is the team ID:

 

If you add the team_id query param with this value for your team, this should return all boards. Can you let me know if this works for you?

Thanks!


Forum|alt.badge.img+1
  • Author
  • Beginner
  • 3 replies
  • October 24, 2024

Yes this work, thanks!

A follow up question - is it possible to get the team_id during the OAuth process itself?


William Bishop
Mironeer
Forum|alt.badge.img+4

Glad to hear that, @Rahul Poddar.

And yes, you can retrieve the value for Team ID during the OAuth process. It’s accessible via the GET Access Token Context endpoint:
https://developers.miro.com/reference/get-access-token-context

I hope it helps!


Reply