---
title: "Query AI Alert Records"
method: GET
path: "/openapi/v2.0/ai-alert-record"
tags: ["Flight Task/AI Flight Alerts"]
---

# Query AI Alert Records

`GET /openapi/v2.0/ai-alert-record`

## Request

- Base URL: `` (relative, and it does not resolve against the document’s source URL)
- URL: `/openapi/v2.0/ai-alert-record`
- Auth: none required

Query AI alert detail records by flight ID / drone SN. Supports multi-value filtering: separate multiple values with commas, e.g. `?flight_id=A,B`.

## Query parameters

- `flight_id` string, required
- `drone_sn` string
- `algorithm_sources` string
- `target_type` string
- `begin_at` integer
- `end_at` integer
- `page` integer
- `page_size` integer

## Headers

- `X-User-Token` string, required
- `X-Project-Uuid` string, required
- `X-Request-Id` string
- `X-Language` string

## Response `200`

Success

- object
  - `code` integer: Non-zero indicates exception
  - `message` string: Message prompt
  - `data` object: Paginated data container
    - `data` object: Alert records grouped by flight_id as a map. Key is flight_id, value is an array of alert records for that flight (sorted by time descending)
    - `total` integer: Total number of matching records
    - `page` integer: Current page number
    - `page_size` integer: Records per page
    - `page_count` integer: Total page count

---

[API](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud.md) - [All operations](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud/revisions/aeef0010be34?raw)
