To begin you will need to obtain a bearer token to allow you to reach all other API endpoints. Using your unique username and Password.

Endpoints

POST /api/Operation/Account/Login

Request

Body Parameters

NameTypeAdditional information
UsernamestringRequired
PasswordstringRequired

Response

NameTypeAdditional information
ResultstringResult of connect
ErrorLogCollection of stringGet error details if failed
DataObjectToken and details

Example Request

public async Task<object> ConnectToAPI(string userName, string password)
{
  using (var client = new HttpClient())
  {
    var dict = new Dictionary<string, string>();
    dict.Add("Username", userName);
    dict.Add("Password", password);
    try
    {
      ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;

      var url = Root +  "/api/Operation/Account/Login";
      HttpResponseMessage response = client.PostAsync(url, new FormUrlEncodedContent(dict)).Result;

      if (response.IsSuccessStatusCode)
      {
        string result = await response.Content.ReadAsStringAsync();
        JObject jObject = JObject.Parse(result);                   
        return jObject;                      
      }
      else return response.StatusCode;

    }
    catch (Exception e)
    {
      return "Exception: " + e.Message;
    }
  }
}

Example Response

{
    "data": {
        "access_token": "PbYBvbpSLhXRLyZCkvpLcNqrE6L9fxYUxh1KuvhYzFu7HuV7AZwZmpyHOmyyqz7VkBRtX0IVOc4WErFeGissMUKbWT6ebqEP8r-jrFLgny4eufv_Y65a1aPDOTGFCCw-9R1GgSWFF4hzC6REkgDbhwcEqLjYrd3_cFDaDdwZHNNK5V5Qblxk_hAGdo7V2l_Cb2YJ4_exbi5CnWrN-TdYsye6r0tqe1HH783CNyOiFIVXqy6RVnOx-pJZEc8KDOYIUUYIs_jEyzk5rdBvFLGlM4zIzC1X2_yj4kFAa86qZzrsGgwnEpSJVGMjtHxepJD6g1_dRuToBWFPU66wzDyEsDOq3DKJEifd4orGBmlJt3kJ1p_JePC9aZSQ7wFfYTFLj4jeW4aspLGBHIz_sLZpno4CjWgqB7lGkoBsG1N1H74cmt0Q71Bc7iPOn1xCaKHLy52gjJGpVZLpX_uoPbyO4xPx5jPNx1VORNnuaEl4TmoPdPSQOwSQUU84m726x6Qn11koC5N2O790NNEYD8aI0Bl7T24rn-ASlJehXAVsgOS6_c8FCi080WpWPQ4_f1q6IiKSCOfb27TJ9TAmGPJb-GTl8NtHa3kaVHhGN1MGORYkoePr8hvbE4jvhOSValqMLmQxveBulvrvW-4TAUm4LixMTEKNQlaZdmFF9k_vYF1hm2Uho9Rh-ruRm4PrP2oOAqI9ggffCDNCq_XzAxjYMYSBtED4SGGGVvUlL6bHVsFCjUOikBpw2Wu7J3YXS_kMMNtkDrXpj7p8TER6GUiosQ",
        "token_type": "bearer",
        "expires_in": "3599",
        "refresh_token": "d6a2447f-c325-4d15-83d8-e32464c91628",
        "siteSource": "2",
        "accountType": "2",
        "affiliate": "1vkteextarge",
        "wc": "0",
        "approveWizTermsOfUse": "0",
        "fName": "daniel test",
        "lName": "daniel test",
        "accName": "dfdf",
        "role": "1",
        "packageType": "Elite",
        "newUser": "0",
        "globalUser": "0",
        "fxToFx": "1",
        "V": "2.9",
        "eligible": "1",
        "user": "{\"UserID\":\"de5e6e77-829e-4fcb-b853-75035788ec3b\",\"UserName\":\"[email protected]\",\"profileStatus\":\"approved\",\"accountStatus\":2}",
        ".issued": "Tue, 09 Aug 2022 08:37:41 GMT",
        ".expires": "Tue, 09 Aug 2022 09:37:41 GMT"
    },
    "result": "success",
    "errorLog": null
}