Call the correct API.