- 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 Staff member by ID
Developing
GET
/api/service/v1/user/staff/{id}
Request
Path Params
id
string
required
Header Params
Accept
string
optional
Example:
application/json
Content-Type
string
optional
Example:
application/json
practice-code
string
optional
Example:
DEFAULT
Authorization
string
optional
Example:
{{token}}
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/staff/' \
--header 'Accept: application/json' \
--header 'practice-code: DEFAULT' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImVtYWlsIjoiZGVlcC5tYXJzb25pYUBwbGVuYXJ0ZWNoLmNvbSIsInN1YiI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImlhdCI6MTc0MTc4MjA4NCwiZXhwIjoxNzQ5NTU4MDg0fQ.KAMsweSbJPDxpLijKdjgp3YEFauw8KYLLumCBpqQfAA' \
--header 'Content-Type: application/json'
Responses
🟢200Success
application/json
Body
error
boolean
required
status_code
integer
required
message
string
required
data
object
required
roles
array [object {8}]
required
is_master_admin
integer
required
is_temporary_password
integer
required
is_deleted
integer
required
is_active
integer
required
deleted_at
null
required
language_code
string
required
family_members
array[string]
required
first_name
string
required
full_name
string
required
email
string
required
phone_primary
string
required
country_code
string
required
created_at
string
required
updated_at
string
required
id
string
required
Examples
{
"error": false,
"status_code": 200,
"message": "",
"data": {
"roles": [
{
"practice": "677bb5bd4291b96cd0623e93",
"deleted_at": null,
"is_deleted": 0,
"name": "Patient",
"slug": "patient",
"created_at": "2025-01-06T10:51:41.295Z",
"updated_at": "2025-01-06T10:51:41.295Z",
"id": "677bb5bd4291b96cd0623e98"
}
],
"is_master_admin": 0,
"is_temporary_password": 0,
"is_deleted": 0,
"is_active": 1,
"deleted_at": null,
"language_code": "en",
"family_members": [],
"first_name": "Deep",
"full_name": "Deep",
"email": "sfd33fdfl46@gmail.com",
"phone_primary": "7766787898",
"country_code": "+91",
"created_at": "2025-02-05T10:05:53.857Z",
"updated_at": "2025-02-05T10:05:53.857Z",
"id": "67a33801a5f6d79d08f063da"
}
}