fix typo in device API

and key type in Get Device API