Shiftbase API
13 endpoints for Shiftbase, 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/shiftbase
- Connects with
- Your own Shiftbase account (a Planner or manager role to approve hours, leave and shift exchanges)
- Integration page
- Shiftbase
Read (7)
Return data and change nothing in the account.
| Endpoint | Description |
|---|---|
| GET | List the departments and teams of the account. |
| GET | List employees, with their department and contract type. |
| GET | List scheduled shifts for a date range. |
| GET | List open shifts that no employee holds yet. |
| GET | List worked hours from the Timesheet tab. |
| GET | List absence and leave requests. |
| GET | List shift exchanges that wait for approval. |
Write (6)
Change the account. Calls marked Confirm wait for the user to approve them.
| Endpoint | Description |
|---|---|
| POST | Add a timesheet entry for an employee. |
| PUT | Approve, decline or restore timesheet entries to pending. |
| POST | Approve a pending absence or leave request. |
| POST | Decline a pending absence or leave request. |
| POST | Approve an accepted shift exchange. |
| POST | Decline an accepted shift exchange. |