Skip to content

Login

This endpoint retrieves AccessToken using Username and Password.

POST https://adelion.com/api/auth/login
ParameterTypeDescriptionRequirement
UsernamestringUser’s email.required
PasswordstringUser’s password.required
JSON payload example
{
"Username": "[username]",
"Password": "[password]"
}
Success JSON
{
"UID": 1,
"AccessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MDA5MjQ5NzQsImlzcyI6IlJUQi5NRSIsInVzZXJJZCI6IjEifQ.NAfquN1DOvNMILGbtVKAxaewGbMhls9qCkttd23tO3k",
"ExpiresIn": 3600,
"LogoLight": "/logos/adelion-black.svg",
"LogoDark": "/logos/adelion-dark.svg",
"LogoSmallLight": "/logos/adelion-logo-small-black.svg",
"LogoSmallDark": "/logos/adelion-logo-small-dark.svg",
"Status": "Ok"
}
Error CodeMeaning
400Bad Request — You sent a body that isn’t JSON.
406Not Acceptable — Some value(s) inside JSON are missing or malformed, or requested object is not found.
500Internal Server Error — We had a problem with our server. Try again later.