---
title: "Get Shifts by Employee"
method: GET
path: "/apiHub/scheduling/v2/companies/{companyId}/employees/{employeeId}/shifts"
tags: ["Employee Shifts"]
---

# Get Shifts by Employee

`GET /apiHub/scheduling/v2/companies/{companyId}/employees/{employeeId}/shifts`

## Request

- Base URL: `dc1demogwext.paylocity.com` (relative, and the document’s source URL is not known)
- URL: `dc1demogwext.paylocity.com/apiHub/scheduling/v2/companies/{companyId}/employees/{employeeId}/shifts`
- Auth: none declared. Required headers: `Authorization`

**Version:** V2

**Summary Description**

The Get Shifts by Employee endpoint retrieves shifts assigned to a specific employee. It provides detailed scheduling information, including dates, start and end times, pay type, cost center, and other supported shift details, allowing applications to view and manage an employee's work schedule.

**Use cases:**
- Employees can view their assigned work schedules in web or mobile applications.
- Managers can review employee schedules to monitor coverage and make scheduling adjustments.
- Workforce management systems can retrieve employee shifts for reporting, payroll, or schedule synchronization.

## Path parameters

- `companyId` string, required
- `employeeId` string, required

## Query parameters

- `include` string
- `filter` string
- `includeTotalCount` boolean
- `limit` integer
- `offset` integer
- `sort` string
- `fields` string

## Headers

- `Authorization` string, required

## Response `200`

Success

- ShiftV2Model[]
  - `assignedTo` EmployeeV1Model
    - `companyId` string: Identifier of the company to which the task is assigned.
    - `employeeId` string: Identifier of the employee to whom the task is assigned within the company.
  - `breaks` ShiftBreakV2Model[], nullable: TODO: fill this out
    - `duration` integer: TODO: fill this out
    - `payType` 'break' | 'meal': TODO: fill this out
    - `relativeEndDateTime` string, date-time, required: TODO: fill this out
    - `relativeStartDateTime` string, date-time, required: TODO: fill this out
  - `costCenters` string[], nullable: TODO: fill this out
  - `draft` ShiftDetailsV2Model: TODO: fill this out
    - `assignedTo` EmployeeV1Model
      - `companyId` string: Identifier of the company to which the task is assigned.
      - `employeeId` string: Identifier of the employee to whom the task is assigned within the company.
    - `breaks` ShiftBreakV2Model[], nullable: TODO: fill this out
      - `duration` integer: TODO: fill this out
      - `payType` 'break' | 'meal': TODO: fill this out
      - `relativeEndDateTime` string, date-time, required: TODO: fill this out
      - `relativeStartDateTime` string, date-time, required: TODO: fill this out
    - `costCenters` string[], nullable: TODO: fill this out
    - `duration` integer, nullable: TODO: fill this out
    - `hasNote` boolean, nullable: TODO: fill this out
    - `isEmployeeNote` boolean, nullable: TODO: fill this out
    - `legacyAssignmentId` integer, nullable: TODO: fill this out
    - `note` string, nullable: TODO: fill this out
    - `positionKey` integer, nullable: TODO: fill this out
    - `relativeEndDateTime` string, date-time: TODO: fill this out
    - `relativeStartDateTime` string, date-time: TODO: fill this out
    - `segments` ShiftSegmentV2Model[], nullable: TODO: fill this out
      - `cost` number, double: TODO: fill this out
      - `nonWorkDuration` integer: TODO: fill this out
      - `ot1Duration` integer: TODO: fill this out
      - `ot2Duration` integer: TODO: fill this out
      - `payType` 'break' | 'meal' | 'work': TODO: fill this out
      - `regDuration` integer: TODO: fill this out
      - `relativeApplyToDate` string, date: TODO: fill this out
      - `relativeTimeIn` string, date-time: TODO: fill this out
      - `relativeTimeOut` string, date-time: TODO: fill this out
      - `unpaidDuration` integer: TODO: fill this out
    - `templateVersionedAssignmentId` string, uuid, nullable: TODO: fill this out
  - `duration` integer, nullable: TODO: fill this out
  - `hasNote` boolean, nullable: TODO: fill this out
  - `id` string, uuid: TODO: fill this out
  - `isEmployeeNote` boolean, nullable: TODO: fill this out
  - `isPublished` boolean: TODO: fill this out
  - `legacyAssignmentId` integer, nullable: TODO: fill this out
  - `note` string, nullable: TODO: fill this out
  - `positionKey` integer, nullable: TODO: fill this out
  - `relativeEndDateTime` string, date-time: TODO: fill this out
  - `relativeStartDateTime` string, date-time: TODO: fill this out
  - `scheduleId` string, uuid, nullable: TODO: fill this out
  - `segments` ShiftSegmentV2Model[], nullable: TODO: fill this out
    - `cost` number, double: TODO: fill this out
    - `nonWorkDuration` integer: TODO: fill this out
    - `ot1Duration` integer: TODO: fill this out
    - `ot2Duration` integer: TODO: fill this out
    - `payType` 'break' | 'meal' | 'work': TODO: fill this out
    - `regDuration` integer: TODO: fill this out
    - `relativeApplyToDate` string, date: TODO: fill this out
    - `relativeTimeIn` string, date-time: TODO: fill this out
    - `relativeTimeOut` string, date-time: TODO: fill this out
    - `unpaidDuration` integer: TODO: fill this out
  - `templateVersionedAssignmentId` string, uuid, nullable: TODO: fill this out

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `500`: Server Error

---

[API](https://skmtc.dev/paylocity/apis/scheduling-api.md) - [All operations](https://skmtc.dev/paylocity/apis/scheduling-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paylocity/apis/scheduling-api/revisions/51ca447f2b45?raw)
