Authorization
Method: POST
Url: https://test.ninjalender.online/auth
Headers:
header_key
content
Content-Type:
application/json;
Request body:
Key
Type
Required
Decription
login
text
+
User login
password
text
+
User password
Response:
Ключ
Тип
Описание
code
int
Response code
message
string
Response message
data
JSON.object
Response data
data.access_token
string
Access token
log_key
numeric
ID for current request log
The received token should be added to the headers in all next requests.
Request example:
1
{
2
"login": "test",
3
"password": "25d55ad282aa400af464c76d713c07ad"
4
}
Copied!
Response example:
Success:
1
[
2
{
3
"code": 0,
4
"message": "ok",
5
"data": {
6
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1ODAzOTQxNzIsImV4cCI6MTU4MDQ4MDU3MiwidXNlcl9pZCI6IjEiLCJvcmdhbml6YXRpb25faWQiOiIxIn0.hidUXBWEUzI2NvkfrC2_pDNfXmIpIqd5KxqYNMdJDzQ"
7
},
8
"log_key": "728"
9
}
10
]
Copied!
Error:
1
[
2
{
3
"code": -1000003,
4
"message": "user not found",
5
"log_key": "747"
6
}
7
]
Copied!
Error list:
Ключ
Сообщение
-96
invalid key
-97
invalid token
-98
expired token
-99
system error
-100
access denied
-1000001
login is blank
-1000002
invalid password
-1000003
user not found
-1000004
user is not active
-1000005
password did not match
Last modified 1mo ago
Copy link