---
title: "Get images that were sent to your prediction endpoint."
method: POST
path: "/projects/{projectId}/predictions/query"
tags: ["PredictionsApi"]
---

# Get images that were sent to your prediction endpoint.

`POST /projects/{projectId}/predictions/query`

## Path parameters

- `projectId` string, uuid, required

## Request body

- PredictionQueryToken
  - `session` string
  - `continuation` string
  - `maxCount` integer
  - `orderBy` 'Newest' | 'Oldest' | 'Suggested'
  - `tags` PredictionQueryTag[]
    - `id` string, uuid
    - `minThreshold` number, float
    - `maxThreshold` number, float
  - `iterationId` string, uuid, nullable
  - `startTime` string, date-time, nullable
  - `endTime` string, date-time, nullable
  - `application` string

## Response `200`

OK

- PredictionQueryResult — Query result of the prediction images that were sent to your prediction endpoint.
  - `token` PredictionQueryToken
    - `session` string
    - `continuation` string
    - `maxCount` integer
    - `orderBy` 'Newest' | 'Oldest' | 'Suggested'
    - `tags` PredictionQueryTag[]
      - `id` string, uuid
      - `minThreshold` number, float
      - `maxThreshold` number, float
    - `iterationId` string, uuid, nullable
    - `startTime` string, date-time, nullable
    - `endTime` string, date-time, nullable
    - `application` string
  - `results` StoredImagePrediction[] — Result of an image prediction request.
    - `resizedImageUri` string — The URI to the (resized) prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.
    - `thumbnailUri` string — The URI to the thumbnail of the original prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.
    - `originalImageUri` string — The URI to the original prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.
    - `domain` string, uuid — Domain used for the prediction.
    - `id` string, uuid — Prediction Id.
    - `project` string, uuid — Project Id.
    - `iteration` string, uuid — Iteration Id.
    - `created` string, date-time — Date this prediction was created.
    - `predictions` Prediction[] — List of predictions.
      - `probability` number, float — Probability of the tag.
      - `tagId` string, uuid — Id of the predicted tag.
      - `tagName` string, nullable — Name of the predicted tag.
      - `boundingBox` BoundingBox — Bounding box that defines a region of an image.
        - `left` number, float, required — Coordinate of the left boundary.
        - `top` number, float, required — Coordinate of the top boundary.
        - `width` number, float, required — Width.
        - `height` number, float, required — Height.
      - `tagType` 'Regular' | 'Negative' | 'GeneralProduct', nullable — Type of the predicted tag.

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/azure/apis/cognitiveservices-customvision-training.md) · [All operations](https://skmtc.net/azure/apis/cognitiveservices-customvision-training/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/cognitiveservices-customvision-training/revisions/82dfb72c78fa/schema)
