Learn how to query monday board views using the platform API
monday.com board views allow you to visualize your board data differently. The API can provide you with records of all views added to a board, aside from dashboard views.
Queries
Querying views
will return a collection of board views from a specific board. This method accepts various arguments and returns an array.
You can only query views
by nesting it within a boards
query, so it can't be used at the root.
query {
boards (ids: 1234567890) {
views {
type
settings_str
view_specific_data_str
name
id
}
}
}
let query = 'query { boards (ids: 1234567890) { views { id name type } } }';
fetch ("https://api.monday.com/v2", {
method: 'post',
headers: {
'Content-Type': 'application/json',
'Authorization' : 'YOUR_API_KEY_HERE'
},
body: JSON.stringify({
'query' : query
})
})
.then(res => res.json())
.then(res => console.log(JSON.stringify(res, null, 2)));
Arguments
You can use the following argument(s) to reduce the number of results returned in your views
query.
Argument | Description |
---|---|
ids [ID!] | The specific board IDs to return views for. |
type String | The specific type of views to return. |
Fields
You can use the following field(s) to specify what information your views
query will return.
Field | Description |
---|---|
id ID! | The view's unique identifier. |
name String! | The view's name. |
settings_str String! | The view's settings. |
type String! | The view's type. |
view_specific_data_str String! | Specific board view data (only supported for forms). |
Join our developer community!
We've created a community specifically for our devs where you can search through previous topics to find solutions, ask new questions, hear about new features and updates, and learn tips and tricks from other devs. Come join in on the fun! 😎