---
title: "Get report"
url: "https://developers.vzconnect.com/apis/fleet-inspections-api/versions/e4689b0c-c26d-40d6-b023-5303083c4a3f/operations/reports-id-get"
---

> Full API specification: https://developers.vzconnect.com/apis/fleet-inspections-api/versions/e4689b0c-c26d-40d6-b023-5303083c4a3f.md

# Get report

`GET` `/inspections/reports/{report-id}`

Operation ID: `reports-id-get`

Returns an individual inspection report based on Report Id

## Path parameters

- `report-id` (string, required) - Uniqiue Identifier of Report

## Responses

- `200` - Ok
- `400` - Bad Request
- `401` - Unauthorized
- `403` - Forbidden
- `404` - Not Found
- `429` - Too Many Requests
- `default` - Internal Server Error

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Fleet Inspections API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /inspections/reports/{report-id}:
    parameters:
      - name: report-id
        in: path
        description: Uniqiue Identifier of Report
        required: true
        schema:
          $ref: "#/components/schemas/Identifier"
    get:
      tags:
        - Fleet Inspections API
      summary: Get report
      description: Returns an individual inspection report based on Report Id
      operationId: reports-id-get
      responses:
        "200":
          description: Ok
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Report"
              examples:
                Report details of a report:
                  value:
                    submittedAt: 2024-03-26T21:14:19.749Z
                    templateId: wpZ1FS6r5Px1GSc6
                    inspectable:
                      inspectableType: VEHICLE
                      inspectableRegistrationNumber: 191D2234
                      inspectableName: Skoda
                      inspectableId: T7nMzcDXa7U4YU8D
                      inspectableIdentificationNumber: BOW3658575
                    reportType: PRE_TRIP
                    reportId: DpW4kx5V1GXgmP2Q
                    results:
                      - resultValue: "130535"
                        templateItemId: WCm5wdUzwVtSHTu8
                        resultType: OK
                      - resultValue: 2019-07-30T06:43:40.252Z
                        templateItemId: xpbxwV7gHuBFZ63x
                        resultType: OK
                      - resultValue: 53.3243941,-6.3282749
                        templateItemId: ZgaDS1KtW34AfyaR
                        resultType: OK
                      - defects:
                          - linkedAt: 2024-04-26T21:14:18.229Z
                            defectId: KCEz2nbmwmucUN3x
                        templateItemId: ktNp8KT16Y8jfZjd
                        resultType: DEFECT
                      - templateItemId: Hf477tPdFeGNZgWf
                        resultType: OK
                      - resultValue: i64tlg5zfgizqsah
                        templateItemId: j8rd3fe1l0vr73br
                        resultType: OK
                        attachments:
                          - attachmentId: i64tlg5zfgizqsah
                    defects:
                      - linkedAt: 2024-04-16T12:07:02.229Z
                        defectId: ai2ll3069rx0xz26
                      - linkedAt: 2024-04-16T12:07:02.229Z
                        defectId: t98yrewtug0rmbia
                    attachments:
                      - linkedAt: 2024-04-16T12:07:02.229Z
                        attachmentId: 1FDgE6LtYEYJdMyY
                    comment: Vehicle is covered in mud
                    operator:
                      operatorType: DRIVER
                      operatorName: Mike
                      operatorId: MH5wPMq6uUBCwK2L
                    links:
                      - method: GET
                        rel: self
                        href: /reports/DpW4kx5V1GXgmP2Q
                      - method: GET
                        rel: appendix
                        href: /analytics/events?trace_id=8f9f6d49d8ad498f803e5775756c52b6
                    inspectionType: DVIR
        "400":
          $ref: "#/components/responses/BadRequest"
          description: Bad request. The request is not valid.
        "401":
          $ref: "#/components/responses/Unauthorized"
          description: Unauthorized. The authorization token is missing or not valid.
        "403":
          $ref: "#/components/responses/Forbidden"
          description: Forbidden. The caller is not allowed to access this resource.
        "404":
          $ref: "#/components/responses/NotFound"
          description: Not found.
        "429":
          $ref: "#/components/responses/TooManyRequests"
          description: Too many requests. The rate limit has been exceeded.
        default:
          $ref: "#/components/responses/InternalServerError"
          description: An unexpected error occurred.
      deprecated: false
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/inspections/reports/[^/]+/?$
components:
  schemas:
    Identifier:
      maxLength: 120
      minLength: 1
      pattern: ^[A-Za-z0-9-]{1,120}$
      type: string
      description: Unique identifier for a given resource.
    Report:
      title: Report
      required:
        - inspectable
        - inspectionType
        - operator
        - reportType
        - results
        - submittedAt
        - templateId
      type: object
      properties:
        submittedAt:
          maxLength: 24
          minLength: 24
          type: string
          description: Report submitted time as UTC in RFC 3339-ISO8601 internet profile
          format: date-time
        templateId:
          $ref: "#/components/schemas/Identifier"
        inspectable:
          $ref: "#/components/schemas/Inspectable"
        relatedDefectsStatus:
          allOf:
            - $ref: "#/components/schemas/InspectionStatus"
            - maxLength: 120
              minLength: 1
              pattern: ^[^\n]+$
              type: string
              readOnly: true
        analyticsEvents:
          maxItems: 100
          minItems: 0
          type: array
          description: Analytics events related to the report
          items:
            $ref: "#/components/schemas/AnalyticsTraceEvent"
        reportType:
          $ref: "#/components/schemas/ReportType"
        reportId:
          maxLength: 120
          minLength: 1
          pattern: ^[A-Za-z0-9-]{1,120}$
          type: string
          description: Unique identifier for a report.
          readOnly: true
        results:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Outcomes of inspection items
          items:
            $ref: "#/components/schemas/ReportItemResult"
        defects:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Defects in the report outside of *results*
          items:
            type: object
            properties:
              linkedAt:
                maxLength: 24
                minLength: 24
                type: string
                description: Link creation time as UTC in RFC 3339-ISO8601 internet profile
                format: date-time
                readOnly: true
              defectId:
                $ref: "#/components/schemas/Identifier"
            additionalProperties: false
            description: Defects related to the report outside of *results*
        attachments:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Attachments in the report
          items:
            oneOf:
              - allOf:
                  - $ref: "#/components/schemas/Attachment"
                  - type: object
                    properties:
                      linkedAt:
                        maxLength: 24
                        minLength: 24
                        type: string
                        description: Link creation time as UTC in RFC 3339-ISO8601 internet profile
                        format: date-time
                        readOnly: true
                    additionalProperties: true
                    description: Attachment related to the report
                    readOnly: true
              - type: object
                properties:
                  linkedAt:
                    maxLength: 24
                    minLength: 24
                    type: string
                    description: Link creation time as UTC in RFC 3339-ISO8601 internet profile
                    format: date-time
                    readOnly: true
                  attachmentId:
                    $ref: "#/components/schemas/Identifier"
                additionalProperties: true
                description: Attachment related to the report
        comment:
          maxLength: 2000
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: Notes about the report
          nullable: true
        operator:
          $ref: "#/components/schemas/Operator"
        links:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Related resources
          readOnly: true
          items:
            $ref: "#/components/schemas/Link"
        inspectionType:
          $ref: "#/components/schemas/InspectionType"
      additionalProperties: false
      description: Inspection details of a vehicle or other asset
    Inspectable:
      type: object
      properties:
        inspectableType:
          $ref: "#/components/schemas/InspectableType"
        inspectableRegistrationNumber:
          maxLength: 120
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: Registration number of the asset
          readOnly: true
        inspectableName:
          maxLength: 120
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: Name of the asset
          readOnly: true
        inspectableId:
          $ref: "#/components/schemas/InspectableId"
        inspectableIdentificationNumber:
          maxLength: 120
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: Identification number of the asset
          readOnly: true
      additionalProperties: false
      description: Asset under inspection
    InspectionStatus:
      type: string
      description: >
        Overall status of all related CRITICAL defects. Calculated only when
        *relatedDefects* are included into the response.
          - PASSED when no CRITICAL defects were reported
          - FAILED when at least one reported CRITICAL defect is PENDING
          - RESOLVED when all CRITICAL defects are FIXED or CERTIFIED and at least one has status FIXED
          - CERTIFIED when all reported CRITICAL defects are CERTIFIED
      enum:
        - PASSED
        - FAILED
        - RESOLVED
        - CERTIFIED
    AnalyticsTraceEvent:
      title: Analytics trace event
      required:
        - name
        - timestamp
      type: object
      properties:
        name:
          maxLength: 20
          minLength: 18
          pattern: ^(inspection\.started|inspection\.submitted)$
          type: string
          description: Type of event related to the originating occurrence
        traceId:
          maxLength: 32
          minLength: 32
          pattern: ^[a-f0-9]{32}$
          type: string
          description: Unique identifier for a distributed trace the event is part of
          readOnly: true
        analyticsEventId:
          maxLength: 120
          minLength: 1
          pattern: ^[A-Za-z0-9-]{1,120}$
          type: string
          description: Unique identifier of an analytics event.
          readOnly: true
        timestamp:
          maxLength: 24
          minLength: 24
          type: string
          description: Time when the event occurred in RFC 3339-ISO8601 internet profile
          format: date-time
      additionalProperties: false
      description: >
        Named occurrence at an instant in time. It provides additional specifics
        about the occurrence.

        Examples of Events might include things like uncaught exceptions, button
        clicks, user logout, network connection severed, etc.
    ReportType:
      type: string
      description: Type of the inspection report.
      enum:
        - PRE_TRIP
        - POST_TRIP
    ReportItemResult:
      title: Report Item Result
      required:
        - resultType
        - templateItemId
      type: object
      properties:
        templateItemId:
          $ref: "#/components/schemas/Identifier"
        attachments:
          maxItems: 1
          minItems: 0
          uniqueItems: true
          type: array
          description: Attachments for the report item result
          items:
            type: object
            properties:
              attachmentId:
                $ref: "#/components/schemas/Identifier"
            description: Attachment related to the report item result
        resultType:
          type: string
          description: Result of the Report Item.
          enum:
            - OK
            - DEFECT
        resultId:
          maxLength: 120
          minLength: 1
          pattern: ^[A-Za-z0-9-]{1,120}$
          type: string
          description: Unique identifier of a report which the Item belongs to.
          readOnly: true
        resultValue:
          maxLength: 256
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: Result outcome, depends on the Report Item type. Not applicable to
            CHECK items.
        defects:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Defects raised for a Report Item
          items:
            type: object
            properties:
              linkedAt:
                maxLength: 24
                minLength: 24
                type: string
                description: Link creation time as UTC in RFC 3339-ISO8601 internet profile
                format: date-time
                readOnly: true
              defectId:
                $ref: "#/components/schemas/Identifier"
            additionalProperties: false
            description: Defect related to the report item
      additionalProperties: false
      description: Template Item result within a given report.
    Attachment:
      title: Attachment
      required:
        - attachmentType
        - author
      type: object
      properties:
        data:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Various media for an attachment
          readOnly: true
          items:
            type: object
            properties:
              rel:
                maxLength: 120
                minLength: 1
                pattern: ^(enclosure)$
                type: string
                description: |
                  Meaning of the values [described at IANA](https://www.iana.org/assignments/link-relations/link-relations.xhtml)
                    - *enclosure* - media, typically photo or document related to the resource, potentially large and might require special handling
              href:
                maxLength: 2000
                minLength: 1
                pattern: ^[^\n]+$
                type: string
                description: URL of relevant data
                format: uri
              method:
                type: string
                description: HTTP method to interact with data
                enum:
                  - GET
                  - PUT
              length:
                maximum: 6291456
                minimum: 1
                type: integer
                description: Size of a data referenced in *href* in bytes
                format: int32
              tags:
                maxItems: 100
                minItems: 0
                uniqueItems: true
                type: array
                description: Labels and attributes of a data enclosure
                readOnly: true
                items:
                  maxLength: 120
                  minLength: 1
                  pattern: ^[a-z0-9]+$
                  type: string
                  description: Individual label or attribute of a data enclosure
                  readOnly: true
            additionalProperties: false
        name:
          maxLength: 120
          minLength: 1
          pattern: ^[^\n]+$
          type: string
          description: Name of an attachment.
          nullable: true
        comment:
          maxLength: 2000
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: Attachment details
          nullable: true
        enclosure:
          required:
            - contentLength
            - contentType
          type: object
          properties:
            contentLength:
              maximum: 6291456
              minimum: 1
              type: integer
              description: Size of media in bytes
              format: int32
            contentType:
              maxLength: 120
              minLength: 3
              pattern: ^(image\/jpeg|image\/png)$
              type: string
              description: Media type specifying format of the contents. See [RFC
                9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type)
                for details
          additionalProperties: false
          description: Related media, typically photo or document, potentially large and
            thus requiring separate upload facility
          writeOnly: true
        attachmentId:
          maxLength: 120
          minLength: 1
          pattern: ^[A-Za-z0-9-]{1,120}$
          type: string
          description: Unique identifier of an attachment.
          readOnly: true
        author:
          required:
            - authorType
          type: object
          properties:
            name:
              maxLength: 120
              minLength: 1
              pattern: ^[^\n]+$
              type: string
              description: Name of the author created an attachment.
              readOnly: true
            authorId:
              maxLength: 120
              minLength: 1
              pattern: ^[A-Za-z0-9-]{1,120}$
              type: string
              description: Unique identifier of the author created an attachment.
              readOnly: true
            authorType:
              type: string
              description: Person that created an attachment
              enum:
                - OPERATOR
                - COMPLIANCE_MANAGER
          additionalProperties: false
          description: Person that created an attachment
        attachmentType:
          $ref: "#/components/schemas/AttachmentType"
        links:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Related resources
          readOnly: true
          items:
            $ref: "#/components/schemas/Link"
      additionalProperties: true
      description: |
        Inspection attachment: photo, signature, document, comment.

        *name* would be used as file name if enclosure is uploaded.
    Operator:
      type: object
      properties:
        operatorType:
          $ref: "#/components/schemas/OperatorType"
        operatorName:
          maxLength: 120
          minLength: 1
          pattern: ^[^\n]+$
          type: string
          description: Name of an operator.
          readOnly: true
        operatorId:
          $ref: "#/components/schemas/Identifier"
      additionalProperties: false
      description: Person performing an inspection
    Link:
      title: Link
      required:
        - href
        - rel
      type: object
      properties:
        rel:
          maxLength: 10
          minLength: 4
          pattern: ^(appendix|next|prev|self)$
          type: string
          description: |
            Meaning of the values [described at IANA](https://www.iana.org/assignments/link-relations/link-relations.xhtml)
              - *appendix* - refers to documents serving as an appendix to the current resource
              - *next* - context is a part of a series, and that the next in the series is the link target
              - *prev* - context is a part of a series, and that the previous in the series is the link target
              - *self* - URI of a resource or current page of the collection
        method:
          type: string
          description: HTTP method to interact with linked resource
          enum:
            - GET
            - PUT
        title:
          maxLength: 120
          minLength: 1
          pattern: ^[^\n]+$
          type: string
          description: Relation type with the target resource as human-readable text
        href:
          maxLength: 2000
          minLength: 1
          pattern: ^[^\n]+$
          type: string
          description: URL of linked resource
          format: uri-reference
      additionalProperties: false
      description: Reference to another resource
    InspectionType:
      type: string
      description: An inspectionType can be of an enum
      enum:
        - DVIR
    ProblemJson:
      title: ProblemJson
      type: object
      properties:
        type:
          maxLength: 2000
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: A URI reference that identifies the problem type.
          format: uri
        detail:
          maxLength: 2000
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: A human-readable explanation specific to this occurrence of the
            problem.
        status:
          maximum: 599
          minimum: 300
          type: integer
          description: The HTTP status code generated by the origin server for this
            occurrence of the problem.
          format: int32
        errors:
          maxItems: 120
          minItems: 1
          uniqueItems: true
          type: array
          description: An extension that contains a list of individual error occurrences
            found, with details and a pointer to the location of each. Use this
            extension to convey more than one errors of the same type.
          items:
            type: object
            properties:
              debugId:
                maxLength: 120
                minLength: 0
                pattern: ^[^\n]*$
                type: string
                description: A unique error identifier string generated on the service-side and
                  logged for correlation purposes.
              pointer:
                maxLength: 120
                minLength: 0
                pattern: ^(\/[^\n]+)*$
                type: string
                description: A pointer to locate the problem within the request's content using
                  a [JSON Pointer](https://www.rfc-editor.org/info/rfc6901).
                  This extension is only applicable in case of 4xx range of
                  errors.
              detail:
                maxLength: 2000
                minLength: 0
                pattern: ^[^\n]*$
                type: string
                description: A human-readable explanation specific to this occurrence of the
                  problem.
            additionalProperties: false
        instance:
          maxLength: 2000
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: A URI reference that identifies the specific occurrence of the
            problem. It may or may not yield further information if
            dereferenced.
          format: uri
        debugId:
          maxLength: 120
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: A unique error identifier string generated on the service-side and
            logged for correlation purposes.
        pointer:
          maxLength: 120
          minLength: 0
          pattern: ^(\/[^\n]+)*$
          type: string
          description: A pointer to locate the problem within the request's content using
            a [JSON Pointer](https://www.rfc-editor.org/info/rfc6901). This
            extension is only applicable in case of 4xx range of errors.
        title:
          maxLength: 2000
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: A short, human-readable summary of the problem type.
      additionalProperties: false
      description: JSON Schema for HTTP Problems as defined by RFC 9457
    InspectableType:
      type: string
      description: >
        Type of an inspectable asset.
          - VEHICLE when Vehicle is inspected
          - POWERED_ASSET when assets that have a power source is inspected
          - NON_POWERED_ASSET when assets that do not have a power source is inspected
      enum:
        - VEHICLE
        - POWERED_ASSET
        - NON_POWERED_ASSET
    InspectableId:
      maxLength: 120
      minLength: 1
      pattern: ^[A-Za-z0-9-]{1,120}$
      type: string
      description: Unique ID for an inspectable, i.e. asset/vehicle (asset ID/vehicle ID).
    AttachmentType:
      type: string
      description: Type of attachment, example Signature, Comment, Photo
      enum:
        - SIGNATURE
        - COMMENT
        - PHOTO
    OperatorType:
      type: string
      description: Role of a person who prepared the report
      enum:
        - DRIVER
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ProblemJson"
    Unauthorized:
      description: Unauthorized
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ProblemJson"
    Forbidden:
      description: Forbidden
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ProblemJson"
    NotFound:
      description: Not Found
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ProblemJson"
    TooManyRequests:
      description: Too Many Requests
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ProblemJson"
    InternalServerError:
      description: Internal Server Error
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ProblemJson"
```
