---
title: "Ask a question about a detection"
method: POST
path: "/detects/{uuid}/intelligence"
tags: ["detectIntelligence"]
---

# Ask a question about a detection

`POST /detects/{uuid}/intelligence`

Submit a natural-language question about a completed detection report. Returns 202 Accepted while the answer is generated in the background.

## Path parameters

- `uuid` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `query` string, required — The natural-language question to ask about the detection

## Response `202`

Question accepted

- DetectIntelligenceAskDetectIntelligenceQuestionResponse202
  - `success` boolean
  - `item` DetectsUuidIntelligencePostResponsesContentApplicationJsonSchemaItem
    - `uuid` string — UUID of the question
    - `detect_uuid` string — UUID of the associated detection report
    - `query` string — The submitted question
    - `answer` string, nullable — The generated answer (null until completed)
    - `status` 'pending' | 'processing' | 'completed' | 'failed' — Current status of the question
    - `error_message` string, nullable — Error details when status is failed
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400` — Bad request (missing query)
- `404` — Detection not found
- `422` — Detection not completed

---

[API](https://skmtc.dev/resemble/apis/api-reference.md) · [All operations](https://skmtc.dev/resemble/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/resemble/api-reference/revisions/e93597a6b425/schema)
