Empty response from Cloud API?


I am trying to trigger a robot with API, but I run into a problem when trying to authenticate using python requests module.

Here’s my code:

#!/usr/bin/env python3

import requests

url = "https://cloud.uipath.com/api/my_account_logical_name/authenticate"

headers={'Content-type':'application/json', 'Accept':'application/json'}

login = {"tenancyName": "my_tenant_logical_name", "usernameOrEmailAddress": "my@email.se", "password": "supersecret123"}

api = requests.post(url, headers=headers, data = login)

print (api.text)

However the response is just:


Following the documentation at: Authenticating