Post

1 follower Follow
0
Avatar

v6 - Authentication using the REST api

Hello,

Im attempting to use the Rest api for the first time, calling  https://api2.clarizen.com/v1.0/services/authentication/login and passing in my usernaem and password. However Im getting a response:

{

"errorCode": "LoginFailure",

"message": "Invalid username",

"referenceId": "fYEuDEXuEEW1E3xRRJay6A"

}

Is this because Im doing something wrong or do I need to an api key to connect? If so how do I go about getting sch a key issued? 

Douglas Guthrie Answered

Please sign in to leave a comment.

4 comments

0
Avatar

In case its useful Im using the chrome Postman rest client to send the request. Here is the Curl of what im sending (with username and password hidden of course)

curl -X POST -H "Cache-Control: no-cache" -H "Postman-Token: cd67a1bb-5e20-b738-0e76-67ccec54f4c4" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryp7MA4YWxkTrZu0gW" -F "userName=xxxxx" -F "password=xxxxxxx" https://api2.clarizen.com/v1.0/services/authentication/login

 

Douglas Guthrie 0 votes
Comment actions Permalink
0
Avatar

Great, thanks Ophir I thought I was doing something a bit wonky. Working now.

As an aside what it the ApplicaitonId parameter for? 

Douglas Guthrie 0 votes
Comment actions Permalink
0
Avatar

Hi Douglas,

The ApplicationId is not mandatory. It's just a name.

It may make it easier for us in Clarizen to track the API usage and errors caused by this application.

Ophir

Ophir Kenig 0 votes
Comment actions Permalink