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

# List SLA Rules

> Fetch the SLA rules of the company, sorted by creation date, with their targets, pause and alert settings. Each target is returned as `{priority}_{first_response_time|time_to_resolve}_{enabled|minutes|unit}`. This endpoint may change or be removed without prior notice.



## OpenAPI

````yaml /api-reference/openapi.yml get /v1/sla_rules
openapi: 3.0.1
info:
  title: Siit Public API
  version: v0
servers:
  - url: https://api.siit.io
security: []
paths:
  /v1/sla_rules:
    get:
      tags:
        - Unstable
        - SLA Rule
      summary: List SLA Rules
      description: >-
        Fetch the SLA rules of the company, sorted by creation date, with their
        targets, pause and alert settings. Each target is returned as
        `{priority}_{first_response_time|time_to_resolve}_{enabled|minutes|unit}`.
        This endpoint may change or be removed without prior notice.
      parameters:
        - name: search
          in: query
          required: false
          description: >-
            Only return SLA rules whose name contains this text
            (case-insensitive).
          schema:
            type: string
        - name: expand[]
          in: query
          required: false
          description: >-
            Pass `business_calendar` to return the full Business Calendar
            instead of its UID.
          schema:
            type: array
            items:
              type: string
              enum:
                - business_calendar
        - name: page
          in: query
          required: false
          description: The current page
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          description: Number of results retrieved per page.
          schema:
            type: integer
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  meta:
                    $ref: '#/components/schemas/meta_object'
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/sla_rule'
        '401':
          description: Unauthorized
      security:
        - bearer: []
components:
  schemas:
    meta_object:
      type: object
      properties:
        count:
          type: integer
        current_page:
          type: integer
        next_page_link:
          type: string
          nullable: true
        per_page:
          type: integer
          default: 20
          maximum: 200
        previous_page_link:
          type: string
          nullable: true
        total:
          type: integer
    sla_rule:
      type: object
      properties:
        uid:
          type: string
          readOnly: true
        name:
          type: string
        business_calendar:
          oneOf:
            - type: string
              description: UID when not expanded
            - $ref: '#/components/schemas/business_calendar'
          description: >-
            Business calendar the SLA rule counts time against; null means
            elapsed time. Pass `?expand[]=field_name` for full object.
          nullable: true
        per_priority:
          type: boolean
          nullable: true
        pause_on_waiting:
          type: boolean
        pause_on_snoozed:
          type: boolean
        pause_when_pending_approval:
          type: boolean
        alert_behavior:
          type: string
          enum:
            - at_breach
            - before
            - never
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        all_first_response_time_enabled:
          type: boolean
        all_first_response_time_minutes:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: Total minutes, regardless of display unit.
        all_first_response_time_unit:
          type: string
          enum:
            - days
            - hours
            - minutes
            - months
            - weeks
          description: >-
            Display unit. Minutes must be divisible by the selected unit when
            the target is enabled.
        all_time_to_resolve_enabled:
          type: boolean
        all_time_to_resolve_minutes:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: Total minutes, regardless of display unit.
        all_time_to_resolve_unit:
          type: string
          enum:
            - days
            - hours
            - minutes
            - months
            - weeks
          description: >-
            Display unit. Minutes must be divisible by the selected unit when
            the target is enabled.
        low_first_response_time_enabled:
          type: boolean
        low_first_response_time_minutes:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: Total minutes, regardless of display unit.
        low_first_response_time_unit:
          type: string
          enum:
            - days
            - hours
            - minutes
            - months
            - weeks
          description: >-
            Display unit. Minutes must be divisible by the selected unit when
            the target is enabled.
        low_time_to_resolve_enabled:
          type: boolean
        low_time_to_resolve_minutes:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: Total minutes, regardless of display unit.
        low_time_to_resolve_unit:
          type: string
          enum:
            - days
            - hours
            - minutes
            - months
            - weeks
          description: >-
            Display unit. Minutes must be divisible by the selected unit when
            the target is enabled.
        medium_first_response_time_enabled:
          type: boolean
        medium_first_response_time_minutes:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: Total minutes, regardless of display unit.
        medium_first_response_time_unit:
          type: string
          enum:
            - days
            - hours
            - minutes
            - months
            - weeks
          description: >-
            Display unit. Minutes must be divisible by the selected unit when
            the target is enabled.
        medium_time_to_resolve_enabled:
          type: boolean
        medium_time_to_resolve_minutes:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: Total minutes, regardless of display unit.
        medium_time_to_resolve_unit:
          type: string
          enum:
            - days
            - hours
            - minutes
            - months
            - weeks
          description: >-
            Display unit. Minutes must be divisible by the selected unit when
            the target is enabled.
        high_first_response_time_enabled:
          type: boolean
        high_first_response_time_minutes:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: Total minutes, regardless of display unit.
        high_first_response_time_unit:
          type: string
          enum:
            - days
            - hours
            - minutes
            - months
            - weeks
          description: >-
            Display unit. Minutes must be divisible by the selected unit when
            the target is enabled.
        high_time_to_resolve_enabled:
          type: boolean
        high_time_to_resolve_minutes:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: Total minutes, regardless of display unit.
        high_time_to_resolve_unit:
          type: string
          enum:
            - days
            - hours
            - minutes
            - months
            - weeks
          description: >-
            Display unit. Minutes must be divisible by the selected unit when
            the target is enabled.
        urgent_first_response_time_enabled:
          type: boolean
        urgent_first_response_time_minutes:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: Total minutes, regardless of display unit.
        urgent_first_response_time_unit:
          type: string
          enum:
            - days
            - hours
            - minutes
            - months
            - weeks
          description: >-
            Display unit. Minutes must be divisible by the selected unit when
            the target is enabled.
        urgent_time_to_resolve_enabled:
          type: boolean
        urgent_time_to_resolve_minutes:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: Total minutes, regardless of display unit.
        urgent_time_to_resolve_unit:
          type: string
          enum:
            - days
            - hours
            - minutes
            - months
            - weeks
          description: >-
            Display unit. Minutes must be divisible by the selected unit when
            the target is enabled.
        alert_before_first_response_time_enabled:
          type: boolean
        alert_before_first_response_time_minutes:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: Total minutes, regardless of display unit.
        alert_before_first_response_time_unit:
          type: string
          enum:
            - days
            - hours
            - minutes
            - months
            - weeks
          description: >-
            Display unit. Minutes must be divisible by the selected unit when
            the target is enabled.
        alert_before_time_to_resolve_enabled:
          type: boolean
        alert_before_time_to_resolve_minutes:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: Total minutes, regardless of display unit.
        alert_before_time_to_resolve_unit:
          type: string
          enum:
            - days
            - hours
            - minutes
            - months
            - weeks
          description: >-
            Display unit. Minutes must be divisible by the selected unit when
            the target is enabled.
    business_calendar:
      type: object
      properties:
        uid:
          type: string
        name:
          type: string
        timezone:
          type: string
        slots:
          type: array
          items:
            type: object
            properties:
              on_sunday:
                type: boolean
              on_monday:
                type: boolean
              on_tuesday:
                type: boolean
              on_wednesday:
                type: boolean
              on_thursday:
                type: boolean
              on_friday:
                type: boolean
              on_saturday:
                type: boolean
              start_time:
                type: string
              end_time:
                type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````