API Documentation


Example C#

var client = new RestClient("http://api.clarityucaas.com/Token");
client.Timeout = -1;

var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("grant_type", "password");
request.AddParameter("username", userName);
request.AddParameter("password", password);

var response = client.Execute(request);

if (response.IsSuccessful)
{ }

Example Curl

curl --location --request POST 'http://api.clarityucaas.com/Token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username=myusername' \
--data-urlencode 'password=mypassword'