Documentation
Guides, API reference and events for HR.
On this page
Rules shared by every R&D Copilot API are in the Developer guide.
Get started
- Overview: What the HR API does, how a call is built and where to go next.
- Quickstart: Hire a person, check the result, find them and read their checklist, with four requests.
- Authentication: Get client credentials, request a token and call the HR API with it.
- Sandbox and live: Build and test against a test company, then move the same calls to your live company.
- Go-live checklist: What to check in your integration before it works on your live company.
Concepts
- People and employments: A person, the periods of their employment and the status that is read from them.
- Effective dates: How a change of job or salary is dated, and why the periods before it stay as they were.
- Organisation: Departments, workplaces, managers and the calendar that leave is counted with.
- Leave kinds and balances: The kinds of leave, how the working days are counted, what draws on the balance and who decides.
- Permissions: Who may do what: the token that opens the API, and the person on whose behalf a change is made.
Guides
- Sync your directory: Keep the people of HR in step with your own directory: hire, change and leave, with a run that can be repeated.
- Onboard a hire: Hire a person and take their checklist to the end: the register operation, payroll, courses and access.
- Change a job or salary: Record a dated change, read the periods it leaves and see what a change in the past is refused for.
- Request and approve leave: Make a request, read it with its days counted, decide it, cancel it and see the balance move.
- Generate documents: Issue a certificate from its template, list the certificates of a person and read their text in English or Romanian.
Reference
- Errors: The error object of the HR API and the codes that say what went wrong.
- Idempotency and concurrency: Repeat a request without applying it twice, and refuse a change made on an out-of-date record.
- Pagination: Lists come in pages. Follow the cursor until it is empty.
- Limits: The limits of the HR API, with their values and what happens over them.
- Versioning: The version is in the path. Additions keep it; a change that could break a caller gets a new one.
- Changelog: The versions of the HR API contract, newest first, with what each one changed.
API reference
- People: Hire a person, read the people of your account, and set a last day of work.
- Employments: The periods of a person's employment by effective date: read them and record a dated change of job, manager, workplace, contract or salary.
- Organisation: The departments and workplaces of your account, and the calendar of public holidays that leave is counted with.
- Leave: Request leave, read a request with its working days counted and the balance it leaves, decide it, cancel it, and read a balance.
- Onboarding: The checklist of a hire: read it, and do or reopen a step.
- Documents: Issue a certificate from its template, list the certificates of a person and read the text of one in either language.
- Events and subscriptions: Register an endpoint for events, read the events and their delivery state, and replay a parked event.
- Operations: A request that changes data is accepted once and answered with an operation result you can read again.
Events
- Event envelope: Every HR event has the same envelope; only
datachanges with the type of the event. - Event catalogue: Every event HR sends, when it is sent and what its
dataholds. - Subscriptions: Register an HTTPS endpoint and HR sends your events to it, each one signed.
- Verify signatures: Every delivery is signed. Check the signature on the raw body before you trust the event.
- Delivery and retries: An event is sent again when your endpoint does not confirm it, and is kept for replay after the last attempt.
- Replay: Send a parked event again once your endpoint is ready to take it.