Deprecated Legacy API

Authentication API v2


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
      "role":"Admin",                                 // Admin, Linguist, ProjectManager

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"


action: api/v2/auth/logout
    token                      string

response: empty
Was this article helpful?



Please sign in to leave a comment.