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

# Get Shifts

> Retrieve shift records using timestamp-based pagination

Shifts are paginated using Unix timestamps (float) as cursors for precise temporal ordering.

### Cursor Format

* Type: Unix Timestamp (float)
* Example: `1736302471.07677`
* Ordering: Descending (newest first)


## OpenAPI

````yaml GET /api/v1/shifts
openapi: 3.0.3
info:
  title: ERM Public API
  version: 1.0.0
  description: API for Employee Resource Management
servers:
  - url: https://core.ermbot.xyz
    description: ERM API Server
security:
  - ApiKeyAuth: []
    GuildAuth: []
paths:
  /api/v1/shifts:
    get:
      summary: Get all shifts
      parameters:
        - name: after
          in: query
          schema:
            type: number
            format: float
        - name: limit
          in: query
          schema:
            type: integer
      responses:
        '200':
          description: List of shifts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShiftResponse'
components:
  schemas:
    ShiftResponse:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: object
                properties:
                  $oid:
                    type: string
              username:
                type: string
              nickname:
                type: string
              user_id:
                type: integer
                format: int64
              type_:
                type: string
              start_epoch:
                type: number
                format: float
              breaks:
                type: array
                items:
                  type: object
              guild:
                type: integer
                format: int64
              moderations:
                type: array
                items:
                  type: object
              added_time:
                type: integer
              removed_time:
                type: integer
              end_epoch:
                type: number
                format: float
        pagination:
          type: object
          properties:
            next_cursor:
              type: number
              format: float
            limit:
              type: integer
            has_more:
              type: boolean
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
    GuildAuth:
      type: apiKey
      in: header
      name: Guild

````