Login
This api for login to Lumyri
Endpoint
Parameters
- email: required
- Type: string
- Validate: email input must be valid
- password: required
- Type: string
- Validate:
- More than 8 characters
- Must contain both uppercase and lowercase
- At least 1 special character
- At least 1 number
Code sample
curl --location --request POST 'https://api-v1-stg.lumyri.com/auth/local' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "admin@example.com",
"password": "Password@123"
}'
Response
{
"error": null,
"data": {
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55X2lkIjoiODA1YWZiYjktYzcyMS00ZDFiLTg0NWItYWVkNmVjNWEwY2IyIiwiaXNzIjoiNkttMGxDaW13RWpNdldCTnZvWUQ1UU1URTIydTk4WlIiLCJ1c2VyX2lkIjoiZmIxOWRjZmEtNDg2Mi00ZDNkLTgyYjItMGQ4N2ViYTA1ZGM1In0.smX0CIvb-ML29yQA4Kdd61DiZEj-HX71CuhqI72FPfc",
"user": {
"id": "fb19dcfa-4862-4d3d-82b2-0d87eba05dc5",
"first_name": "Admin",
"last_name": "Test",
"phone": "",
"email": "admin@example.com",
"country": "",
"city": "",
"avatar": "",
"company": {
"id": "805afbb9-c721-4d1b-845b-aed6ec5a0cb2",
"name": "",
"phone": "",
"address": "",
"describe": "",
"email": ""
},
"role": {
"name": "Admin",
"description": "Have full access to platform",
"category": "SYSTEM ROLE",
"permission": {
"platform": {
"applications": { "all": true, "view": true },
"admins": { "all": true, "view": true },
"roles": { "all": true, "view": true },
"billing": { "all": true, "view": true }
},
"application": {
"applications": null,
"tickets": { "all": true, "view": true },
"agents": { "all": true, "view": true },
"customers": { "all": true, "view": true },
"live_map": { "all": true, "view": true },
"labels": { "all": true, "view": true },
"settings": { "all": true, "view": true }
}
}
},
"address": null,
"state": "CARD_NOT_FOUND",
"language": "",
"timezone": "",
"default_app": ""
}
}
}