---
title: "Get Detection"
method: GET
path: "/v1/detections/{detection_id}"
tags: ["Dome", "detections"]
---

# Get Detection

`GET /v1/detections/{detection_id}`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/vijilai/apis/vijil-console-api-combined/docs/v1/detections/:detection_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Get a detection by ID.

Returns the current status and results of a detection.
Status values:
- CREATED: Detection is queued for processing
- PROCESSING: Detection is being processed
- COMPLETED: Detection finished successfully
- ERROR: Detection failed

Note: This endpoint does not require authentication to support
the Execution Flow test input feature.

## Path parameters

- `detection_id` string, required

## Response `200`

Successful Response

- DetectionResponse: Response model for a detection.
  - `id` string, required
  - `status` string, required
  - `detector_inputs` DetectionInput[]
    - `response` string, nullable
    - `question` string, nullable
    - `prompt` string, nullable
    - `dome_detection_method` string, nullable
  - `detector_outputs` DetectionOutput[]
    - `score` number
    - `label` string, nullable
    - `details` object, nullable
  - `error_message` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/vijilai/apis/vijil-console-api-combined.md) - [All operations](https://skmtc.dev/vijilai/apis/vijil-console-api-combined/llms.txt) - [OpenAPI document](https://skmtc.dev/vijilai/apis/vijil-console-api-combined/revisions/a8b2ee2b2d06?raw)
