Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to retrieve all archived cards on a board through the Trello API?

Tags:

rest

trello

The following question was asked on the Trello API board.

I thought I'd add it here.

How can I obtain all archived cards on a board?

like image 659
gregsdennis Avatar asked May 01 '13 00:05

gregsdennis


1 Answers

You can achieve this through use of the [filter] option on the boards endpoint:

/1/boards/[boardId]/cards?filter=closed&key=[your appKey]

It's the closed=true part that does the trick. It directs the API to only return cards which have been archived. I'm fairly certain it includes cards in archived lists, but I'm not 100% sure.

like image 162
gregsdennis Avatar answered Oct 22 '22 05:10

gregsdennis