How to get DND (do not disturb) status of an extension using graphql or the rest api?

i want to make an integration that shows the dnd status for all extensions