Auth

Description: Requests a new authentication token. 

URL/auth

Method: POST

This method cannot be used if the -aaa parameter has been used to access the API server.


Parameters

You must provide a valid Rulex license either:

  • using plain JSON text, where the body of the text must be as follows:

    JSON

    { 
    	license : { 
    		encoding : "base64", 
    		data : "cV0Dw5tjqATw7HDpsOaSsKQTF/DsV..." 
    	} 
    }


  • in a form-data key-value pair, where the "key" name is license. The header must have the following format:

    { 
    	Content-Type : "application/x-www-form-urlencoded" 
    }


Response codes

Code

Result

Response

Success

200

Success

{ 
	Token : token string, 
	Token-type : "bearer" 
	Expires-at : expiration timestamp 
}

Client errors

400

Bad request

401

Unauthorized