# Getting a Vision Test

To get the details of a vision test, use the `visionTestJob` query. Pass the `jobId` returned from the `startVisionTest` mutation as an input.

[Click here to see the visionTestJob GraphQL reference](/reference/visibly-api/queries/visionTestJob)

## Getting a contact lens vision test details using the `visionTestJob` query

Query:


```graphql
query VisionTestJob($jobId: String!) {
  visionTestJob(jobId: $jobId) {
    jobId
    reason
    status
    contacts {
      prescriptions {
        issueDate
        expirationDate
        products {
          right {
            productId
            manufacturer
            brand
            schedule
            type
            diameter
            baseCurve
            sphere
            axis
            cylinder
            addition
            dominance
            color
            packageSize
            quantity
          }
          left {
            productId
            manufacturer
            brand
            schedule
            type
            diameter
            baseCurve
            sphere
            axis
            cylinder
            addition
            dominance
            color
            packageSize
            quantity
          }
        }
      }
    }
  }
}
```

Variables:


```json
{
  "jobId": "<jobId from startVisionTest>"
}
```

## Getting a glasses vision test details using the `visionTestJob` query

Query:


```graphql
query VisionTestJob($jobId: String!) {
  visionTestJob(jobId: $jobId) {
    jobId
    reason
    status
    glasses {
      prescriptions {
        issueDate
        expirationDate
        corrections {
          right {
            sphere
            cylinder
            axis
            addition
          }
          left {
            sphere
            cylinder
            axis
            addition
          }
        }
      }
    }
  }
}
```

Variables:


```json
{
  "jobId": "<jobId from startVisionTest>"
}
```