API for the mildly app