Get All Drones
This API is used to retrieve all registered and unregistered drones.
This API provides programmatic access to information about registered and unregistered assigned drones.
Authentication
To use the API, insert your API key in the Authorization header like this:
Replace <YOUR_API_KEY>
with your AeroGCS API key. Without it, you'll get a 401 Unauthorized error.
Method
GET: Retrieve GCS-Enabled Drones
HTTP Request
https://ags.aeromegh.com/Aeromegh/GCSDrones
HTTP Response
Response Codes Explanation:
200
The request was successful.
"OK"
400
Request parameters missing.
"Request parameters missing"
500
Internal server error.
"Internal server error"
Code Snippet
Examples of how you can call this API using curl, Node.js, and Python
Note: Replace <API_KEY>
with the actual API_KEY provided by AeroGCS.
API Response
Example of API Response in JSON format.
API Response Parameter
The API response contains details about both registered and unregistered assigned drones. Parameters include:
drones
An array containing information about registered drones in the system.
-
drone_id
Unique identifier for the drone.
-
drone_name
Name assigned to the drone.
-
userid
Unique identifier for the user associated with the drone.
-
project
Project associated with the drone.
-
plan
Plan associated with the drone.
-
last_keep_alive
Timestamp indicating the last time the drone communicated its status.
-
last_tele_data
Information about the last telemetry data received from the drone, including a message and its type.
- message: Message received from the drone.
- type: Type of telemetry data (e.g., INFO).
total_flight_time
Total duration of flight recorded in minutes, seconds, and milliseconds.
- hours: Total hours of flight.
- minutes: Total minutes of flight.
- seconds: Total seconds of flight.
- milliseconds: Total milliseconds of flight.
last_flight_log
Timestamp of the last recorded flight log.
-
flight_id
Unique identifier for the flight.
-
stream_key
Key for streaming data.
-
registered_date
Timestamp indicating the date and time when the drone was registered.
-
lease_drone
Indicates whether the drone is leased.
-
drone_rent
Rental fee for the drone.
-
dsp_drone_id
Identifier for the drone in the Digital Sky Platform.
-
uin
Unique Identification Number associated with the drone.
-
id
Unique identifier for the drone registration.
-
unregisteredAssignedDrones
An array containing information about unregistered assigned drones.
-
Last updated