Added callback response for API calls