HaileyApiClient is a third party Hailey API client for NodeJS. It is a wrapper around an API client that has been automatically generated using the OpenAPI schema provided by Hailey.
Add to project's package.json:
npm install @rantalainen/hailey-api-client
import { HaileyApiClient } from '@rantalainen/hailey-api-client';
In order to obtain an API key, please contact Hailey Support. An API key is needed to access all API functions.
const hailey = new HaileyApiClient(
{
accessToken: 'accessToken'
},
{
baseURL: 'https://api.demo.haileyhr.app/'
}
);
const response = await hailey.api.employees.employeesList();
Available methods can be found in the API documentation.
- Hailey HR: https://haileyhr.com/
- Hailey HR API Guide: https://docs.haileyhr.com/
- Hailey HR Integration Docs: https://docs.haileyhr.com/integrations/