Authenticate an existing user with their login and password.
Method : POST
URL : /user/auth
Parameter
Required
Location
Data Type
Constraints
Description
login
Yes
Body
String
Email format
User login (email)
password
Yes
Body
String
8-64 characters
User password
Example Request in JSON Format
{
"login" : " 0x535af33106dcdf40b68348fe227f7bee1347cae6@softnote.com" ,
"password" : " 624449863"
}
Parameter
Required
Data Type
Description
session_key
Yes
String
The session key for the user
Example Successful Response
{
"session_key" : " iparHnFpVJvr3CnA1eigcE96UvBBT6Acr5"
}
Common Error Response Structure
Parameter
Required
Data Type
Description
error
Yes
String
Error code
message
Yes
String
Error description
Error Code
HTTP Status Code
Error Description
AUTHORIZATION_FAILED
400 Bad Request
Incorrect login or password
{
"error" : " AUTHORIZATION_FAILED" ,
"message" : " incorrect login or password"
}
The user sends a request with their login and password.
If the credentials are correct, the server returns a session key.
If the credentials are incorrect, the server returns an error.