Orchestrator API - Getting error while Authenticating ("loginModel must not be null")

I am trying to write a Node.js code to call orchestrator API for Authentication. I am getting the below error,
Response: {“message”:“loginModel must not be null”,“errorCode”:0,“resourceIds”:null}
any help is really appreciated.

==============Node.js Code====================
var http = require(‘https’);
exports.handler = function(event, context){

    var params = {
      "tenancyName": "tenantName",
      "usernameOrEmailAddress": "emailId",
      "password": "password"

   var req = http.request({
        host: "platform.uipath.com",
        port: 443,
        path: "/api/account/authenticate",            
        method: "POST",
        dataType: "json",
        headers: {
                    "Content-Type": "application/json",
                    "Accept": "application/json"
        data: JSON.stringify(params)
    }, function (response) {
        response.on('data', function(data) {
       console.log('Response: ' + data);
req.setTimeout(5000, function() {
   console.log('Request timed out.');
req.on('error', function(ex){
       console.log('Request was a failure. ' + ex.message);


Please check this thread, we’re working on a fix: UiPath Orchestrator APIs not working since Cloud Platform Release

1 Like

Still the same error “loginModel must not be null”.

And you have already tried calling it from a service such as postman, just to check if you actually have a connection?

I am getting same error while hitting the “https://platform.uipath.com/api/account/authenticate” in postman
how should i authenticate???

Running “https://platform.uipath.com/api/Account/Authenticate” in postman and getting the same error
“message”: “loginModel must not be null”,
“errorCode”: 0,
“resourceIds”: null
Is there any fix for this?


We are trying to connect to on premise Orchestrator API from OSB Middleware and getting this error. We are able to connect using Postman as well as Python script. Any solutions?