---
title: "Get all drones"
method: GET
path: "/orgmng/drones"
tags: ["Drones"]
---

# Get all drones

`GET /orgmng/drones`

## Request

- Base URL: `http://localhost:8486`
- URL: `http://localhost:8486/orgmng/drones`
- Auth: API key in header `x-auth-token`

Retrieves a pageable list of drones. Super Admin may filter by organizationId; other users always receive drones from their own organization. Optional search is for portal autocomplete; omitting it keeps the legacy paginated list (mobile-compatible). Sort supports Spring-style repeated params (e.g. sort=status,DESC&sort=id,DESC). When sorted by a non-unique field such as status, id DESC is appended as a tiebreaker so OFFSET pagination is stable.

## Query parameters

- `page` integer
- `size` integer
- `sort` string: Sort criteria. Prefer Spring-style repeated params, e.g. sort=status,DESC&sort=id,DESC. Each value is `field` (default DESC) or `field,DIR`. Repeated sort params are joined by the binder; a single value such as status,DESC,id,DESC is also accepted. Invalid formats fall back to id,DESC.
- `organizationId` integer
- `search` string

## Response `200`

Drones retrieved successfully

- DronePageDTO: Paginated response containing drones
  - `content` DroneDTO[]: List of items
    - `id` integer
    - `organization` OrganizationDTO
      - `id` integer
      - `workspaceId` string, uuid
      - `name` string
      - `operatorRegistrationNumber` string
      - `description` string
      - `blockSms` boolean
      - `blockEmail` boolean
      - `active` boolean
    - `dronePilotDetails` IdNameTupleDTO
      - `id` integer
      - `name` string
    - `gcsPilotDetails` IdNameTupleDTO
      - `id` integer
      - `name` string
    - `name` string
    - `manufacturer` 'DJI' | 'CUSTOM'
    - `aircraftSerialNumber` string
    - `remoteControllerSerialNumber` string
    - `dockSerialNumber` string
    - `type` string
    - `model` string
    - `modelCode` string
    - `supportDjiCloudApi` boolean
    - `status` 'ONLINE' | 'OFFLINE'
    - `weight` integer
    - `height` integer
    - `length` integer
    - `width` integer
    - `description` string
    - `contingent` boolean
    - `dockModelId` integer
    - `dockModel` DroneDockModelDTO
      - `id` integer
      - `name` string
      - `code` string
      - `manufacturer` string
      - `description` string
    - `cClassMarking` 'C0' | 'C1' | 'C2' | 'C3' | 'C4' | 'C5' | 'C6'
  - `page` integer: Current page number (0-based)
  - `size` integer: Number of items per page
  - `totalElements` integer: Total number of elements across all pages
  - `totalPages` integer: Total number of pages
  - `first` boolean: Whether this is the first page
  - `last` boolean: Whether this is the last page
  - `empty` boolean: Whether the page is empty

## Other responses

- `403`: Access denied
- `500`: Internal server error

---

[API](https://skmtc.dev/airdodge/apis/api-core.md) - [All operations](https://skmtc.dev/airdodge/apis/api-core/llms.txt) - [OpenAPI document](https://skmtc.dev/airdodge/apis/api-core/revisions/fb3c5a1055cc?raw)
