Add API functionality
Fix API call