@Joe Recognizer The service endpoint in your case should be of the following format.
https://<your_resource_name>.cognitiveservices.azure.com/
Please replace the above placeholder in the endpoint to your Azure form recognizer resource name and try the same with the key of your resource.
The details are also available from Azure portal for your resource: