I have preview access.
I'm a little unsure which I should put for the endpoint.
The mistake occoured when I used the endpoint under the rider "keys and endpoint": https://api.cognitive.microsofttranslator.com/
I also tried with this https://<NAME-OF-YOUR-RESOURCE>.cognitiveservices.azure.com/translator/text/batch/v1.0-preview.1
in that case I recive the following error:
response status code: 403
response status: Forbidden
response headers: {'Transfer-Encoding': 'chunked', 'Content-Type': 'application/json', 'X-RequestId': '800027[...]67bb', 'Set-Cookie': 'ARRAffinity=5dd610bb[...]7d2a5eff0940e;Path=/;HttpOnly;Secure;Domain=doctrans.westus.microsofttranslator.com, ARRAffinitySameSite=5dd610bbbfcdcce1e8b7e0[...]536e67d2a5eff0940e;Path=/;HttpOnly;SameSite=None;Secure;Domain=doctrans.westus.microsofttranslator.com', 'X-Powered-By': 'ASP.NET', 'apim-request-id': '88920c4b[...]b332f91127ea', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload', 'x-content-type-options': 'nosniff', 'Date': 'Mon, 08 Mar 2021 12:50:24 GMT'}