api m functionality