Authorization

Method: POST

Url: https://test.ninjalender.online/auth

Headers:

Request body:

Response:

The received token should be added to the headers in all next requests.

Request example:

{
  "login": "test",
  "password": "25d55ad282aa400af464c76d713c07ad"
}

Response example:

Success:

{
    "code": 0,
    "message": "ok",
    "data": {
        "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1ODAzOTQxNzIsImV4cCI6MTU4MDQ4MDU3MiwidXNlcl9pZCI6IjEiLCJvcmdhbml6YXRpb25faWQiOiIxIn0.hidUXBWEUzI2NvkfrC2_pDNfXmIpIqd5KxqYNMdJDzQ"
    },
    "log_key": 728
}

Error:

{
    "code": -1,
    "message": "error",
    "log_key": 747,
    "errors": [
        {
            "code": -1000003,
            "message": "user not found"
        }
    ]
}
    

Error list:

Last updated