- Auth
- ForgotPassword
- Profile
- Family Members
- Address
- Languages
- Products
- Permissions
- Config
- Appointment Schedule
- Test Tags
- Test Parameters
- Category
- Device
- File
- Appointment
- Reports
- Staff
- Patient
- Notifications
Get User Profile
Developing
GET
/api/service/v1/user/profile
Request
Header Params
Content-Type
string
optional
Example:
application/json
Accept
string
optional
Example:
application/json
Authorization
string
optional
Example:
{{token}}
practice-code
string
optional
Example:
DEFAULT
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 GET 'https://afyahealth.doctodoor.com:5600/api/service/v1/user/profile' \
--header 'Accept: application/json' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImVtYWlsIjoiZGVlcC5tYXJzb25pYUBwbGVuYXJ0ZWNoLmNvbSIsInN1YiI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImlhdCI6MTc0MTc4MjA4NCwiZXhwIjoxNzQ5NTU4MDg0fQ.KAMsweSbJPDxpLijKdjgp3YEFauw8KYLLumCBpqQfAA' \
--header 'practice-code: DEFAULT' \
--header 'Content-Type: application/json'
Responses
🟢200Success
application/json
Body
error
boolean
required
status_code
integer
required
message
string
required
data
object
required
user
object
required
Example
{
"error": false,
"status_code": 200,
"message": "",
"data": {
"user": {
"roles": [
{
"practice": {
"is_active": 1,
"is_deleted": 0,
"deleted_at": null,
"name": "DEFAULT Practice",
"code": "DEFAULT",
"created_at": "2025-01-06T10:51:41.279Z",
"updated_at": "2025-01-06T10:51:41.279Z",
"id": "677bb5bd4291b96cd0623e93"
},
"deleted_at": null,
"is_deleted": 0,
"name": "Master Admin",
"slug": "master_admin",
"created_at": "2025-01-06T10:51:41.298Z",
"updated_at": "2025-01-06T10:51:41.298Z",
"id": "677bb5bd4291b96cd0623e9e"
}
],
"is_master_admin": 1,
"is_deleted": 0,
"is_active": 1,
"deleted_at": null,
"language_code": "en",
"first_name": "Deep",
"middle_name": "",
"last_name": "Marsonia",
"full_name": "Deep Marsonia",
"email": "deep.marsonia@plenartech.com",
"created_at": "2025-01-06T10:51:41.439Z",
"updated_at": "2025-01-21T09:41:54.407Z",
"family_members": [
{
"_id": "678f6be2b92fcb53c701b2b1",
"name": "test2",
"gender": "male",
"birth_date": "2000-01-01T00:00:00.000Z"
}
],
"id": "677bb5bd4291b96cd0623eea"
}
}
}