Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

HTTP codedescription
200successful login
401invalid login credentials

 


On successful login, the service should return a response similar to this:

Code Block
languagejs
{
	"user_token": "user_api_token"
}

 


On a failed login attempt the response is like the following example:

Code Block
languagejs
{
 
  "statuserr": "validation_error",
    "field_errors": {
        "field_name": "validation error message",
        "field_name#2": "validation error message"
    },
    "global_errors": {
        "error_key": "error message",
        "error_key#2": "error message"
    }invalid.login.credentials"
}