Register drone
POST
/api/v1/aircraft/
const url = 'https://app.ayna.com/api/v1/aircraft/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"callsign":"EAGLE-1","faa_registration_number":"FA3ABC123","id":"653236396362343064323532","manufacturer":"DJI","max_takeoff_weight_grams":1000,"model":"Mavic 3","name":"Mavic 3 Enterprise","remote_id":"RID-ABC123","serial_number":"1234567890ABCD","weight_grams":895}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.ayna.com/api/v1/aircraft/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "callsign": "EAGLE-1", "faa_registration_number": "FA3ABC123", "id": "653236396362343064323532", "manufacturer": "DJI", "max_takeoff_weight_grams": 1000, "model": "Mavic 3", "name": "Mavic 3 Enterprise", "remote_id": "RID-ABC123", "serial_number": "1234567890ABCD", "weight_grams": 895 }'Register a new drone in your organization. The id field should contain the MAVLink hardware ID.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
DroneCreateRequest
Request to create a new drone.
Only id (MAVLink hardware ID) is required. Name will be auto-generated if not provided.
Other fields (manufacturer, model, serial_number) can be added later via UI.
Note: The id field contains the MAVLink hardware ID, which is the drone’s
external identifier. Internally, the system uses a separate UUID primary key.
object
id
required
Id
MAVLink hardware ID (required)
string
Example
{ "callsign": "EAGLE-1", "faa_registration_number": "FA3ABC123", "id": "653236396362343064323532", "manufacturer": "DJI", "max_takeoff_weight_grams": 1000, "model": "Mavic 3", "name": "Mavic 3 Enterprise", "remote_id": "RID-ABC123", "serial_number": "1234567890ABCD", "weight_grams": 895}Responses
Section titled “Responses”Created
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}