CharlieHR API
12 endpoints for CharlieHR, each at its own method and path, called with your API key. Open an endpoint for its inputs, examples and response.
- Base URL
- https://cotlet.dev/api/v1/charliehr
- Connects with
- Your own CharlieHR account (Super Admin or Admin for company-wide work, Line Manager or Team Lead for your own reports)
- Integration page
- CharlieHR
Read (5)
Return data and change nothing in the account.
| Endpoint | Description |
|---|---|
| GET | People in your CharlieHR account with office, team, line manager and start date. |
| GET | One profile: office, team, line manager, start date, role and working week. |
| GET | Time off requests with person, type, dates, days and status. |
| GET | Allowance, days used, pending and remaining for one person and leave year, with adjustments. |
| GET | Who is working where and who is off, for one day. |
Write (7)
Change the account. Calls marked Confirm wait for the user to approve them.
| Endpoint | Description |
|---|---|
| POST | Approve one pending time off request, with an optional message to the person. |
| POST | Deny one pending time off request, with a message to the person. |
| POST | Book time off on behalf of a team member; it is approved at once. |
| POST | Record sick leave for a team member; it is approved at once. |
| POST | Add or remove days on one person's allowance, with a type, an expiry date and a note. |
| POST | Cancel one upcoming or past time off booking. |
| POST | Offboard a person with a leaving date and a reason; the profile is archived. |