Use add_query_args() the generate endpoint URL as the server URL should already have one argument