> ## Documentation Index
> Fetch the complete documentation index at: https://docs.switchyard.run/llms.txt
> Use this file to discover all available pages before exploring further.

# Get employee schedule

> Returns shifts for the next 7 days. Supports staff_id query param for PIN auth.



## OpenAPI

````yaml api-reference/v1/openapi.yaml get /v1/auth/schedule
openapi: 3.1.0
info:
  title: Goods API
  version: 1.0.0
  description: >-
    API for Goods grocery operations - scanner app, admin dashboard, and
    customer features
  contact:
    name: Goods Team
    url: https://goods.app
servers:
  - url: http://localhost:3000
    description: Local development
  - url: https://dev.api.switchyard.run
    description: Development
  - url: https://api.switchyard.run
    description: Production
security: []
tags:
  - name: v1
    description: API v1 - unified domain-based endpoints
  - name: Scanner
    description: Scanner app endpoints for drivers and pickers
  - name: Sweeps
    description: Sweep management - retail store pickup operations
  - name: RFC Picks
    description: Ready-for-checkout picking operations
  - name: Inventory
    description: Inventory management and barcode lookup
  - name: Admin
    description: Admin dashboard endpoints
  - name: Orders
    description: Order management
  - name: Products
    description: Product catalog management
  - name: Notifications
    description: Push, email, SMS, and Slack notification management
paths:
  /v1/auth/schedule:
    get:
      tags:
        - Scheduling
      summary: Get employee schedule
      description: >-
        Returns shifts for the next 7 days. Supports staff_id query param for
        PIN auth.
      parameters:
        - schema:
            type: string
            format: uuid
            description: Staff ID for service accounts with PIN auth
            example: 123e4567-e89b-12d3-a456-426614174000
          required: false
          name: staff_id
          in: query
      responses:
        '200':
          description: Schedule response
          content:
            application/json:
              schema:
                type: object
                properties:
                  shifts:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                        employee_id:
                          type: number
                        date:
                          type: string
                          nullable: true
                        start_time:
                          type: number
                        end_time:
                          type: number
                          nullable: true
                        start_time_localized:
                          type: string
                          nullable: true
                        end_time_localized:
                          type: string
                          nullable: true
                        operational_unit:
                          type: number
                          nullable: true
                        operational_unit_name:
                          type: string
                          nullable: true
                        company_name:
                          type: string
                          nullable: true
                        location_label:
                          type: string
                          nullable: true
                        is_open:
                          type: boolean
                        is_published:
                          type: boolean
                        is_locked:
                          type: boolean
                        comment:
                          type: string
                          nullable: true
                      required:
                        - id
                        - employee_id
                        - date
                        - start_time
                        - end_time
                        - start_time_localized
                        - end_time_localized
                        - operational_unit
                        - operational_unit_name
                        - company_name
                        - location_label
                        - is_open
                        - is_published
                        - is_locked
                        - comment
                  deputy_employee_id:
                    type: number
                    nullable: true
                  deputy_configured:
                    type: boolean
                  message:
                    type: string
                  staff_id:
                    type: string
                  error:
                    type: string
                  error_details:
                    type: string
                required:
                  - shifts

````