Inspectorio REPORT-V2 API

The REPORT-V2 API from Inspectorio — 3 operation(s) for report-v2.

OpenAPI Specification

inspectorio-report-v2-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: File Management ANALYTICS REPORT-V2 API
  version: v3
servers:
- description: Production Environment
  url: https://files-integration.inspectorio.com
- description: Pre-Production Environment
  url: https://files-integration.pre.inspectorio.com
tags:
- name: REPORT-V2
paths:
  /api/v2/reports:
    get:
      operationId: listReportsV2
      description: List Reports V2 with additional data about report and CAPA
      parameters:
      - description: Type of the assessment between "Self Assessment" or "Verification Assessment"
        in: query
        name: assessment_type
        required: false
        schema:
          enum:
          - Self Assessment
          - Verification Assessment
          example: Self Assessment
          type: string
      - description: Status of the reports
        in: query
        name: report_status
        required: false
        schema:
          enum:
          - New
          - Verification Requested
          - Declined
          - Case Completed
          - Assessment Canceled
          example: New
          type: string
      - description: Requestee ID
        in: query
        name: requestee_id
        required: false
        schema:
          example: F_123
          type: string
      - description: Status of the CAPA
        in: query
        name: capa_status
        required: false
        schema:
          enum:
          - New
          - In-Progress
          - Assessment Requested
          - Submitted
          - In Review
          - Declined
          - Closed
          - Assessment Canceled
          - Reopened
          - Approved
          example: New
          type: string
      - description: Earliest date of the report date range
        in: query
        name: report_generate_date_from
        required: false
        schema:
          example: '2020-01-01'
          format: date
          type: string
      - description: From the date reports are updated
        in: query
        name: updated_date_from
        required: false
        schema:
          example: '2020-01-01'
          format: date
          type: string
      - description: Limit result of list
        in: query
        name: limit
        required: false
        schema:
          default: 10
          maximum: 100
          minimum: 1
          type: integer
      - description: To the date reports are updated
        in: query
        name: updated_date_to
        required: false
        schema:
          example: '2020-01-02'
          format: date
          type: string
      - description: Latest date of the report date range
        in: query
        name: report_generate_date_to
        required: false
        schema:
          example: '2020-01-02'
          format: date
          type: string
      - description: Order used to sort the reports whether ascending or descending
        in: query
        name: order
        required: false
        schema:
          default: report_generate_date:desc
          example: report_generate_date:desc
          type: string
      - in: query
        name: offset
        required: false
        schema:
          default: 0
          minimum: 0
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2ReportListResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestApiError'
          description: Bad request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthenticatedApiError'
          description: Unauthorized
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateApiError'
          description: Validation Error
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalApiError'
          description: Internal Error
      summary: List reports
      tags:
      - REPORT-V2
  /api/v2/reports/{report_id}:
    get:
      description: Get Report V2 with additional data about report and CAPA
      operationId: getReportV2
      parameters:
      - in: path
        name: report_id
        required: true
        schema:
          type: string
      - in: query
        name: capa_details
        required: false
        schema:
          type: boolean
        description: Get additional information about CAPA
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2ReportDetailResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestApiError'
          description: Bad request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthenticatedApiError'
          description: Unauthorized
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateApiError'
          description: Validation Error
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalApiError'
          description: Internal Error
      summary: Get Report
      tags:
      - REPORT-V2
  /api/v1/reports/{report_id}/steps/{step_id}:
    get:
      description: Get Step Execution
      operationId: getStepExecution
      parameters:
      - in: path
        name: step_id
        required: true
        schema:
          type: string
      - in: path
        name: report_id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StepExecutionResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestApiError'
          description: Bad request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthenticatedApiError'
          description: Unauthorized
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateApiError'
          description: Validation Error
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalApiError'
          description: Internal Error
      summary: Get Step Execution
      tags:
      - REPORT-V2
