Skip to main content
GET
/
v1
/
employees
/
{employeeId}
JavaScript
import BlueHive from '@bluehive/sdk';

const client = new BlueHive({
  apiKey: 'My API Key',
});

const employee = await client.employees.retrieve('employeeId');

console.log(employee.employee);
{
  "success": true,
  "employee": {
    "_id": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "email": "<string>",
    "dob": "<string>",
    "title": "<string>",
    "activeAccount": "Active",
    "blurb": "<string>",
    "address": {
      "street1": "<string>",
      "street2": "<string>",
      "city": "<string>",
      "state": "<string>",
      "postalCode": "<string>",
      "county": "<string>",
      "country": "<string>"
    },
    "phone": [
      {
        "number": "<string>",
        "type": "Cell"
      }
    ],
    "employer_id": "<string>",
    "departments": [
      "<string>"
    ],
    "extendedFields": [
      {
        "name": "<string>",
        "value": "<string>"
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z",
    "updatedBy": "<string>"
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key for accessing BlueHive API endpoints. Format: "ApiKey <your-api-key>" or "Bearer <your-api-key>"

Path Parameters

employeeId
string
required

Unique identifier of the employee

Response

Employee found successfully

success
boolean
required
employee
object
required

Employee details

message
string
required
I