Login
This endpoint is used to authenticate a provider administrator or a user with provider access.
URL: {{base_url}}/auth/login
{
"email": "{{serenity_user_email}}",
"password": "{{serenity_user_password}}"
}
{
"refresh": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTYzMjQwNTU2MSwianRpIjoiNjhjYmIwM2ZjMTU1NGUzNzgxMTg5ODVhOGZhODU4YmYiLCJ1c2VyX2lkIjoxfQ.hITENC_s5SBp8rxPbwM3tOhURulSEmuFhD58MNGViwc",
"access": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjMyMzIwOTYxLCJqdGkiOiI3ZDNhNmQwMjcxYTg0NWI1OWY3NjFjNzNlMzcyZjQ1NiIsInVzZXJfaWQiOjF9.p4pPCa1VgeXLJhgoijh7CPOjatkMSMz7_kyavYf1ytI",
"user": {
"id": 1,
"uuid": "18fbeae0-37c9-400c-ab8d-37a629d88562",
"email": "[email protected]",
"mobile": "233262260986",
"first_name": "Chris",
"last_name": "Dare"
},
"practitioner_roles": [
{
"id": "8eb044df-3e0d-43fd-8e59-65c0ddbdcf66",
"organization_name": "Nyaho Medical",
"organization_uuid": "b6c0cc80-c5fd-4430-805c-e3591ec9b3cf",
"specialties": null,
"permissions": {
"id": "ADMIN",
"name": "Admin",
"permissions": {
"resources": [
"*.*",
"patient.read",
"patient.write",
"patient.delete",
"Appointments.read",
"Appointments.write",
"Appointments.delete",
"Diagnostic.requests.read",
"Diagnostic.requests.write",
"Diagnostic.requests.delete",
"Diagnostic.samples.read",
"Diagnostic.samples.write",
"Diagnostic.samples.delete",
"Diagnostic.reports.read",
"Diagnostic.reports.write",
"Diagnostic.reports.delete",
"Medication.orders.read",
"Medication.orders.write",
"Medication.orders.delete",
"Medication.dispense.read",
"Medication.dispense.write",
"Medication.dispense.delete",
"Encounters.read",
"Encounters.write",
"Encounters.delete",
"Vitals.read",
"Vitals.write",
"Vitals.delete",
"Bills.write",
"Bills.acceptCash.write",
"Bills.approveCredit.read",
"Bills.approveCredit.write",
"Bills.delete",
"Procedures.read",
"Procedures.write",
"Procedures.delete",
"Medication.immunizations.read",
"Medication.immunizations.write",
"Medication.immunizations.delete",
"Practioners.read",
"Practioners.write",
"Practioners.delete"
],
"workspaces": [
"BILL.*",
"RECEPT.*",
"OPD.*",
"IPD.*",
"PHARM.*",
"VIRT.*",
"DIAG.*",
"HOME.*",
"EMERG.*",
"MOM.*",
"ADMIN.*"
]
},
"organization": "74730a7c-2f36-4837-ae1f-749d992e09aa"
}
}
]
}