Employee Detail
Retrieve full details for a single employee record by ID.
GET
/api/v1/employees/{id}Description
Returns the complete record for a single employee, including contact details, address, employment information, and optionally their assigned assets.
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer <access_token> | Yes |
| Content-Type | application/json | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Pass the full value from the API response in path parameters. |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| include_assets | boolean | No | Set to true or 1 to include a list of assets assigned to the employee. |
Response
Top-level Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the request was successful. |
| employee | object | The employee record. See fields below. |
Employee Fields
| Field | Type | Description |
|---|---|---|
| employee.id | string | Use the full value in update routes. |
| employee.first_name | string | Employee's first name. |
| employee.last_name | string | Employee's last name. |
| employee.work_email | string | Employee's work email address. |
| employee.email | string | Legacy alias for work_email. |
| employee.personal_email | string | Employee's personal email address when available. |
| employee.work_phone | string | Work phone number, digits only (e.g. 4155551234). |
| employee.work_phone_country | string | Work phone country as an ISO 3166-1 alpha-2 code (e.g. US, GB). |
| employee.personal_phone | string | Personal phone number, digits only. |
| employee.personal_phone_country | string | Personal phone country as an ISO 3166-1 alpha-2 code. |
| employee.contact_info | string | Legacy alias for work_phone. |
| employee.phone_country_code | string | Legacy alias for work_phone_country. |
| employee.address_1 | string | Address line 1. |
| employee.address_2 | string | Address line 2. Null if not provided. |
| employee.city | string | City. |
| employee.state | string | State or province. |
| employee.zip | string | Postal or zip code. |
| employee.country | string | Country as an ISO 3166-1 alpha-2 code (e.g. US, DE). |
| employee.location_type | string | How the employee is based (e.g. Remote Employee, Corporate Office). |
| employee.location_name | string | Display name for the employee's location. |
| employee.department | string | Department the employee belongs to. |
| employee.employee_id | string | Employee ID on the location record. May differ from employment_information.employee_number_id. |
| employee.configure_cost_center_id | string | Opaque cost center ID when configured. |
| employee.employment_information | object | Employment details synced from a connected HR system. Null if unavailable. When present, only populated fields are included. See fields below. |
| employee.assigned_assets | array | Assets assigned to this employee. Only included when include_assets=true. Returns [] if no assets are assigned. |
employment_information Fields
| Field | Type | Description |
|---|---|---|
| employee.employment_information.employee_number_id | string | Employee number in the HR system. May differ from top-level employee_id. |
| employee.employment_information.employment_status | string | Employment status (e.g. Active, Terminated). |
| employee.employment_information.employment_type | string | Employment type (e.g. Full Time, Part Time, Contractor). |
| employee.employment_information.employment_start_date | string | Start date in YYYY-MM-DD format. |
| employee.employment_information.termination_date | string | Termination date in YYYY-MM-DD format. Only present when employment_status is Terminated. |
| employee.employment_information.work_phone | string | Work phone from the HR system, digits only. |
| employee.employment_information.manager | string | Employee's direct manager name or identifier. |
| employee.employment_information.personal_email | string | Personal email as stored in the HR system. |
| employee.employment_information.personal_phone | string | Personal phone from the HR system, digits only. |
| employee.employment_information.personal_contact_country | string | Personal phone country as an ISO 3166-1 alpha-2 code. |
assigned_assets Fields
| Field | Type | Description |
|---|---|---|
| employee.assigned_assets[].asset_id | string | Customer asset ID. |
| employee.assigned_assets[].serial_number | string | Device serial number. |
| employee.assigned_assets[].model_name | string | Product or model name (e.g. MacBook Pro 14). |
| employee.assigned_assets[].model_number | string | Manufacturer model number (e.g. A2338). |
| employee.assigned_assets[].product_type | string | Device category (e.g. Laptop, Phone). |
| employee.assigned_assets[].purchase_date | string | Purchase date in YYYY-MM-DD format. |
| employee.assigned_assets[].imei | string | Primary IMEI. Empty string if not applicable. |
| employee.assigned_assets[].imei2 | string | Secondary IMEI. Empty string if not applicable. |
| employee.assigned_assets[].sku | string | Asset SKU. |
| employee.assigned_assets[].asset_status | string | Current asset status (e.g. In Use, In Storage). |
Notes
- Pass the id from list or import responses as the {id} path parameter.
- contact_info and phone_country_code are legacy aliases for work_phone and work_phone_country.
- employment_information is null when no HR system is connected or no data exists for the employee. When present, only fields that contain a value are included.
- termination_date inside employment_information is only present when employment_status is Terminated.
- assigned_assets is only included when include_assets=true or include_assets=1 is passed. Returns [] if the employee has no assigned assets.
- location_type values may vary in casing. Treat as case-insensitive when comparing values.
- personal_phone and personal_email at the top level reflect what was entered in Unduit directly. The equivalent fields inside employment_information reflect what was synced from the connected HR system and may differ.
Related Endpoints
Did this page help you?
Request
curl -X GET https://uat.unduit.com/api-exposed/api/v1/employees/1204098-10466?include_assets=true \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"Success Response
{
"success": true,
"employee": {
"id": "1204098-10466",
"first_name": "Mussadiq",
"last_name": "Jaleel",
"work_email": "mussadiq.jaleel@company.com",
"personal_email": "mussadiq.j@gmail.com",
"work_phone": "4155551234",
"work_phone_country": "US",
"personal_phone": "4155559999",
"personal_phone_country": "US",
"contact_info": "4155551234",
"phone_country_code": "US",
"address_1": "123 Market Street",
"address_2": "Suite 400",
"city": "San Francisco",
"state": "CA",
"zip": "94103",
"country": "US",
"location_type": "Remote Employee",
"location_name": "Remote - San Francisco",
"department": "IT",
"employee_id": "EMP-1001",
"configure_cost_center_id": "9119562-42",
"employment_information": {
"employee_number_id": "HR-1001",
"employment_status": "Active",
"employment_type": "Full Time",
"employment_start_date": "2024-01-15",
"work_phone": "4155551234",
"manager": "John Shah",
"personal_email": "mussadiq.j@gmail.com",
"personal_phone": "4155559999",
"personal_contact_country": "US"
},
"assigned_assets": [
{
"asset_id": "IT-1234-ABCD",
"serial_number": "C02XK1ABCDEF",
"model_name": "MacBook Pro 14",
"model_number": "A2338",
"product_type": "Laptop",
"purchase_date": "2023-01-15",
"imei": "",
"imei2": "",
"sku": "MBP-14-2023",
"asset_status": "In Use"
}
]
}
}Error Responses
404 Not Found
{
"success": false,
"message": "Employee not found"
}422 Invalid ID
{
"success": false,
"message": "Invalid employee ID",
"errors": {
"id": "A valid employee ID is required."
}
}