---
title: "List of shifts"
method: GET
path: "/v2/time_tracking/shifts"
tags: ["timeTrackingShifts"]
---

# List of shifts

`GET /v2/time_tracking/shifts`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/v2/time_tracking/shifts`
- Auth: HTTP bearer

Lists the shifts of your organization. Use it to review or reconcile the shifts of a contract; use `GET /rest/time_tracking/shifts/{external_id}` for a single shift. Only shifts created through this API are included; shifts from integrations or Deel time tracking are not.

 **Token scopes**: `time-tracking:read`

## Query parameters

- `limit` integer
- `offset` integer
- `from_date` string
- `to_date` string
- `contract_id` string[]
- `contract_id[]` string[]

## Response `200`

Successful response with paginated shifts.

- TimeTrackingShiftsGetTimeTrackingShiftsResponse200: Shifts response
  - `data` V2TimeTrackingShiftsGetResponsesContentApplicationJsonSchemaDataItems[], required
    - `meta` V2TimeTrackingShiftsGetResponsesContentApplicationJsonSchemaDataItemsMeta
      - `end` V2TimeTrackingShiftsGetResponsesContentApplicationJsonSchemaDataItemsMetaEnd, required
        - `date` string, required: Shift end date
        - `time` string, required: Shift end time in HH:mm format
        - `is_rest_day` boolean, required: Indicates if it is a rest day
        - `is_public_holiday` boolean, required: Indicates if it is a public holiday
      - `start` V2TimeTrackingShiftsGetResponsesContentApplicationJsonSchemaDataItemsMetaStart, required
        - `date` string, required: Shift start date
        - `time` string, required: Shift start time in HH:mm format
        - `is_rest_day` boolean, required: Indicates if it is a rest day
        - `is_public_holiday` boolean, required: Indicates if it is a public holiday
      - `breaks` V2TimeTrackingShiftsGetResponsesContentApplicationJsonSchemaDataItemsMetaBreaksItems[]
        - `end` V2TimeTrackingShiftsGetResponsesContentApplicationJsonSchemaDataItemsMetaBreaksItemsEnd, required
          - `date` string, required: Break end date
          - `time` string, required: Break end time in HH:mm format
        - `start` V2TimeTrackingShiftsGetResponsesContentApplicationJsonSchemaDataItemsMetaBreaksItemsStart, required
          - `date` string, required: Break start date
          - `time` string, required: Break start time in HH:mm format
        - `is_paid` boolean: Indicates if the break is paid
      - `approval_date` string: Approval date for the shift, in ISO format
    - `summary` V2TimeTrackingShiftsGetResponsesContentApplicationJsonSchemaDataItemsSummary
      - `time_unit` 'DAY' | 'HOUR' | 'MONTH' | 'WEEK': The unit of time for the shift (DAY, HOUR, MONTH, WEEK)
      - `time_amount` number, double: The amount of time for the shift
      - `total_break_hours` number, double: Total break duration in hours
      - `payable_break_hours` number, double: Break hours that are payable
      - `total_payable_hours` number, double: Total payable working hours after break deductions
      - `shift_duration_hours` number, double: Total duration of the shift in hours
      - `shift_rate_external_id` string, required: External ID of the shift rate associated with this shift
    - `created_at` string, date-time, required: Date when the shift was created
    - `shift_type` 'REGULAR' | 'CORRECTION_ABSOLUTE' | 'CORRECTION_DELTA' | 'TIME_OFF_QUALIFYING', required: Type of the shift
    - `updated_at` string, date-time, required: Date when the shift was last updated
    - `contract_id` string, required: Associated contract ID for the shift
    - `description` string, required: Description of the shift
    - `external_id` string, required: ID specified by the client for uniquely identifying the shift
    - `date_of_work` string, required: Date when the shift takes place, in YYYY-MM-DD format
    - `payroll_cycle_ref` V2TimeTrackingShiftsGetResponsesContentApplicationJsonSchemaDataItemsPayrollCycleRef: Payroll cycle reference
      - `date` string, date-time, required: date in ISO
    - `shift_reference_id` string: External ID of the original shift this one references (set on correction shifts).
  - `page` V2TimeTrackingShiftsGetResponsesContentApplicationJsonSchemaPage, required
    - `offset` number, double, required: Offset for pagination
    - `total_rows` number, double, required: Total number of shifts
    - `items_per_page` number, double, required: Number of shifts per page

## Other responses

- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Operation failed.
- `500`: Operation failed.

---

[API](https://skmtc.dev/deel/apis/endpoints-3.md) - [All operations](https://skmtc.dev/deel/apis/endpoints-3/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/endpoints-3/revisions/4585b4e41a87?raw)
