Add device registration API.