Mongoose device api