create api for mobile device