Get all board with state != "active" with api v2

Hello,
with the v2 API in can’t read boards with state != “active”
How can i check if a board is archived or deleted ?
Thanks

Hey @Geoffrey ,
you can query boards where the state is active, archived, deleted or all.
If you want to know when the board is archived or deleted you can use the state field of the board.

query{
  boards(state: all){
    id
    name
    state
  }
}
1 Like

Hello,
It’s work !

I did not read the documentation well, it was written :
“The state of the board (all / active / archived / deleted), the default is active.”

Sorry for the mistake.

Thanks :wink:

2 Likes