Retrieve "due" cards in flashcard view via API

Is it possible to retrieve cards with status “due” in flashcard mode? I would like to build an automation which notifies me about “due” cards