Query all boards within a specific Workspace

Hi, Is it possible select a specific workspace?, example query that select all boards of all workspace and I only want a workspace specifly.
query{
boards(limit:1000, newest_first:true){
name,
id,
groups{
title
}
}
}

Thanks

Hey @Cesar
You can use ids to filter results to your preferred boards.

query {
    boards (ids: 157244624 157244624) {
        name
    }
}

Hi @Cesar :wave:

There’s not currently a way to query all boards within a specific workspace via the API. Nor is there currently a way to see which workspace a specific board lives in via the API.

With that said, I can absolutely see how that would be a valuable addition to the API. I’ve gone ahead and passed your feedback along to the team here for review and consideration as we continue to make improvements to the platform and, more specifically to our API :slight_smile:

-Scott

Hi @Scott-monday.com,
Any update on this? would be really helpful for our use of the api.
Thanks

1 Like

Hey @orengb :wave:

A very warm welcome to the community from the Monday.com team :slight_smile: I appreciate you looking this topic up over creating a new thread - awesome way to start your journey with us. I hope you enjoy your stay.

I’ll double-check this with the team and get back to you with a definitive answer as soon as I can :slight_smile: Thanks for taking the time to find out more about the API.

-Alex

@orengb

Thank you for your patience!

So I’ve discussed this in further detail with the team and they’ve confirmed that currently, it is not possible to query boards within a specific workspace just yet. That said, you can query all boards within your account, fetch the workspace ID that they are placed in, and then filter those out in your application’s code:

Do you think that could work in the meantime as we make further improvements?

-Alex

1 Like

A very cool addition to have! Thanks

1 Like