dm api working