title: api.stormpath rest json post data for loginAttempts method
body: <p>am new on stormpath api. i read documents for the create application &amp; User.and i did it successfully.</p>
  
  <p>now, i want to authenticate or validate user using web services.for that my code is</p>
  
  <pre><code>var Result = btoa(String.fromCharCode.apply(null, new Uint8Array(bytes)));
  
  
          var postData = { "type": "basic", "value": Result };
  
          $.ajax({
              type: "POST",
              url: "https://api.stormpath.com/v1/applications/ApplicationID/loginAttempts",
              crossDomain: true,
              contentType: "application/json;charset=UTF-8",
              data: JSON.stringify(postData),
              success: function (response) {
  
                  alert(response);
              },
              error: function (ErrorResponse) {
                 alert(ErrorResponse.statusText);
              }
  
  
          });
  </code></pre>
  
  <p>Now, here always i am getting "error" on errorresponse. and when i check on browser console, it's show authoried error. </p>
  
  <p>so, kindly let me know what step i am missing.</p>
  
  <p>also, i download the secure key value file &amp; put on the root.
  i am calling from my localhost. so, that's why is it not work?</p>