Deprecated Legacy API

Authentication API v2

Login

Most of the APIs require an authenticated user who is identified by a token. To get a token, call the following API, and use the returned value in all subsequent calls. Each token is valid for 24 hours.

action: api/v2/auth/login
    username                    string                             
    password                    string

response: JSON
    {
      "id":30,
      "role":"Admin",                                 // Admin, Linguist, ProjectManager
      "token":"30-a3bf70333f8f1316cb7841cd774c9ce8"
    }

Who Am I

This API call can be used to test if the previous auth/login call went ok. This API does not bring any essential functionality. Still, it may useful during development.

action: api/v2/auth/whoAmI
    token                      string

response: JSON
    {
      "username": "alice"
    }

Logout

action: api/v2/auth/logout
    token                      string

response: empty
Was this article helpful?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question you can leave a public comment below or Submit a request to our Support team.
Thank you for your feedback.

Comments

0 comments

Please sign in to leave a comment.