API recipes: Listening for changes in document status