components:
  schemas:
    StepExecutionResult:
      properties:
        numberOfAreaToImproves:
          description: Number of areas to improve
          example: 3
          type: integer
        score:
          description: Step score
          example: 7/10
          nullable: true
          type: string
        rating:
          description: Step rating
          example: Good
          nullable: true
          type: string
        scoreInPercentage:
          description: Score in percentage
          example: 70%
          nullable: true
          type: string
        createdAt:
          description: Creation timestamp
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          nullable: true
          type: string
        sections:
          description: Sections data
          items:
            type: object
          type: array
      type: object
    BadRequestApiError:
      properties:
        errorCode:
          example: Generic
          type: string
        message:
          example: Bad Request
          type: string
      type: object
    V2ReportLabel:
      properties:
        name:
          description: Type of label assigned in the assignment/report/CAPA
          type: string
        value:
          description: Label assigned in the assignment/report/CAPA
          type: string
      type: object
    CustomLabel:
      properties:
        name:
          description: Name of the label
          type: string
        value:
          description: Value of the label
          type: string
      type: object
    StepExecutionQuestionAnswer:
      properties:
        choices:
          description: List of choices for a question
          items:
            $ref: '#/components/schemas/StepExecutionAnswerChoice'
          nullable: true
          type: array
        comments:
          description: List of comments in the question/answer set
          items:
            $ref: '#/components/schemas/StepExecutionComment'
          nullable: true
          type: array
        files:
          description: Files attached to the question/answer set
          items:
            type: object
          nullable: true
          type: array
        findingsIssues:
          description: List of finding issues
          items:
            $ref: '#/components/schemas/StepExecutionQuestionAnswerFindingsIssues'
          nullable: true
          type: array
        id:
          description: Unique identifier of the question/answer set in a questionnaire
          nullable: true
          type: string
        index:
          description: Indicates the position/order of the question/answer set in a questionnaire
          nullable: true
          type: integer
        isNotApplicable:
          description: Indicates whether the answer was set to 'Not Applicable'
          type: boolean
        locked:
          description: Indicates whether the question/answer set is locked or can be editable
          type: boolean
        mappedIssues:
          description: List of mapped issues
          items:
            $ref: '#/components/schemas/StepExecutionAnswerChoiceSubQuestionAnswerMappedIssue'
          nullable: true
          type: array
        number:
          description: Number of the question/answer set
          nullable: true
          type: integer
        parentId:
          description: Unique identifier of the parent question
          nullable: true
          type: string
        questionId:
          description: Unique identifier of the question
          nullable: true
          type: string
        text:
          description: Text describes the question/answer set
          nullable: true
          type: string
      type: object
    V2ReportListItem:
      properties:
        id:
          description: Unique report ID
          example: 5c40e755-3ab0-4fa9-9a44-f76a95f0e87d
          type: string
        caseId:
          description: Case ID (displays in UI)
          example: 100000
          type: string
        assessmentId:
          description: Assessment ID (displays in UI)
          example: 100000-2
          type: string
        status:
          description: Report Status (New, Assessment Cancelled, ...)
          example: New
          type: string
        reason:
          description: Assessment Reasons (optional - depending on the configuration in each standard)
          example: Annual Audit
          nullable: true
          type: string
        workflowName:
          description: Selected Workflow for the assessment report
          example: Factory Information
          type: string
        executionLocations:
          description: Execution Location (optional - depending on the configuration in each standard)
          example: '[Desktop Review]'
          items:
            type: string
          type: array
        updatedDate:
          description: System updated date. This field will be updated based on the changes in the Report and CAPA.
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          type: string
        type:
          description: Assessment type
          example: Verification Assessment
          enum:
          - Verification Assessment
          - Self Assessment
          type: string
        announcementType:
          description: Announcement type
          example: Announced
          enum:
          - Announced
          - Semi-Announced
          - Private
          - Unannounced
          type: string
        assessmentStatus:
          description: Assessment Status (New, Aborted, Submitted ...)
          example: Aborted
          type: string
        assessmentWindowStart:
          description: Start date of the Assessment Window
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          nullable: true
          type: string
        assessmentWindowEnd:
          description: End date of the Assessment Window
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          nullable: true
          type: string
        assessmentDueDate:
          description: Due date of the assessment
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          nullable: true
          type: string
        assessmentRequestDate:
          description: Request date of the assessment
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          type: string
        assessmentSubmitDate:
          description: Assessment Submitted date. This is also Report Generated date.
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          nullable: true
          type: string
        auditStartDate:
          description: Actual Audit Start date (This field has value only when the configuration is enabled in the standard)
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          nullable: true
          type: string
        auditEndDate:
          description: Actual Audit End date (This field has value only when the configuration is enabled in the standard)
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          nullable: true
          type: string
        auditTimeSpent:
          description: The time spent by Auditor (This field has value only when the configuration is enabled in the standard)
          example: 12
          nullable: true
          type: integer
        auditors:
          description: Auditors of the Assessment
          items:
            $ref: '#/components/schemas/V2ReportAuditor'
          type: array
        assignedUsers:
          description: Information of the assigned user
          items:
            $ref: '#/components/schemas/V2ReportDetailUser'
          type: array
        assignedRoles:
          description: Information of the assigned roles
          items:
            $ref: '#/components/schemas/V2ReportAssignedRole'
          type: array
        assessmentStartDate:
          description: The start date of the Assessment
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          nullable: true
          type: string
        completeCaseDate:
          description: The date the case was completed
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          nullable: true
          type: string
        reopenCaseDate:
          description: The date the case was reopen
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          nullable: true
          type: string
        reportGenerateDate:
          description: The date the report was generated
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          type: string
        caseExpirationDate:
          description: Expiration date of the Case
          example: '2024-09-30T10:36:56.057000+00:00'
          format: date-time
          nullable: true
          type: string
        customFields:
          description: Client's specific attributes
          nullable: true
          type: object
        standard:
          description: The Standard used for the Report
          allOf:
          - $ref: '#/components/schemas/NameVersion'
        stakeholders:
          description: Stakeholders information
          properties:
            requester:
              description: The organization who requested the assessment
              allOf:
              - $ref: '#/components/schemas/IdNameTypeOrgId'
              - properties:
                  contactPersons:
                    description: Requester contact persons
                    items:
                      $ref: '#/components/schemas/ContactPerson'
                    type: array
              type: object
            executors:
              description: The organization who executed the assessment
              items:
                allOf:
                - $ref: '#/components/schemas/Executor'
              type: array
            requestee:
              description: The organization who is the target of the assessment
              allOf:
              - $ref: '#/components/schemas/IdNameTypeOrgId'
              - $ref: '#/components/schemas/OrgLocationAddress'
              - properties:
                  contactPersons:
                    description: Requester contact persons
                    items:
                      $ref: '#/components/schemas/ContactPerson'
                    type: array
              type: object
            selectedPartners:
              description: The supplier who assciated with the requestee (only contains value if the standard setting - Assessment setting select "Requestee and partners")
              items:
                allOf:
                - $ref: '#/components/schemas/IdNameTypeOrgId'
                - properties:
                    contactPersons:
                      description: Partner contact persons
                      items:
                        $ref: '#/components/schemas/ContactPerson'
                      type: array
                    address:
                      description: Address
                      example: 123 Main Street
                      nullable: true
                      type: string
                    country:
                      description: Country
                      example: US
                      nullable: true
                      type: string
              type: array
          type: object
        totalFindings:
          description: List of findings. Only contains value if the report is issue-based.
          items:
            $ref: '#/components/schemas/V2ReportDetailFindings'
          type: array
        rating:
          description: Rating of the report. Calculated based on the rule setting of the standard and the score/issues found in the assessment.
          example: Good
          nullable: true
          type: string
        score:
          description: Score of the Report. Calculated based on the number of issue found or the selected answers in the assessment.
          example: 8/10
          nullable: true
          type: string
        scoreInPercentage:
          description: Score of the Report in percentage. Calculated based on the number of issue found or the selected answers in the assessment compare to the maximum score.
          example: 80%
          nullable: true
          type: string
        numberOfAreaToImproves:
          description: The total count of area to improves after the assessment is completed.
          example: 12
          type: integer
        reportLabels:
          description: Labels of the report
          items:
            $ref: '#/components/schemas/V2ReportLabel'
          type: array
        escalations:
          description: List of escalations of the assessment
          items:
            $ref: '#/components/schemas/V2ReportEscalation'
          type: array
        capa:
          allOf:
          - $ref: '#/components/schemas/V2ReportListCapa'
          description: Information of the CAPA, Corrective Action and Preventive Action
          nullable: true
          type: object
      type: object
    StepExecutionAnswerChoice:
      properties:
        files:
          description: Files attached to the choice/answer for the question
          items:
            type: object
          nullable: true
          type: array
        id:
          description: Unique identifier of the choice/answer for the question
          example: 12308e4f-67b5-4421-a0a4-2ab365e8a39f
          nullable: true
          type: string
        option:
          allOf:
          - $ref: '#/components/schemas/StepExecutionAnswerChoiceSubQuestionAnswerChoiceOption'
          description: Option selected for the question
          example: 12308e4f-67b5-4421-a0a4-2ab365e8a39f
        optionId:
          description: Unique identifier of the option selected as the answer for the question
          nullable: true
          type: string
        subQuestionAnswers:
          description: List of sub-questions and answers
          items:
            $ref: '#/components/schemas/StepExecutionAnswerChoiceSubQuestionAnswer'
          nullable: true
          type: array
        text:
          description: Text describing the choice/answer for the question
          nullable: true
          type: string
      type: object
    StepExecutionAnswerChoiceSubQuestionAnswer:
      properties:
        choices:
          description: List of choices for the question
          items:
            $ref: '#/components/schemas/StepExecutionAnswerChoiceSubQuestionAnswerChoice'
          nullable: true
          type: array
        files:
          description: Files attached to the question
          items:
            type: object
          nullable: true
          type: array
        id:
          description: Unique identifier of the question in the question/answer set
          nullable: true
          type: string
        isNotApplicable:
          description: Indicates whether the answer was set to 'Not Applicable'
          type: boolean
        mappedIssues:
          description: List of mapped issues of the question
          items:
            $ref: '#/components/schemas/StepExecutionAnswerChoiceSubQuestionAnswerMappedIssue'
          nullable: true
          type: array
        number:
          description: Number of the question
          nullable: true
          type: integer
        parentId:
          description: Unique identifier of the parent question
          nullable: true
          type: string
        questionId:
          description: Unique identifier of the question
          nullable: true
          type: string
        text:
          description: Text describes the question
          nullable: true
          type: string
      type: object
    StepExecutionAppTestResult:
      properties:
        factoryType:
          allOf:
          - $ref: '#/components/schemas/IdName'
          description: Type of factory in the app test result
        sectionId:
          description: Unique identifier of the section of the app test result
          nullable: true
          type: string
      type: object
    StepExecutionForm:
      properties:
        description:
          description: Description of the form in the step execution
          nullable: true
          type: string
        schema:
          type: object
        version:
          description: Version of the form in the step execution
          example: '1.0'
          nullable: true
          type: string
      type: object
    StepExecutionOptionAction:
      properties:
        description:
          description: Description of the question/answer
          nullable: true
          type: string
        factoryType:
          allOf:
          - $ref: '#/components/schemas/IdName'
          description: Type of factory
        id:
          description: Unique identifier of the question/answer
          example: 1231cddf-1829-49dc-aff4-2d7043d8c1db
          nullable: true
          type: string
        optionId:
          description: Unique identifier of the option of the question/answer
          example: 123f5fed-29ef-42a1-8f0b-eb58dc87b84d
          nullable: true
          type: string
        questionIds:
          description: List of unique identifiers of the questions
          example: 123df8c5-6b69-4ae2-9cb8-f94fff3ce1f2
          items:
            type: string
          nullable: true
          type: array
        questions:
          description: Recursive list of questions in the assessment
          items:
            type: object
          nullable: true
          type: array
        type:
          description: Type of question/answer
          nullable: true
          type: string
      type: object
    IdName:
      properties:
        id:
          description: Unique identifier
          nullable: true
          type: string
        name:
          description: Name
          nullable: true
          type: string
      type: object
    StepExecutionOption:
      properties:
        actions:
          description: List of actions
          items:
            $ref: '#/components/schemas/StepExecutionOptionAction'
          nullable: true
          type: array
        content:
          description: Content of the option
          nullable: true
          type: string
        id:
          description: Unique identifier of the option
          nullable: true
          type: string
        isNoneOfTheAbove:
          description: Is 'true' if 'None of the above' has been selected, 'false' otherwise
          type: boolean
      type: object
    StepExecutionQuestionAnswerFindingsAttachment:
      properties:
        id:
          description: Unique identifier of the attachment in the step execution
          nullable: true
          type: string
        name:
          description: Name of the attachment in the step execution
          nullable: true
          type: string
        url:
          description: URL of the attachment in the step execution
          nullable: true
          type: string
      type: object
    V2ReportListCapa:
      properties:
        id:
          description: Unique identifier of the CAPA
          example: 1235330e-b74b-4be6-8d8a-cb0560effc11
          type: string
        status:
          description: Status of the CAPA
          example: NEW
          type: string
        capaLabels:
          description: List of CAPA labels
          items:
            $ref: '#/components/schemas/NameValue'
          type: array
      type: object
    Capa:
      properties:
        id:
          description: Unique identifier of the CAPA
          example: 1235330e-b74b-4be6-8d8a-cb0560effc11
          type: string
        status:
          description: Status of the CAPA
          example: New
          type: string
        capaLabels:
          description: List of CAPA labels
          items:
            properties:
              name:
                description: Label field name
                example: Priority
                type: string
              value:
                description: Label value
                example: High
                type: string
          type: array
        updatedDate:
          description: Last update date of the CAPA (available when capa_details=true)
          example: '2025-12-12T10:48:07.191000+00:00'
          format: date-time
          type: string
        updatedByUser:
          description: User who last updated the CAPA (available when capa_details=true)
          example: john_doe@example.com
          nullable: true
          type: string
        approvedDate:
          description: Date when CAPA was approved (available when capa_details=true)
          example: '2025-12-12T10:48:07.191000+00:00'
          format: date-time
          nullable: true
          type: string
        createdDate:
          description: Creation date of the CAPA (available when capa_details=true)
          example: '2025-12-12T10:48:07.191000+00:00'
          format: date-time
          type: string
        dueDate:
          description: Due date for CAPA completion (available when capa_details=true)
          example: '2025-12-31T00:00:00.000000+00:00'
          format: date-time
          nullable: true
          type: string
        areaToImproves:
          description: List of area to improves in this CAPA (available when capa_details=true)
          items:
            $ref: '#/components/schemas/DetailedAreaToImprove'
          type: array
      type: object
    V2ReportEscalation:
      properties:
        createdDate:
          description: Date when the Escalation was created
          format: date-time
          example: '2024-09-30T10:36:56.057000+00:00'
          type: string
        status:
          description: Status of the escalation
          type: string
        resolvedDate:
          description: Resolution date of the escalation
          format: date-time
          example: '2024-09-30T10:36:56.057000+00:00'
          nullable: true
          type: string
        escalatedTo:
          description: The user who received the escalation
          items:
            $ref: '#/components/schemas/V2ReportDetailUser'
          type: array
        escalatedBy:
          $ref: '#/components/schemas/V2ReportDetailUser'
        resolvedByUser:
          $ref: '#/components/schemas/V2ReportDetailUser'
        note:
          description: Escalation note
          type: string
        reasons:
          description: Escalation reason
          items:
            type: string
          type: array
        exceptionReasons:
          description: Escalation exception reason
          items:
            type: string
          type: array
        reviewerComment:
          description: Reviewer comment
          nullable: true
          type: string
      type: object
    AtiLinkedFinding:
      properties:
        scheme:
          description: Scheme
          type: string
          nullable: true
        severity:
          description: Severity value
          example: Informational
          type: string
          nullable: true
        title:
          description: Title
          example: Testing finding description
          type: string
          nullable: true
        category:
          description: Category
          example: Section 1
          type: string
          nullable: true
        subCategory:
          description: Sub-category
          example: Section 1.1
          type: string
          nullable: true
        issueNumber:
          description: Issue number
          example: 376882
          type: string
          nullable: true
        description:
          description: Issue description
          example: This is a detailed description of the issue.
          type: string
          nullable: true
        schemeData:
          description: Scheme data
          type: object
          nullable: true
      type: object
    StepExecutionAnswerChoiceSubQuestionAnswerChoiceOption:
      properties:
        content:
          description: Content of the option available for the question
          nullable: true
          type: string
        id:
          description: Unique identifier of the option available for the question
          nullable: true
          type: string
      type: object
    V2ReportAssignedRole:
      properties:
        name:
          description: Name of the role
          example: UL China
          type: string
      type: object
    StepExecutionQuestionAnswerFindingsUser:
      properties:
        email:
          description: Email address of the user
          example: john@acme.com
          nullable: true
          type: string
        id:
          description: Unique identifier of the user
          example: cc94fc4e-dcbe-44a5-863e-3255281e02ca
          nullable: true
          type: string
        name:
          description: Name of the auditor
          example: John Doe
          nullable: true
          type: string
      type: object
    AreaToImproveField:
      properties:
        improvementAreaId:
          description: ID of the improvement area
          example: 07e1d9ef-aebe-4901-b26c-941cb5983832
          type: string
        fieldId:
          description: ID of the field
          example: b62ca36f-fa86-4ee0-ae96-bad52c2c46b2
          type: string
        field:
          description: Field definition
          properties:
            id:
     

# --- truncated at 32 KB (79 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/inspectorio/refs/heads/main/openapi/inspectorio-report-v2-api-openapi.yml