---
title: "POST /projects/{projectId}/predictions/query"
method: POST
path: "/projects/{projectId}/predictions/query"
---

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

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

Get images that were sent to your prediction endpoint.

## 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 prediction request.
    - `resizedImageUri` string — The URI to the (resized) prediction image.
    - `thumbnailUri` string — The URI to the thumbnail of the original prediction image.
    - `originalImageUri` string — The URI to the original prediction image.
    - `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.

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/azure/apis/custom-vision-training-client.md) · [All operations](https://skmtc.net/azure/apis/custom-vision-training-client/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/custom-vision-training-client/versions/e873dad2a189/schema)
