Debug API call