get:
  operationId: listInvocationStatus
  tags:
    - Triggers
  summary: List Latest Invocation Statuses
  description: >-
    Gets a list of latest invocation statuses.

    Statuses of successful invocations are available for up to 24 hours. Statuses of failed invocations are available for up to 48 hours.

    This endpoint may only fetch up to 2000 invocations, and should not be treated as a representation of the full history of invocations.
  parameters:
    - $ref: '../../v3/parameters/limit.yaml'
    - $ref: '../../v3/parameters/offset.yaml'
    - $ref: '../../v3/parameters/count.yaml'
    - in: query
      name: filters
      required: false
      schema:
        type: string
      description: >-
        Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results)


        Filtering is supported for the following fields and operators:


        **triggerId**: *eq*
        **subscriptionId**: *eq*
      example: 'triggerId eq "idn:access-request-dynamic-approver"'
    - in: query
      name: sorters
      required: false
      schema:
        type: string
        format: comma-separated
      description: >-
        Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results)


        Sorting is supported for the following fields:


        **triggerId**
        **subscriptionName**
        **created**
        **completed**
      example: 'created'
  responses:
    '200':
      description:  List of latest invocation statuses.
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '../schemas/InvocationStatus.yaml'
    '400':
      $ref: '../../v3/responses/400.yaml'
    '401':
      $ref: '../../v3/responses/401.yaml'
    '403':
      $ref: '../../v3/responses/403.yaml'
    '429':
      $ref: '../../v3/responses/429.yaml'
    '500':
      $ref: '../../v3/responses/500.yaml'
  security:
    - oauth2:
        - 'idn:trigger-service-invocation-status:read'
