> ## 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.

# Retrieve an SLA Rule

> Fetch an SLA rule with its targets, pause and alert settings. This endpoint may change or be removed without prior notice.



## OpenAPI

````yaml /api-reference/openapi.yml get /v1/sla_rules/{uid}
openapi: 3.0.1
info:
  title: Siit Public API
  version: v0
servers:
  - url: https://api.siit.io
security: []
paths:
  /v1/sla_rules/{uid}:
    parameters:
      - name: uid
        in: path
        description: The UID of the SLA rule
        required: true
        schema:
          type: string
    get:
      tags:
        - Unstable
        - SLA Rule
      summary: Retrieve an SLA Rule
      description: >-
        Fetch an SLA rule with its targets, pause and alert settings. This
        endpoint may change or be removed without prior notice.
      parameters:
        - 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
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sla_rule'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors_object'
      security:
        - bearer: []
components:
  schemas:
    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.
    errors_object:
      type: object
      properties:
        error:
          type: string
        troubleshoot:
          type: string
    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

````