- Auth
- ForgotPassword
- Profile
- Family Members
- Address
- Languages
- Products
- Permissions
- Config
- Appointment Schedule
- Test Tags
- Test Parameters
- Category
- Device
- File
- Appointment
- Reports
- Staff
- Patient
- Notifications
Login
POST
/api/service/v1/user/login
Request
Header Params
Accept
string
optional
Example:
application/json
Content-Type
string
optional
Example:
application/json
Device-Platform
string
required
Example:
web
App-Type
string
optional
Example:
provider
Body Params application/json
email
string
required
password
string
required
Example
{
"email": "deep.marsonia@plenartech.com",
"password": "Plenar@123!"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://afyahealth.doctodoor.com:5600/api/service/v1/user/login' \
--header 'Accept: application/json' \
--header 'Device-Platform: web' \
--header 'App-Type: provider' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "deep.marsonia@plenartech.com",
"password": "Plenar@123!"
}'
Responses
🟢200OK
application/json
Body
error
boolean
required
status_code
integer
required
message
string
required
data
object
required
user
object
required
token
string
required
Example
{
"error": false,
"status_code": 200,
"message": "",
"data": {
"user": {
"is_master_admin": 0,
"is_deleted": 0,
"is_active": 1,
"deleted_at": null,
"first_name": "Agent",
"middle_name": "",
"last_name": "User",
"full_name": "Agent User",
"email": "agent.demo@plenartech.com",
"created_at": "2024-06-11T12:26:59.873Z",
"updated_at": "2024-06-11T12:26:59.873Z",
"id": "66684293f0ba0009121b1367"
},
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2Njg0MjkzZjBiYTAwMDkxMjFiMTM2NyIsImVtYWlsIjoiYWdlbnQuZGVtb0BwbGVuYXJ0ZWNoLmNvbSIsInN1YiI6IjY2Njg0MjkzZjBiYTAwMDkxMjFiMTM2NyIsImlhdCI6MTcxODExNjAzNCwiZXhwIjoxNzI1ODkyMDM0fQ.Ii0dArR6co4j_fuhXRim5Ag7NTewAPIEOyctGVOxdeY"
}
}
🟠400Bad Request
🟠401Unauthorized
🟠401Password Error