Fix API endpoint.