Easyteam Embedded
GuidesAPIWhite-Label UIs
GuidesAPIWhite-Label UIs
  1. Requests and Approval
  • Getting started
    • Authentication
      • Authentication Quick Start
      • Exchange Token
    • Permissions
      • Create Access Role
      • List Access Roles
      • Get Access Role
      • Update Access Role
      • Delete Access Role
  • Organizations
    • List Organizations
    • Get Organization
    • Get Organization by External ID
    • Create Organization
    • Create Organization With Defaults
    • Sync Locations
    • Update Organization
    • Delete Organization
    • Delete Organization by External ID
  • Locations
    • Retrieve all locations
    • Retrieve a specific location
    • Retrieve a specific location by external ID
    • Create a new location
    • Update a specific location
    • Delete a specific location
    • Retrieve timesheets for a specific location
    • Retrieve staff members for a specific location
  • Staff members
    • Retrieve all staff members
    • Retrieve a specific staff member
    • Retrieve a staff member by external ID
    • Retrieve staff member locations
    • Create a new staff member
    • Synchronize staff members
    • Update a specific staff member
    • Delete a specific staff member
  • Roles
    • Create a new role
    • Retrieve all roles
    • Retrieve a specific role
    • Update a specific role
    • Delete a specific role
  • Time Tracking
    • Retrieve staff member shift state
    • Clock in a staff member
    • Clock out a staff member
  • Breaks
    • Retrieve break types for a specific location
    • Create a new break type for a location
    • Update a specific break type
    • Delete a specific break type
  • Timesheets
    • Retrieve all shifts
    • Retrieve a specific shift
    • Export shifts
    • Generate per-employee shift reports
    • Generate shift reports
    • Create a new shift
    • Update a specific shift
    • Delete a specific shift
    • Delete all shifts on a specific date
  • Time Off
    • Retrieve all time off policies
    • Retrieve a policy
    • List all policy types
    • Create Policy
    • Update Policy
    • Activate Policy
    • Deactivate Policy
    • Get Worker Policies
    • List all worker policies
  • Requests and Approval
    • Get Time-Off Request
      GET
    • List Time-Offs
      GET
    • Create a time off request
      POST
    • Update Time-Off Request
      PUT
    • Delete Time-Off Request
      DELETE
    • Approve Time-Off Request
      POST
    • Decline Time-Off Request
      POST
  • Shift Notes
    • Working with shift notes
    • List shift notes from current shift
    • Create shift note on current shift
  • Schedules
    • List all schedule entries
    • Get details for a schedule
    • Create schedule entry
    • Bulk copy schedule shifts
    • Update schedule entry
    • Remove schedule entry
    • List all draft schedule entries
    • Get details for a draft entry
    • Create draft schedule entry
    • Update draft entry
    • Remove draft schedule entry
    • Publish draft schedule
    • List open shifts
    • Get details for an open shift
    • Create open shift
    • Update open shift
    • Remove open shift
    • Claim open shift
    • Retract open shift submission
    • Create open shift preference
    • Retract open shift preference
    • Update open shift preference
    • Remove open shift preference
    • Assign or accept open shift preference
    • Bulk assign or accept open shift preferences
  • Settings
    • Retrieve organization time off settings
    • Update organization time off settings
  • Notifications
    • Coming soon
  1. Requests and Approval

List Time-Offs

GET
/api/organizations/{organization_id}/time-off-requests/time-offs
Fetches all approved time-off periods across the organization.
POST /api/organizations/{organization_id}/time-off-requests

Request

Path Params

Query Params

Responses

🟢200OK
application/json
Get all time off requests
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/organizations//time-off-requests/time-offs?workerId&startTime&endTime'
Response Response Example
[
    {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "locationId": "123e4567-e89b-12d3-a456-426614174000",
        "workerId": "123e4567-e89b-12d3-a456-426614174000",
        "policyId": "123e4567-e89b-12d3-a456-426614174000",
        "policy": {
            "id": "string",
            "name": "string",
            "organizationId": "string",
            "allowNegativeBalance": true,
            "assignedStaffCount": 0,
            "carryoverLimit": 0,
            "defaultSettings": {
                "assignedStaff": {
                    "type": "Role",
                    "value": "string"
                }
            },
            "fullDayDuration": 0,
            "limitSettings": {
                "isFixedAmount": true,
                "fixedAmount": {
                    "hours": 0,
                    "daysEarned": 0,
                    "accrualCycle": "AllAtOnce",
                    "accrualFrequency": "EveryOneWeek",
                    "accrualDay": "Sunday",
                    "accrualDate": "1st"
                },
                "perHourEarnings": {
                    "hoursEarned": 0,
                    "hoursWorked": 0,
                    "isLimitedMaximumBalance": true,
                    "maximumHoursBalance": 0
                }
            },
            "paid": true,
            "requiresApproval": true,
            "status": "Draft",
            "type": {
                "id": "string",
                "name": "string",
                "type": "Sick"
            },
            "typeId": "string",
            "units": "days",
            "createdAt": "string",
            "updatedAt": "string"
        },
        "startTime": "2021-01-01T00:00:00.000Z",
        "endTime": "2021-01-01T00:00:00.000Z",
        "status": "pending",
        "note": "I need to take time off",
        "hourConfiguration": [
            {
                "date": "2021-01-01",
                "hours": 8
            },
            {
                "date": "2021-01-02",
                "hours": 4
            }
        ],
        "timezone": "America/New_York",
        "utcOffset": 240,
        "isAllDay": false,
        "submittedAt": "2021-01-01T00:00:00.000Z",
        "remainingBalance": 10,
        "totalHours": 10,
        "workerPolicy": {
            "id": "string",
            "name": "Policy 1",
            "hoursBalance": 0,
            "isIncluded": true,
            "availableBalance": 0
        }
    }
]
Modified at 2025-03-24 12:47:49
Previous
Get Time-Off Request
Next
Create a time off request